Skip to content

ci: run the Flow port parity gates and the corpus parity check - #1021

Merged
godofecht merged 4 commits into
mainfrom
ci/parity-gates
Sep 29, 2026
Merged

godofecht merged 4 commits into
mainfrom
ci/parity-gates

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Adds two CI jobs so the Flow ports cannot regress against the Python reference.

  • flowc-parity-gates runs parity_lowering, parity_field_dsl, parity_shader_dsl, parity_dynamics_dsl, parity_flow_blocks and parity_effects in golden mode, then fmt_check.sh --check. All need only a C compiler. parity_shader_dsl skips its xcrun metal step where there is no Metal toolchain.
  • flowc-corpus-parity runs corpus_parity.sh --check against the recorded Python goldens. The floor is per OS; on Linux it passes with a note until a floor is recorded.

Already covered elsewhere: parity_proofs and parity_mlir (golden mode) run in flowc-selfhost, and parse_coverage.sh --check has its own job. scripts/check_pkg_parity.sh is left out because it runs the Python package manager as its reference side.

Each gate passed locally on this tree (macOS).

A flowc-parity-gates job runs parity_lowering, parity_field_dsl,
parity_shader_dsl, parity_dynamics_dsl, parity_flow_blocks and
parity_effects in golden mode, then fmt_check --check. They need only a C
compiler; the shader gate skips its Metal step without xcrun. A
flowc-corpus-parity job runs corpus_parity.sh --check against the recorded
Python goldens. parity_proofs and parity_mlir already run in
flowc-selfhost, and parse_coverage --check has its own job.
…test_sort_nan

fmt_check and corpus_parity built the bootstrap C without -lm, which fails
to link on Linux. test_sort_nan made its positive NaN as 0.0 / 0.0, which
is a negative NaN on x86-64, so totalOrder sorted it first and the test
failed on the Linux runner while passing on arm64. It now sets the sign
with copysign.
fzero / fzero is also a negative NaN on x86-64; copysignf makes it positive
so the f32 totalOrder check holds on the Linux runner.
runtime_strict_abort printed "before" and then aborted. With stdout on a
pipe the line stays in the buffer, which abort() drops, so the Linux
runner lost it and the order of stdout and stderr depended on the
platform. The fixture flushes stdout first, and the golden records the
now fixed order.
@godofecht
godofecht merged commit c9af1d7 into main Sep 29, 2026
27 checks passed
@godofecht
godofecht deleted the ci/parity-gates branch October 1, 2026 12:49
godofecht added a commit that referenced this pull request Oct 1, 2026
Recover docs/design/denotational-mlir.md from the unmerged
feat/denotational-mlir branch and update it: the Python emitter is
retired, the flow.* dialect is a future slice for compiler/src/mlirgen.flow,
and the related issues are #664, #665, #667 and #671.

Add docs/project/archive-tags.md listing the archive/* tags that keep
reference implementations written against the retired Python compiler.

AGENTS.md: replace the stale denotational lane entry, mark #1021 and
#1022 merged, and refresh the bootstrap suite numbers (254 files,
251 pass, 3 fail on 2026-10-01).
godofecht added a commit that referenced this pull request Oct 1, 2026
* docs: denotational MLIR design, archive tags, AGENTS.md refresh

Recover docs/design/denotational-mlir.md from the unmerged
feat/denotational-mlir branch and update it: the Python emitter is
retired, the flow.* dialect is a future slice for compiler/src/mlirgen.flow,
and the related issues are #664, #665, #667 and #671.

Add docs/project/archive-tags.md listing the archive/* tags that keep
reference implementations written against the retired Python compiler.

AGENTS.md: replace the stale denotational lane entry, mark #1021 and
#1022 merged, and refresh the bootstrap suite numbers (254 files,
251 pass, 3 fail on 2026-10-01).

* docs: list the denotational MLIR page in nav.json and mark archive-tags unlisted
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