Skip to content

native/check.sh: a relative MERE is made absolute before the compile - #264

Merged
284km merged 1 commit into
mainfrom
stage10-ci-native-check-path
Nov 25, 2026
Merged

284km merged 1 commit into
mainfrom
stage10-ci-native-check-path

Conversation

@284km

@284km 284km commented Nov 25, 2026

Copy link
Copy Markdown
Owner

A fix to #261, before main's CI reaches the new step.

tools/iseq/native/check.sh compiles dump.mere with (cd "$here" && "$MERE" -c dump.mere ...), from its own directory. #261 runs it in the corpus job as MERE=.mere-compiler/_build/default/bin/mere.exe sh tools/iseq/native/check.sh corpus/*.rb, a path relative to the checkout, which names nothing after the cd. Reproduced here with the same relative path:

tools/iseq/native/check.sh: line 25: .mere-compiler/_build/default/bin/mere.exe: No such file or directory
check: build failed

The script now makes a relative MERE absolute before the cd. tree_check.sh has the same form and the same fix.

Checked: with the relative path, check.sh over corpus 801 and 820 (2 the same) and tree_check.sh over 801; with an absolute path as before.

#261's PR run never ran (it was merged with its checks pending), so main's run 45530405053 is the first to reach these steps. Its other three steps are watched there, and their times will be added to #261.

🤖 Generated with Claude Code

The script compiles dump.mere from its own directory, so a MERE relative to
where it was started named nothing there. CI passes
.mere-compiler/_build/default/bin/mere.exe since #261, and the step would
have stopped at "check: build failed". tree_check.sh likewise.

@284km 284km left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed acb898f. No findings.

  • check.sh and tree_check.sh now make a relative MERE absolute against the caller's directory before the subshell that compiles from the script's own directory. The CI step's .mere-compiler/_build/default/bin/mere.exe from #261 resolved against tools/iseq/native/ and failed with "build failed". The fix leaves an absolute path, and a bare name found on PATH, unchanged. ${MERE:?} keeps the existing requirement that MERE be set (the usage line already says so).
  • git merge-tree against current main: clean. No mere-pr-review-watch inline comments. A small CI-tooling fix to a step that is broken on main right now. Merging.

@284km
284km merged commit d03cbb8 into main Nov 25, 2026
4 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant