Skip to content

Fix test-linux-armv7 job for forks not named "hermes"#2047

Closed
ramonclaudio wants to merge 1 commit into
facebook:static_hfrom
ramonclaudio:fix-armv7-ci-repo-name
Closed

Fix test-linux-armv7 job for forks not named "hermes"#2047
ramonclaudio wants to merge 1 commit into
facebook:static_hfrom
ramonclaudio:fix-armv7-ci-repo-name

Conversation

@ramonclaudio

@ramonclaudio ramonclaudio commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

The test-linux-armv7 job hardcodes the repo name (cmake -S hermes, python3 hermes/utils/...), so it fails on any fork not named hermes:

CMake Error: The source directory /__w/hermes-fork/hermes does not exist.

Unlike the other jobs, it uses actions/checkout@v1 without path: (v4 breaks in the arm32 container, actions/checkout#334), so the checkout directory takes the repo name. Swap the hardcoded hermes for ${{ github.event.repository.name }}: unchanged on facebook/hermes, correct on forks.

Test plan

  • actionlint clean, YAML valid.
  • Resolves to hermes upstream, so the commands are unchanged here.
  • On a fork it resolves to the fork name, matching the checkout dir, so configure finds the source.

The test-linux-armv7 job uses actions/checkout@v1 (kept on purpose because v4
fails inside the arm32 container, see actions/checkout#334), which checks the
repo out into a directory named after the repository. The build step then does
`cd ..` and runs `cmake -S hermes` and `python3 hermes/utils/...`, hardcoding
the repo name. On any fork whose name is not "hermes" the checkout lands in
<fork-name>/ and the build fails immediately:

  CMake Error: The source directory /__w/<fork>/hermes does not exist.

Reference the checkout directory via ${{ github.event.repository.name }} so the
path follows the repo name. It resolves to "hermes" on facebook/hermes (no
behavior change) and to the fork name on forks. The other six jobs are already
fork-agnostic because they use actions/checkout@v4.1.0 with `path: hermes`.
@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 4, 2026
@meta-codesync

meta-codesync Bot commented Jun 5, 2026

Copy link
Copy Markdown

@tmikov has imported this pull request. If you are a Meta employee, you can view this in D107691575.

@meta-codesync

meta-codesync Bot commented Jun 5, 2026

Copy link
Copy Markdown

@tmikov merged this pull request in bc5ef9b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant