Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Set WASM_BUILD_WORKSPACE_HINT before starting CI jobs #12816

Merged

Conversation

joao-paulo-parity
Copy link
Contributor

@joao-paulo-parity joao-paulo-parity commented Dec 1, 2022

Problem

CI jobs currently display warnings such as those ones:

warning: Could not find Cargo.lock for /builds/parity/mirrors/substrate/bin/node-template/runtime/Cargo.toml, while searching from /cargo_target_dir/debug/build/node-template-runtime-f76d399030dc21d7/out. To fix this, point the WASM_BUILD_WORKSPACE_HINT env variable to the directory of the workspace being compiled.

warning: Could not find Cargo.lock for /builds/parity/mirrors/substrate/bin/node/runtime/Cargo.toml, while searching from /cargo_target_dir/debug/build/kitchensink-runtime-ebd00ce29afae0e3/out. To fix this, point the WASM_BUILD_WORKSPACE_HINT env variable to the directory of the workspace being compiled.

Despite those warnings, the jobs still succeed.

Solution

Set up WASM_BUILD_WORKSPACE_HINT="$PWD" before starting the jobs.

this enables wasm-builder to find the Cargo.lock from within generated packages
@joao-paulo-parity joao-paulo-parity added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit. labels Dec 1, 2022
@joao-paulo-parity joao-paulo-parity requested a review from a team as a code owner December 1, 2022 09:06
@joao-paulo-parity joao-paulo-parity changed the title Set WASM_BUILD_WORKSPACE_HINT before starting jobs Set WASM_BUILD_WORKSPACE_HINT before starting CI jobs Dec 1, 2022
@joao-paulo-parity
Copy link
Contributor Author

joao-paulo-parity commented Dec 1, 2022

@joao-paulo-parity
Copy link
Contributor Author

Moving to Draft to prevent accidental merges until paritytech/pipeline-scripts#87 is merged.

@joao-paulo-parity joao-paulo-parity marked this pull request as draft December 1, 2022 09:33
@joao-paulo-parity joao-paulo-parity marked this pull request as ready for review December 5, 2022 12:28
@joao-paulo-parity
Copy link
Contributor Author

Moving to Draft again because I messed up the variable name in paritytech/pipeline-scripts#87. My bad.

@joao-paulo-parity joao-paulo-parity marked this pull request as draft December 5, 2022 14:05
@joao-paulo-parity joao-paulo-parity marked this pull request as ready for review December 6, 2022 11:31
@paritytech-ci paritytech-ci requested a review from a team December 8, 2022 00:20
scripts/ci/gitlab/pipeline/publish.yml Outdated Show resolved Hide resolved
@paritytech-ci paritytech-ci requested a review from a team December 16, 2022 12:07
@joao-paulo-parity
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit 8ef806c into paritytech:master Dec 16, 2022
@joao-paulo-parity joao-paulo-parity deleted the workspace-build-hint branch December 16, 2022 12:30
ltfschoen pushed a commit to ltfschoen/substrate that referenced this pull request Feb 22, 2023
* set WASM_BUILD_WORKSPACE_HINT

this enables wasm-builder to find the Cargo.lock from within generated packages

* wip: try out paritytech/pipeline-scripts#90

* wip: fixup

* wip

* revert ci skip

* set up WASM_BUILD_WORKSPACE_HINT for .kubernetes-env as well

* Update scripts/ci/gitlab/pipeline/publish.yml

Co-authored-by: Alexander Samusev <[email protected]>

Co-authored-by: Alexander Samusev <[email protected]>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* set WASM_BUILD_WORKSPACE_HINT

this enables wasm-builder to find the Cargo.lock from within generated packages

* wip: try out paritytech/pipeline-scripts#90

* wip: fixup

* wip

* revert ci skip

* set up WASM_BUILD_WORKSPACE_HINT for .kubernetes-env as well

* Update scripts/ci/gitlab/pipeline/publish.yml

Co-authored-by: Alexander Samusev <[email protected]>

Co-authored-by: Alexander Samusev <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants