ci: add -j option to autotest for parallel execution#821
Draft
yutaro-sakamoto wants to merge 2 commits intoopensourcecobol:developfrom
Draft
ci: add -j option to autotest for parallel execution#821yutaro-sakamoto wants to merge 2 commits intoopensourcecobol:developfrom
yutaro-sakamoto wants to merge 2 commits intoopensourcecobol:developfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates CI workflows to run GNU Autotest-based test scripts in parallel by adding the -j flag, while keeping the file-lock and file-lock2 suites serialized due to their inter-process locking behavior.
Changes:
- Add conditional
-jinvocation for most autotest suites in.github/workflows/test-other.yml. - Add conditional
-jinvocation for most autotest suites in.github/workflows/coverage.yml, keeping lock-related suites non-parallel.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/test-other.yml |
Runs a single selected autotest suite with -j except for file-lock suites. |
.github/workflows/coverage.yml |
Runs the “other tests” list with -j except for file-lock suites to speed up coverage runs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7e9b494 to
ba5db20
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
概要
test-other.yml,coverage.yml)のautotestベースのテストスクリプトに-jオプションを追加し、テストを並列実行するようにしたfile-lock,file-lock2,cobj-idxは並列実行時に競合が発生するため除外ベンチマーク(テストステップの実行時間)
対象テストの実行時間が平均約20%短縮された。