From 4eec819b6efd973a8b1ac19220de2473ee7bc875 Mon Sep 17 00:00:00 2001 From: Matthias Diener Date: Wed, 25 Feb 2026 14:42:35 -0600 Subject: [PATCH 1/3] export HF_TOKEN for CI --- .github/workflows/rocm-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/rocm-ci.yml b/.github/workflows/rocm-ci.yml index b8a08bfca..cf6b624c7 100644 --- a/.github/workflows/rocm-ci.yml +++ b/.github/workflows/rocm-ci.yml @@ -339,12 +339,17 @@ jobs: - name: Run Examples id: examples-tests continue-on-error: true + env: + HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | docker exec te-runner bash -c "$(cat <<'EOF' #!/usr/bin/bash set -ex -o pipefail ulimit -c 0 # Disable core dumps + # Make sure HF_TOKEN is present + python -c "import os; assert os.environ.get('HF_TOKEN')" + cd /workspace/examples/pytorch/mnist python main.py 2>&1 | tee /workspace/examples.log python main.py --use-te 2>&1 | tee -a /workspace/examples.log From aabbd0969c37f85dfaf02bd7e51de59bff115bd8 Mon Sep 17 00:00:00 2001 From: Matthias Diener Date: Wed, 25 Feb 2026 15:38:32 -0600 Subject: [PATCH 2/3] commit after HF_TOKEN export in github actions settings --- .github/workflows/rocm-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rocm-ci.yml b/.github/workflows/rocm-ci.yml index cf6b624c7..191c03950 100644 --- a/.github/workflows/rocm-ci.yml +++ b/.github/workflows/rocm-ci.yml @@ -342,7 +342,7 @@ jobs: env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | - docker exec te-runner bash -c "$(cat <<'EOF' + docker exec -e HF_TOKEN="$HF_TOKEN" te-runner bash -c "$(cat <<'EOF' #!/usr/bin/bash set -ex -o pipefail ulimit -c 0 # Disable core dumps From 85a5d925393cdc20baa7fe6bd3f06e2dea441c36 Mon Sep 17 00:00:00 2001 From: Matthias Diener Date: Thu, 26 Feb 2026 10:11:30 -0600 Subject: [PATCH 3/3] Don't abort on missing token (e.g., for PRs from forks) --- .github/workflows/rocm-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rocm-ci.yml b/.github/workflows/rocm-ci.yml index 191c03950..32c3cb2a2 100644 --- a/.github/workflows/rocm-ci.yml +++ b/.github/workflows/rocm-ci.yml @@ -347,8 +347,8 @@ jobs: set -ex -o pipefail ulimit -c 0 # Disable core dumps - # Make sure HF_TOKEN is present - python -c "import os; assert os.environ.get('HF_TOKEN')" + # Check whether the HF_TOKEN is present + python -c "import os; print('HF_TOKEN set:', bool(os.environ.get('HF_TOKEN')))" cd /workspace/examples/pytorch/mnist python main.py 2>&1 | tee /workspace/examples.log