Skip to content

chore(codegen): remove completed g4 port trackers - #339

Merged
tinovyatkin merged 3 commits into
mainfrom
codex/remove-g4-porting-trackers
Aug 12, 2026
Merged

chore(codegen): remove completed g4 port trackers#339
tinovyatkin merged 3 commits into
mainfrom
codex/remove-g4-porting-trackers

Conversation

@tinovyatkin

@tinovyatkin tinovyatkin commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove the completed direct-.g4 port inventories, evidence archive, generators, and validators
  • remove their dedicated CI validation gate plus duplicate frontend corpora
  • retain all 471 executable codegen fixtures and move the frontend oracle inputs to antlr-rust-g4-parser
  • rename Phase C test metadata as permanent runtime conformance coverage

Why

The port-completeness machinery protected the one-time transition from .interp inputs to native .g4 compilation. Native parsing has now shipped through several releases and is covered directly by the retained regression fixtures, so continuing to maintain the historical ledger adds repository weight and CI complexity without protecting a live migration.

The CI checkout remains full-depth because the independent Mehen source-metrics step compares the PR against its base revision.

Validation

  • cargo fmt --all -- --check
  • cargo test --locked --workspace --all-targets --all-features
  • cargo clippy --locked --workspace --all-targets --all-features -- -D warnings
  • node tools/grammar-frontend/validate-interp-fixtures.mjs
  • cargo check --manifest-path benches/Cargo.toml --benches
  • actionlint .github/workflows/ci.yml
  • tools/release/check-workspace-version.sh
  • ANTLR_RUST_RELEASE_ALLOW_DIRTY=1 tools/release/preflight-package-archives.sh

The frontend snapshot oracle was not regenerated because the optional cleanroom antlr-ng checkout was not present. Its checked-in corpus paths and the full antlr-rust-g4-parser snapshot suite were validated successfully.

Native grammar parsing is now established and covered by executable regression fixtures, so the migration ledger no longer protects an active cutover.

Remove the upstream and external inventories, port-evidence archive, map-driven fixture generators and validators, and the CI history wiring that maintained them. Keep the 471 behavior fixtures, move the frontend corpus to antlr-rust-g4-parser, and rename Phase C metadata as permanent runtime conformance coverage.
@github-actions

Copy link
Copy Markdown

Copy/Paste Detection

No duplications found in 4 changed non-generated Rust file(s) (threshold: 100 tokens).

@claude

claude Bot commented Aug 11, 2026

Copy link
Copy Markdown

Code review: chore(codegen): remove completed g4 port trackers

  • Gather PR context (diff, commits, CLAUDE.md)
  • Verify retained-fixture claim — 471 on main, 471 at HEAD
  • Review the frontend corpus relocation + path-contract fix (1097a62) ✅
  • Review CI gate removal (ci.yml) and .gitattributes
  • Sweep for dangling references to deleted paths — no hits
  • Cross-check with 4 parallel review agents (2 CLAUDE.md, 2 bug-hunt) — running
  • Build/test verification — -p antlr-rust-g4-parser --lib 13/13 pass; clippy + codegen tests running
  • Post consolidated review

View job run · branch codex/remove-g4-porting-trackers

@codspeed-hq

codspeed-hq Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 16 untouched benchmarks


Comparing codex/remove-g4-porting-trackers (9536423) with main (80cb700)

Open in CodSpeed

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

Copy link
Copy Markdown

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: 8314e04211

ℹ️ 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 tools/grammar-frontend/snapshot-frontend.mjs
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The relocated corpus lives under antlr-rust-g4-parser, while the Rust snapshot consumer resolves paths from that crate's manifest directory. Store case paths relative to the crate and give the updater an explicit repository-relative source root.

Add a regression test that keeps corpus paths aligned with the generated TSV and verifies every referenced fixture exists.
The port-evidence validator no longer needs full history, but the independent Mehen step still compares source metrics against the PR base. Keep the checkout full-depth and document that remaining dependency.
@github-actions

Copy link
Copy Markdown

📊 Source Code Metrics (this PR vs main)

File Cyclomatic Cognitive Functions LLOC MI
crates/antlr-rust-g4-parser/src/frontend.rs 225 (main: 217) 🔴 91 (main: 88) 🔴 70 (main: 68) 🔴 325 (main: 307) 🔴 0 ⚪
crates/antlr-rust-g4-parser/src/lib.rs 1 ⚪ 0 ⚪ 0 ⚪ 0 ⚪ 52.57 (main: 51.07) 🟢
crates/antlr-rust-g4-parser/src/ported_tests.rs 0 (was: 5) 🟢 0 (was: 2) 🟢 0 (was: 1) 🟢 0 (was: 10) 🟢 0 (was: 29.74) 🔴

Generated by mehen v1.8.1 — the code quality watcher.

@tinovyatkin
tinovyatkin merged commit 9d2a8c1 into main Aug 12, 2026
15 of 16 checks passed
@tinovyatkin
tinovyatkin deleted the codex/remove-g4-porting-trackers branch August 12, 2026 07:36
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