Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f83fa6d
ci(e2e): support portable podman toolchain
rsliter Sep 29, 2026
5ce17a3
ci(e2e): add portable hermes gpu lane
rsliter Sep 29, 2026
174be57
Merge remote-tracking branch 'origin/main' into codex/11892-portable-…
rsliter Sep 29, 2026
adcf01c
fix(e2e): stage portable Podman helpers
rsliter Sep 29, 2026
31a242a
fix(e2e): make portable selector self-contained
rsliter Sep 29, 2026
1b4a365
fix(e2e): preserve trusted workflow environment
rsliter Sep 29, 2026
fb57816
fix(deps): update Undici to 8.10.2
rsliter Sep 29, 2026
953f110
Merge remote-tracking branch 'origin/main' into codex/11892-portable-…
rsliter Sep 29, 2026
0cb64dc
Revert "fix(deps): update Undici to 8.10.2"
rsliter Sep 29, 2026
5b96d06
Merge branch 'main' into codex/11892-portable-podman-gpu-lane
rsliter Sep 30, 2026
ebdab64
fix(ci): scope Hermes storage env to test step
rsliter Sep 30, 2026
3825ecb
docs(e2e): clarify Portable Hermes selection
rsliter Sep 30, 2026
9650336
fix(e2e): harden portable Podman runner setup
rsliter Sep 30, 2026
abc356a
fix(e2e): trap portable Podman cleanup
rsliter Sep 30, 2026
24e85de
fix(e2e): close portable lane review gaps
rsliter Sep 30, 2026
5bd2a18
refactor(e2e): require Docker CLI isolation
rsliter Sep 30, 2026
16995d1
ci(e2e): pin required Docker isolation
rsliter Sep 30, 2026
22789bc
fix(e2e): retain Docker client for portable proof
rsliter Sep 30, 2026
5398843
ci(e2e): pin portable client boundary
rsliter Sep 30, 2026
a46e2fd
test(e2e): type workflow conditions
rsliter Sep 30, 2026
579aba1
test(e2e): prove Docker restoration on cleanup failure
rsliter Oct 1, 2026
bdcc9fa
docs(e2e): describe portable helper sources
rsliter Oct 1, 2026
d3dd6fe
merge: consume main npm audit repair
rsliter Oct 1, 2026
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
9 changes: 6 additions & 3 deletions .github/actions/restore-native-podman-e2e/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ runs:
cleanup_status=$?
set -e
if [[ "$cleanup_status" -ne 0 ]]; then
echo "::error::Native Podman runtime cleanup did not complete; preserving Podman and Docker recovery authority" >&2
exit "$cleanup_status"
echo "::warning::Native Podman runtime cleanup did not complete; attempting Docker restoration before failing" >&2
fi
restore_present=false
if sudo -n test -e "$restore_root" || sudo -n test -L "$restore_root"; then
Expand Down Expand Up @@ -327,7 +326,7 @@ runs:
sudo -n rm -f -- "$runtime_state_path"
sudo -n rmdir -- "$restore_root"
fi
if [[ "$cleanup_authorized" == true ]]; then
if [[ "$cleanup_authorized" == true && "$cleanup_status" -eq 0 ]]; then
for target in "$toolchain_install_root/bin/podman" "$toolchain_install_root/bin/pasta"; do
if sudo -n test -e "$target" || sudo -n test -L "$target"; then
sudo -n test -f "$target"
Expand All @@ -342,3 +341,7 @@ runs:
sudo -n rm -f -- "$cleanup_state_path"
sudo -n rmdir -- "$toolchain_install_root"
fi
if [[ "$cleanup_status" -ne 0 ]]; then
echo "::error::Native Podman runtime cleanup did not complete; preserved Podman recovery authority after restoring Docker" >&2
exit "$cleanup_status"
fi
82 changes: 76 additions & 6 deletions .github/actions/setup-native-podman-e2e/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ inputs:
description: Prepare Podman when the E2E dispatch selected the native Podman gateway runtime.
required: false
default: "false"
toolchain:
description: Select the reviewed Podman toolchain contract.
required: false
default: native-6.1
isolate-docker-cli:
description: Remove the Docker client after disabling the Docker daemon.
required: false
default: "true"
cleanup-fixture:
description: Optional immutable workflow-owned restore script used if runtime setup is interrupted.
required: false
default: ""

runs:
using: composite
Expand All @@ -19,6 +31,7 @@ runs:
shell: bash
env:
RUNNER_ARCH_KIND: ${{ runner.arch }}
TOOLCHAIN_PROFILE: ${{ inputs.toolchain }}
run: |
set -euo pipefail
case "$RUNNER_ARCH_KIND" in
Expand All @@ -29,8 +42,26 @@ runs:
exit 1
;;
esac
case "$TOOLCHAIN_PROFILE" in
native-6.1)
artifact_prefix=native-podman-e2e-toolchain
podman_version=6.1.0
podman_source_sha=cade97a52ebdf9dbf9e81de8009015776837a074
;;
portable-5.7)
artifact_prefix=portable-podman-e2e-toolchain
podman_version=5.7.0
podman_source_sha=0370128fc8dcae93533334324ef838db8f8da8cb
;;
*)
echo "::error::Unsupported reviewed Podman toolchain: $TOOLCHAIN_PROFILE" >&2
exit 1
;;
esac
printf 'architecture=%s\n' "$architecture" >>"$GITHUB_OUTPUT"
printf 'name=native-podman-e2e-toolchain-%s\n' "$architecture" >>"$GITHUB_OUTPUT"
printf 'name=%s-%s\n' "$artifact_prefix" "$architecture" >>"$GITHUB_OUTPUT"
printf 'podman_version=%s\n' "$podman_version" >>"$GITHUB_OUTPUT"
printf 'podman_source_sha=%s\n' "$podman_source_sha" >>"$GITHUB_OUTPUT"

- name: Download native Podman toolchain
if: ${{ inputs.enabled == 'true' }}
Expand All @@ -43,10 +74,44 @@ runs:
if: ${{ inputs.enabled == 'true' }}
shell: bash
env:
CLEANUP_FIXTURE: ${{ inputs.cleanup-fixture }}
EXPECTED_ARCHITECTURE: ${{ steps.artifact.outputs.architecture }}
EXPECTED_PODMAN_SOURCE_SHA: ${{ steps.artifact.outputs.podman_source_sha }}
EXPECTED_PODMAN_VERSION: ${{ steps.artifact.outputs.podman_version }}
TOOLCHAIN_DIRECTORY: ${{ runner.temp }}/native-podman-e2e-toolchain
run: |
set -euo pipefail
setup_completed=false
cleanup_interrupted_setup() {
local command_status=$?
local cleanup_status=0
trap - EXIT INT TERM
if [[ "$setup_completed" != true && -n "$CLEANUP_FIXTURE" ]]; then
set +e
/usr/bin/env -i \
HOME="$HOME" \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
RUNNER_TEMP="$RUNNER_TEMP" \
/bin/bash "$CLEANUP_FIXTURE"
cleanup_status=$?
set -e
fi
if [[ "$cleanup_status" -ne 0 ]]; then
echo "::error::Native Podman setup failed and runner restoration also failed" >&2
exit "$cleanup_status"
fi
exit "$command_status"
}
if [[ -n "$CLEANUP_FIXTURE" ]]; then
[[ "$CLEANUP_FIXTURE" == /usr/local/libexec/nemoclaw/* ]]
[[ "$CLEANUP_FIXTURE" != *'/../'* && "$CLEANUP_FIXTURE" != */.. ]]
sudo -n test -f "$CLEANUP_FIXTURE"
sudo -n test ! -L "$CLEANUP_FIXTURE"
[[ "$(sudo -n stat -c '%u:%g:%a' "$CLEANUP_FIXTURE")" == "0:0:555" ]]
trap cleanup_interrupted_setup EXIT
trap 'exit 130' INT
trap 'exit 143' TERM
fi
[[ "$RUNNER_OS" == "Linux" ]]
[[ -d "$TOOLCHAIN_DIRECTORY" && ! -L "$TOOLCHAIN_DIRECTORY" ]]
[[ -z "$(find -P "$TOOLCHAIN_DIRECTORY" -type l -print -quit)" ]]
Expand All @@ -69,12 +134,15 @@ runs:
cd "$TOOLCHAIN_DIRECTORY"
sha256sum --check --strict SHA256SUMS
)
jq -e --arg architecture "$EXPECTED_ARCHITECTURE" '
jq -e \
--arg architecture "$EXPECTED_ARCHITECTURE" \
--arg podmanSourceSha "$EXPECTED_PODMAN_SOURCE_SHA" \
--arg podmanVersion "$EXPECTED_PODMAN_VERSION" '
.schemaVersion == 1 and
.kind == "nemoclaw-native-podman-toolchain-v1" and
.architecture == $architecture and
.podmanVersion == "6.1.0" and
.podmanSourceSha == "cade97a52ebdf9dbf9e81de8009015776837a074" and
.podmanVersion == $podmanVersion and
.podmanSourceSha == $podmanSourceSha and
.netavarkVersion == "2.1.0" and
.netavarkSourceSha == "8e91ad1d947ed325327b638f0cb906bea1f7d0ab" and
.aardvarkDnsVersion == "2.1.0" and
Expand Down Expand Up @@ -223,7 +291,7 @@ runs:
"$TOOLCHAIN_DIRECTORY/libexec/podman/$helper" \
"$helper_install_root/$helper"
done
[[ "$("$podman_executable" --version)" == "podman version 6.1.0" ]]
[[ "$("$podman_executable" --version)" == "podman version $EXPECTED_PODMAN_VERSION" ]]

[[ -z "$subuid_range" ]] || sudo usermod --add-subuids "$subuid_range" "$execution_user"
[[ -z "$subgid_range" ]] || sudo usermod --add-subgids "$subgid_range" "$execution_user"
Expand Down Expand Up @@ -421,9 +489,11 @@ runs:
printf 'PATH=%s:%s\n' "$toolchain_install_root/bin" "$PATH"
printf 'XDG_RUNTIME_DIR=%s\n' "$runtime_directory"
} >>"$GITHUB_ENV"
setup_completed=true
trap - EXIT INT TERM

- name: Remove Docker CLI from native Podman execution
if: ${{ inputs.enabled == 'true' }}
if: ${{ inputs.enabled == 'true' && inputs.isolate-docker-cli == 'true' }}
shell: bash
run: |
set -euo pipefail
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-standard-profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ jobs:
provenance-json: ${{ inputs.cli_artifact_provenance }}

- name: Prepare native Podman E2E runtime
uses: NVIDIA/NemoClaw/.github/actions/setup-native-podman-e2e@b39c9ee2bba1bffaabcfe97ae4a7787a5c603ee8
uses: NVIDIA/NemoClaw/.github/actions/setup-native-podman-e2e@22789bcaf835db7cf6390781c8d0f454f1e73dec
with:
enabled: ${{ inputs.runtime_provider == 'podman' && 'true' || 'false' }}

Expand Down Expand Up @@ -650,7 +650,7 @@ jobs:

- name: Restore Docker CLI after native Podman E2E
if: ${{ always() && inputs.runtime_provider == 'podman' }}
uses: NVIDIA/NemoClaw/.github/actions/restore-native-podman-e2e@b39c9ee2bba1bffaabcfe97ae4a7787a5c603ee8
uses: NVIDIA/NemoClaw/.github/actions/restore-native-podman-e2e@9650336899bf836db5844381a97cbc2b0fe4a2b8
with:
enabled: "true"

Expand Down
Loading
Loading