Skip to content

test: make c import directory fixture reproducible - #1098

Merged
godofecht merged 1 commit into
mainfrom
fix/c-import-dir-fixture
Oct 1, 2026
Merged

godofecht merged 1 commit into
mainfrom
fix/c-import-dir-fixture

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Add the header used by test_c_import_dirs to the repository and point the test at that fixture. This removes the dependency on a stale /tmp file.

@godofecht
godofecht merged commit 78a8bed into main Oct 1, 2026
28 checks passed
godofecht added a commit that referenced this pull request Oct 1, 2026
…d programs

#1098 changed test_c_import_dirs.flow, so its digest moves. The corpus
also gains the tests/cli fixtures and #1096's test.
godofecht added a commit that referenced this pull request Oct 1, 2026
…#1095)

The flow command line is a Flow program (tools/flow_cli). ./flow is a short sh stub that builds and runs it. The 4,311-line bash flow-driver is deleted, and the scripts and tools that called it now call the CLI.

tests/cli/run.sh holds the CLI to goldens for every subcommand, per OS. It passes 149/149 on macOS and on Linux CI. The Linux exit-code and stderr goldens came from the bash driver; the Linux stdout goldens were recorded on the CI runner, and in that run no exit code or stderr differed from the bash driver.

Carried over while rebasing onto main:
- #1093's @cembed linking on the MLIR path, which #1093 added to flow-driver, is now in tools/flow_cli's flow_link_mlir_ll.
- The two MLIR CLI goldens follow #1093's string escape (\0A).
- The MLIR corpus digest for test_c_import_dirs follows #1098.

corpus_parity compares only the build of nine programs whose run depends on machine load: concurrency examples and nbody under seven parallel jobs with a 10s limit, and three whose Python golden run timed out. They are listed in compiler/corpus_parity/timing.txt. The floor stays 1033; this tree scores 1038.

The flow-driver references that remain are historical git archive calls of old revisions (corpus_parity --python, the gpu parity reference), docs that describe the deletion, and two guarded lines in packaging/homebrew/Formula/flow.rb that install flow-driver only if it exists.
@godofecht
godofecht deleted the fix/c-import-dir-fixture branch October 1, 2026 12:49
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