Skip to content

[ci] fix: check-imports action lookup on ARC container runner - #3774

Merged
ko3n1g merged 1 commit into
mainfrom
ko3n1g/ci/fix-check-imports-action-path
May 11, 2026
Merged

[ci] fix: check-imports action lookup on ARC container runner#3774
ko3n1g merged 1 commit into
mainfrom
ko3n1g/ci/fix-check-imports-action-path

Conversation

@ko3n1g

@ko3n1g ko3n1g commented May 11, 2026

Copy link
Copy Markdown
Contributor
Claude summary

What

Replaces the explicit actions/checkout + local-action uses: ./... pattern with a direct remote reference to the check-imports composite action.

-      - name: Checkout check-imports
-        uses: actions/checkout@v6
-        with:
-          repository: NVIDIA-NeMo/FW-CI-templates
-          ref: v0.80.1
-          path: FW-CI-templates
-
       - name: Check imports for megatron-bridge
-        uses: ./FW-CI-templates/.github/actions/check-imports
+        uses: NVIDIA-NeMo/FW-CI-templates/.github/actions/check-imports@v0.80.1

Why

On the ARC self-hosted container runner, the in-container workspace path (/__w/Megatron-Bridge/Megatron-Bridge) and the host workspace path (/home/runner/_work/Megatron-Bridge/Megatron-Bridge) diverge. actions/checkout runs in-container and writes FW-CI-templates/ to the container path, but the GitHub Actions local-action loader resolves uses: ./... against the host path, so it cannot find action.yml:

##[error]Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under
'/home/runner/_work/Megatron-Bridge/Megatron-Bridge/FW-CI-templates/.github/actions/check-imports'.
Did you forget to run actions/checkout before running your local action?

This failure reproduces across PRs (3772, 3545, …) — i.e. the workflow on main itself is broken.

Because check-imports is a composite action hosted in a public repo, referencing it via NVIDIA-NeMo/FW-CI-templates/.github/actions/check-imports@v0.80.1 sidesteps the checkout entirely — the runner fetches and caches the action via its standard remote-action path, which works regardless of container/host path mapping.

The local action lookup 'uses: ./FW-CI-templates/.github/actions/check-imports'
fails on the ARC container runner because the host path
(/home/runner/_work/...) and the in-container path (/__w/...) diverge,
so actions/checkout writes files where the action loader cannot find
them. Reference the composite action directly via its source repo to
skip the checkout step.

Signed-off-by: oliver könig <okoenig@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented May 11, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@ko3n1g ko3n1g added area:misc Cross-cutting utilities, logging, helpers, and other changes ci CI, automation, test queue, or workflow infrastructure work labels May 11, 2026
@ko3n1g
ko3n1g marked this pull request as ready for review May 11, 2026 18:22
@ko3n1g
ko3n1g requested a review from a team as a code owner May 11, 2026 18:22
@claude

claude Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

Light Review

LGTM. The change correctly replaces the two-step checkout + local-action pattern with a direct remote action reference, which sidesteps the container/host path divergence on ARC runners. The version pin (v0.80.1) is consistent with the existing pre-flight job reference on line 60.

Minor note (non-blocking): The commented-out pip-test-pytorch job (lines 109-117) still contains the old checkout + local-action pattern at v0.39.0. If that job is ever re-enabled, it will hit the same bug. Consider updating or removing the stale commented block in a follow-up.

Suggested test cases: No perf tests impacted.

@ko3n1g
ko3n1g enabled auto-merge (squash) May 11, 2026 18:45
@ko3n1g
ko3n1g disabled auto-merge May 11, 2026 18:45
@ko3n1g
ko3n1g merged commit e3c93dc into main May 11, 2026
37 checks passed
@ko3n1g
ko3n1g deleted the ko3n1g/ci/fix-check-imports-action-path branch May 11, 2026 18:46
gautham-kollu pushed a commit that referenced this pull request May 12, 2026
Signed-off-by: oliver könig <okoenig@nvidia.com>
vasunvidia pushed a commit to vasunvidia/Megatron-Bridge that referenced this pull request Jun 10, 2026
…-NeMo#3774)

Signed-off-by: oliver könig <okoenig@nvidia.com>
Signed-off-by: Vasudevan Rengasamy <vrengasamy@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:misc Cross-cutting utilities, logging, helpers, and other changes ci CI, automation, test queue, or workflow infrastructure work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants