Skip to content

Build dist/std before make test#2857

Closed
plajjan wants to merge 1 commit into
mainfrom
make-test-build-std
Closed

Build dist/std before make test#2857
plajjan wants to merge 1 commit into
mainfrom
make-test-build-std

Conversation

@plajjan
Copy link
Copy Markdown
Contributor

@plajjan plajjan commented Jun 3, 2026

Standalone make test can run test_acton before the local dist/std distribution exists, while several compiler tests build projects that resolve that path. This makes the top-level test target prepare dist/std first.

The stdlib test commands now live behind a helper target so the full make test path can reuse the prepared distribution instead of invoking test-stdlib and rebuilding it.

The compiler test suite includes project builds that resolve the local std distribution. A standalone make test could reach test_acton before dist/std existed, even though the full CI build normally prepared it earlier.

Make the top-level test target depend on dist/std and split the stdlib test commands into a helper so make test does not rebuild dist/std through test-stdlib.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f266e641a3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Makefile
$(MAKE) -C test

test-stdlib: dist/bin/acton dist/std
test-stdlib: dist/bin/acton dist/std test-stdlib-run
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep stdlib tests ordered after dist/std

When make -j test-stdlib is used, test-stdlib-run is just another independent prerequisite of test-stdlib, so GNU make may start it before dist/std finishes (make --help documents -j as allowing multiple jobs at once). That reintroduces the same missing/preparing dist/std race for the documented standalone stdlib target; make the run step a recipe after the prerequisites instead of a parallelizable prerequisite.

Useful? React with 👍 / 👎.

@plajjan plajjan closed this Jun 4, 2026
@plajjan plajjan deleted the make-test-build-std branch June 4, 2026 10:23
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