-
Notifications
You must be signed in to change notification settings - Fork 122
chore(ci): Limited parallelism #5255
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
base: master
Are you sure you want to change the base?
Changes from all commits
3b0b237
0cecd0e
795dd87
3597c5a
a236578
aaec84b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,21 @@ | ||
| experimental = ["setup-scripts"] | ||
| experimental = ["setup-scripts", "wrapper-scripts"] | ||
|
|
||
| [scripts.setup.replace-node-and-runtime] | ||
| command = ["bash", "-c", ''' | ||
| rsync -av gear-cli-and-runtime-release/ target/release/ | ||
| chmod +x target/release/gear | ||
| '''] | ||
|
|
||
| [scripts.setup.set-envs] | ||
| command = ["bash", "-c", ''' | ||
| echo "CARGO_BUILD_JOBS=1" >> "$NEXTEST_ENV" | ||
| echo "RAYON_NUM_THREADS=1" >> "$NEXTEST_ENV" | ||
| echo "ETHEXE_PROCESSOR_NUM_THREADS=1" >> "$NEXTEST_ENV" | ||
| '''] | ||
|
|
||
| [scripts.wrapper.compute-4-cores] | ||
| command = "env RAYON_NUM_THREADS=4 ETHEXE_PROCESSOR_NUM_THREADS=4" | ||
|
|
||
| [profile.default] | ||
| leak-timeout = { period = "5s", result = "fail" } | ||
| slow-timeout = { period = "1m", terminate-after = 5 } | ||
|
|
@@ -15,6 +25,10 @@ path = "junit.xml" | |
| store-success-output = false | ||
| store-failure-output = true | ||
|
|
||
| [[profile.default.scripts]] | ||
| filter = 'all()' | ||
| setup = "set-envs" | ||
|
|
||
| [profile.ci] | ||
| fail-fast = false | ||
| archive.include = [ | ||
|
|
@@ -26,25 +40,17 @@ path = "junit.xml" | |
| store-success-output = false | ||
| store-failure-output = true | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While limiting parallelism is a good strategy to improve test stability, removing all retries might be too aggressive. Retries can still be valuable for handling transient, non-resource-contention-related flakes (e.g., network glitches). Consider re-introducing the |
||
| # sdk | ||
| [[profile.ci.overrides]] | ||
| filter = 'package(gsdk) or package(gcli)' | ||
| retries = 5 | ||
|
|
||
| [[profile.ci.scripts]] | ||
| filter = 'package(gsdk) or package(gcli)' | ||
| platform = "cfg(unix)" | ||
| setup = "replace-node-and-runtime" | ||
|
|
||
| # sometimes fails on CI machine in debug profile | ||
| # due to an inconsistent machine load and unoptimized code | ||
| [[profile.ci.overrides]] | ||
| filter = 'package(gear-authorship)' | ||
| retries = 5 | ||
| threads-required = 4 | ||
| # tests of such crates have timeouts, so we need to compile runtime faster | ||
| [[profile.ci.scripts]] | ||
| filter = 'package(ethexe-service) or package(ethexe-rpc) or package(ethexe-compute)' | ||
| run-wrapper = "compute-4-cores" | ||
|
|
||
| # ethexe | ||
| [[profile.ci.overrides]] | ||
| filter = 'package(ethexe-service) or package(ethexe-observer)' | ||
| filter = 'package(ethexe-service) or package(ethexe-rpc) or package(ethexe-compute)' | ||
| retries = 5 | ||
| threads-required = 4 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the PR title
chore(ci): Limited parallelism, it seems these parallelism limits are intended only for the CI environment. Applying this to thedefaultprofile will also slow down local test runs for all developers, which might be an unintended side effect.To scope this change only to CI, consider applying this script to the
ciprofile instead.