-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix(ci): isolate pinned tool apt sources #11319
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
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8de1238
fix(build): restore plugin lock platform constraints
jyaunches 20b2c50
fix(ci): isolate pinned tool apt sources
jyaunches 5c7bc68
test(cli): align version check timeout
jyaunches 56091c7
merge: include CI blocker fixes
jyaunches a2aa92b
merge: unstack PR #11319 onto current main
ericksoa d9e6bad
fix(ci): fail closed without Ubuntu apt source
ericksoa ef9b317
fix(ci): bind every advisor apt operation
ericksoa 79f641a
test(ci): execute advisor apt isolation contract
ericksoa 5aa5c66
refactor(ci): centralize pinned Ubuntu package install
ericksoa e8537ac
merge: resolve current main conflict for PR #11319
ericksoa 79ae514
merge: resolve conflicts with main
github-actions[bot] 286317f
merge: sync PR #11319 with current main
jyaunches 38ac9df
fix(ci): isolate pinned apt package state
rsliter e838549
fix(ci): preserve apt sandbox with isolated lists
jyaunches c734d65
test(ci): consolidate pinned package contract
rsliter 8aad05d
fix(ci): preserve apt sandbox under runner temp
jyaunches c98310c
fix(runtime): bound the OpenClaw auto-pair scheduler env knobs (#11173)
gaveezy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| #!/usr/bin/env bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| if [ "$#" -eq 0 ]; then | ||
| echo "::error::At least one pinned package specification is required" | ||
| exit 2 | ||
| fi | ||
|
|
||
| for package_spec in "$@"; do | ||
| if [[ ! "$package_spec" =~ ^[A-Za-z0-9][A-Za-z0-9.+-]*(:[A-Za-z0-9][A-Za-z0-9.+-]*)?=[^[:space:]=]+$ ]]; then | ||
| echo "::error::Package specification must use package=version: $package_spec" >&2 | ||
| exit 2 | ||
| fi | ||
| done | ||
|
|
||
| UBUNTU_APT_SOURCES="/etc/apt/sources.list.d/ubuntu.sources" | ||
| if [ ! -r "$UBUNTU_APT_SOURCES" ]; then | ||
| echo "::error::Configured APT source list is unavailable: $UBUNTU_APT_SOURCES" | ||
| exit 1 | ||
| fi | ||
|
|
||
| APT_SOURCE_OPTIONS=( | ||
| -o "Dir::Etc::sourcelist=$UBUNTU_APT_SOURCES" | ||
| -o "Dir::Etc::sourceparts=-" | ||
| ) | ||
| # Hosted runners keep RUNNER_TEMP private to the runner user. Grant only | ||
| # traversal while APT runs, then restore its exact original mode on every exit. | ||
| RUNNER_TEMP_MODE="$(stat -c '%a' "$RUNNER_TEMP")" | ||
| restore_runner_temp_mode() { | ||
| sudo chmod "$RUNNER_TEMP_MODE" "$RUNNER_TEMP" | ||
| } | ||
| trap restore_runner_temp_mode EXIT | ||
| sudo chmod o+x "$RUNNER_TEMP" | ||
|
|
||
| APT_LISTS_DIR="$RUNNER_TEMP/nemoclaw-apt-lists" | ||
| sudo install -d -m 0755 "$APT_LISTS_DIR" | ||
| sudo install -d -o _apt -g root -m 0700 "$APT_LISTS_DIR/partial" | ||
| APT_SOURCE_OPTIONS+=( | ||
| -o "Dir::State::lists=$APT_LISTS_DIR" | ||
| ) | ||
| sudo apt-get "${APT_SOURCE_OPTIONS[@]}" update -qq | ||
| sudo apt-get "${APT_SOURCE_OPTIONS[@]}" install -y --no-install-recommends "$@" | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.