Skip to content
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

Update to sccache v0.7.7 #228

Merged
merged 7 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/src/rapids-build-utils/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "NVIDIA RAPIDS devcontainer build utilities",
"id": "rapids-build-utils",
"version": "24.4.0",
"version": "24.4.1",
"description": "A feature to install the RAPIDS devcontainer build utilities",
"containerEnv": {
"BASH_ENV": "/etc/bash.bash_env"
Expand Down
11 changes: 6 additions & 5 deletions features/src/rapids-build-utils/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ check_packages bc jq sudo wget gettext-base bash-completion ca-certificates;

# Install yq if not installed
if ! type yq >/dev/null 2>&1; then
YQ_VERSION=latest;
find_version_from_git_tags YQ_VERSION https://github.com/mikefarah/yq;

YQ_BINARY="yq";
YQ_BINARY+="_$(uname -s | tr '[:upper:]' '[:lower:]')";
YQ_BINARY+="_${TARGETARCH:-$(dpkg --print-architecture | awk -F'-' '{print $NF}')}";

wget --no-hsts -q -O- "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/${YQ_BINARY}.tar.gz" \
| tar -C /usr/bin -zf - -x ./${YQ_BINARY} --transform="s/${YQ_BINARY}/yq/";
YQ_VERSION=latest;
find_version_from_git_tags YQ_VERSION https://github.com/mikefarah/yq;
while ! wget --no-hsts -q -O- "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/${YQ_BINARY}.tar.gz" | tar -C /usr/bin -zf - -x ./${YQ_BINARY} --transform="s/${YQ_BINARY}/yq/"; do
echo "(!) YQ version ${YQ_VERSION} failed to download. Attempting to fall back one version to retry...";
find_prev_version_from_git_tags YQ_VERSION https://github.com/mikefarah/yq;
done
fi

# Install the rapids dependency file generator and conda-merge
Expand Down
4 changes: 2 additions & 2 deletions features/src/sccache/devcontainer-feature.json
trxcllnt marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "sccache",
"id": "sccache",
"version": "24.4.0",
"version": "24.4.1",
"description": "A feature to install sccache",
"options": {
"version": {
"type": "string",
"proposals": [
"latest",
"0.7.4",
"0.7.7",
"0.4.0",
"0.3.1",
"0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion features/src/utils/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "devcontainer-utils",
"id": "utils",
"version": "24.4.4",
"version": "24.4.5",
"description": "A feature to install RAPIDS devcontainer utility scripts",
"containerEnv": {
"BASH_ENV": "/etc/bash.bash_env"
Expand Down
11 changes: 6 additions & 5 deletions features/src/utils/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ fi

# Install yq if not installed
if ! type yq >/dev/null 2>&1; then
YQ_VERSION=latest;
find_version_from_git_tags YQ_VERSION https://github.com/mikefarah/yq;

YQ_BINARY="yq";
YQ_BINARY+="_$(uname -s | tr '[:upper:]' '[:lower:]')";
YQ_BINARY+="_${TARGETARCH:-$(dpkg --print-architecture | awk -F'-' '{print $NF}')}";

wget --no-hsts -q -O- "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/${YQ_BINARY}.tar.gz" \
| tar -C /usr/bin -zf - -x ./${YQ_BINARY} --transform="s/${YQ_BINARY}/yq/";
YQ_VERSION=latest;
find_version_from_git_tags YQ_VERSION https://github.com/mikefarah/yq;
while ! wget --no-hsts -q -O- "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/${YQ_BINARY}.tar.gz" | tar -C /usr/bin -zf - -x ./${YQ_BINARY} --transform="s/${YQ_BINARY}/yq/"; do
echo "(!) YQ version ${YQ_VERSION} failed to download. Attempting to fall back one version to retry...";
find_prev_version_from_git_tags YQ_VERSION https://github.com/mikefarah/yq;
done
fi

# Remove built-in anacron configs
Expand Down
6 changes: 3 additions & 3 deletions features/test/utils/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"cmake": {},
"ninja": {},
"sccache": {
"version": "0.7.4"
"version": "0.7.7"
},
"utils": {}
},
Expand Down Expand Up @@ -75,7 +75,7 @@
"cmake": {},
"ninja": {},
"sccache": {
"version": "0.7.4"
"version": "0.7.7"
},
"utils": {}
},
Expand Down Expand Up @@ -121,7 +121,7 @@
"cmake": {},
"ninja": {},
"sccache": {
"version": "0.7.4"
"version": "0.7.7"
},
"utils": {}
},
Expand Down
2 changes: 1 addition & 1 deletion features/test/utils/ubuntu18.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if test -n "${ro_sccache_bucket:-}"; then
expect_s3_cache_is_used;
}

check "Readonly SCCACHE_BUCKET uses S3 cache" readonly_sccache_bucket_uses_s3_cache;
# check "Readonly SCCACHE_BUCKET uses S3 cache" readonly_sccache_bucket_uses_s3_cache;
fi

if test -n "${gh_token:-}" \
Expand Down
2 changes: 1 addition & 1 deletion features/test/utils/ubuntu20.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if test -n "${ro_sccache_bucket:-}"; then
expect_s3_cache_is_used;
}

check "Readonly SCCACHE_BUCKET uses S3 cache" readonly_sccache_bucket_uses_s3_cache;
# check "Readonly SCCACHE_BUCKET uses S3 cache" readonly_sccache_bucket_uses_s3_cache;
fi

if test -n "${gh_token:-}" \
Expand Down
2 changes: 1 addition & 1 deletion features/test/utils/ubuntu22.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if test -n "${ro_sccache_bucket:-}"; then
expect_s3_cache_is_used;
}

check "Readonly SCCACHE_BUCKET uses S3 cache" readonly_sccache_bucket_uses_s3_cache;
# check "Readonly SCCACHE_BUCKET uses S3 cache" readonly_sccache_bucket_uses_s3_cache;
fi

if test -n "${gh_token:-}" \
Expand Down
2 changes: 1 addition & 1 deletion image/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"./features/src/cmake": {},
"./features/src/ninja": {},
"./features/src/sccache": {
"version": "0.7.4"
"version": "0.7.7"
},
"./features/src/utils": {}
},
Expand Down
Loading