-
Notifications
You must be signed in to change notification settings - Fork 9
Ly/timeout #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Open
Ly/timeout #138
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
3d2887c
update
94abdb9
pub: 0.0.55-beta.2
b3b1170
pub: engine 0.0.55-beta.3
48e8c21
pub: engine@0.0.55
389781a
pub: engine@0.0.56-beta.1
7bf512b
pub: engine@0.0.56-beta.2
d7e157e
Revert "pub: engine@0.0.56-beta.2"
d36f5b8
pub: 0.0.56
ddc48d6
fix: working-directory invalid
9f5f9f3
publish: engine@0.0.57-beta.1
851c013
build(engine): update package version to 0.0.57
bb2ab9b
fix(engine): optimize the execution path calculation for run steps
dcef80a
build(engine): update engine version and adjust error handling
ba3376d
test(engine): 新增步骤及全局超时功能测试
e4bbfe3
chore(engine): 发布 0.0.59-beta.1 版本
93fc2e9
feat(engine): 添加步骤和全局超时配置及必要的上下文信息透出
bedb000
fix(engine): 在全局超时时终止子进程
6438675
fix(engine): 在步骤超时时终止子进程
61d8a3d
chore(engine): 发布版本号升级到0.0.59-beta.2
6937110
chore(engine): 发布 0.0.59 正式版本
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,5 @@ module.exports = { | |
| '^.+\\.ts$': 'ts-jest', | ||
| }, | ||
| verbose: true, | ||
| testTimeout: 15000, | ||
| }; | ||
2 changes: 1 addition & 1 deletion
package-lock.json
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
packages/engine/__tests__/fixtures/timeout-plugin/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| module.exports = { | ||
| run: async (inputs, context, logger) => { | ||
| // 模拟一个长时间运行的插件 | ||
| return new Promise((resolve) => { | ||
| setTimeout(() => { | ||
| resolve({ success: true }); | ||
| }, 5000); // 5秒延迟 | ||
| }); | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.