forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: make dcou partitioned steps not-skewed and cached (#4452)
* wip: ci: Distribute dcou builds more evenly * Disable sccache altogether * Make sccache use local disk storage for dcou * Use _ * Use all system cores * Update sccache * Add document and move things a bit * Revert -Z threads=0 * Update doc * Some tweaks * Update Dockerfile * Update cargo-hack repo * Try -Z threads=0 * Restore original no newline at eof * Revert -Z threads * Use docker image with sccache v0.9.1
- Loading branch information
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -1,6 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
source ./ci/_ | ||
|
||
(unset RUSTC_WRAPPER; cargo install --force --git https://github.com/anza-xyz/cargo-hack.git --rev 5e59c3ec6c661c02601487c0d4b2a2649fe06c9f cargo-hack) | ||
|
||
# Here, experimentally switch the sccache storage from GCS to local disk by | ||
# `unset`-ing gcs credentials so that sccache automatically falls back to the | ||
# local disk storage. | ||
unset SCCACHE_GCS_KEY_PATH SCCACHE_GCS_BUCKET SCCACHE_GCS_RW_MODE SCCACHE_GCS_KEY_PREFIX | ||
|
||
# sccache's default is 10G, but our boxes have far more storage. :) | ||
export SCCACHE_CACHE_SIZE="200G" | ||
|
||
# Disable incremental compilation as this is documented as not-compatible with | ||
# sccache at https://github.com/mozilla/sccache/blob/v0.9.1/README.md#rust | ||
# > Incrementally compiled crates cannot be cached. | ||
export CARGO_INCREMENTAL=0 | ||
|
||
_ sccache --show-stats | ||
|
||
scripts/check-dev-context-only-utils.sh check-all-targets "$@" | ||
scripts/check-dev-context-only-utils.sh check-bins-and-lib "$@" | ||
|
||
# This shows final stats while stopping the sccache background server as well | ||
# for later normal sccache use (if any). Remember that sccache is now | ||
# temporarily and experimtally running with the local disk storage. | ||
_ sccache --stop-server |
This file contains 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