ci: restrict number of jobs during build stage#1443
ci: restrict number of jobs during build stage#1443timsaucer wants to merge 3 commits intoapache:mainfrom
Conversation
kevinjqliu
left a comment
There was a problem hiding this comment.
I was looking into fixing this and testing on my fork,
adding swap helped
https://github.com/kevinjqliu/datafusion-python/pull/4/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721R244-R255
we can add it to give us more buffer
| # temporarily comment out to verify it works in the PR | ||
| # if: inputs.build_mode == 'release' | ||
| env: | ||
| CARGO_BUILD_JOBS: 2 |
There was a problem hiding this comment.
this should help, we can even do CARGO_BUILD_JOBS=1 and also add it to the "debug" mode below on L241
| [profile.release.package.substrait] | ||
| opt-level = 1 | ||
| codegen-units = 16 | ||
|
|
There was a problem hiding this comment.
Lets see if scoping it to substrait will help here.
I think we might need to bite the bullet and do this:
[profile.release]
lto = "thin"
codegen-units = 4
or override the options using env var just for that one job.
but note that this affects the final artifact
|
Claude on why The priority order that minimizes artifact impact:
|
Which issue does this PR close?
Related to #1429 but we need to verify if it resolves the issue.
Rationale for this change
We are getting OOM and this restricts the number of rustc invocations.
What changes are included in this PR?
CI parameter change.
Are there any user-facing changes?
No