Repository navigation
S5: remove all Rust: Track builds, tests and ships from the C seed and .trk alone - #39
Merged
Merged
Conversation
Port tests/native_tests.rs to tests/sh/native.sh on a bash runner with per-test timeouts, PASS/FAIL lines and optional parallelism. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
selfhost.sh and lifecycle.sh cover every selfhost_tests.rs test (the stage0 halves of the parity tests become goldens recorded from stage0); tools.sh ports the editor and headless-highlight asset checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lang.sh and cli.sh hold the trackc halves of integration, cli, codegen_semantics, regression, soundness, checker, lexer, parser and performance tests; verdicts pin trackc's exact first diagnostic line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two holes found by the independent check: - A trackc that exits 0 without writing output passed both parity tests (two missing binaries both exit 127 and so "agree"). build() and the parity loops now require an executable, and same_run rejects 126/127. - Deleting or renaming a test function silently ran one test fewer. A full run now checks the suites against tests/sh/ids.txt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI failed with 'no golden tests/cases/examples/arithmetic.out': the 25 goldens the parity tests read were on disk locally but matched *.out in .gitignore. Unignore tests/cases/**/*.out and add them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…name size The example prints the size of /etc/hostname (14 here, 11 on the CI runner). The golden now holds @HOSTNAME_BYTES@ and the test fills in the local size (0 when the file is missing, the example's fallback path). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-rust # Conflicts: # .github/workflows/ci.yml
src/, Cargo.toml, Cargo.lock and tests/*.rs are gone. bootstrap.sh loses --from-rust; install.sh bootstraps from the C seed and builds yard with trackc; bench scripts compare trackc's C and native backends instead of the Rust compiler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci.yml drops the cargo build and lint jobs; one job runs the no-Rust guard, bootstrap, update_seed --check, deny-warnings on compiler and yard, tests/run.sh, tests/yard/run.sh, tests/lsp/run.sh, selfhost.sh, the examples check and the version check. Docs describe the Rust stage 0 as history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n Track) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…of blank lines Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The independent check found two checks the old cargo job ran that the new CI dropped: trackc check on every compiler/src/*.trk (main.trk only covers what it imports), and yard check + build of the compiler/ package. Both run again, with the Track yard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedToo many files! This PR contains 295 files, which is 195 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The last step of retiring Rust. After this PR, no Rust is left in the compiler, yard, the LSP, the build or the tests.
src/: the Rust stage0 compiler, Rust yard and Rusttrack-lsp.Cargo.tomlandCargo.lock.tests/*.rsfiles, already ported totests/run.shin S2: cargo-free test runner (tests/run.sh) replacing cargo test #38.bootstrap.shloses--from-rust.--from-seedis still accepted and does nothing.install.shbootstraps from the seed, then builds yard with trackc.native.shcompares native against C.race.shraces the C-built stage3 against native trackc.scratch/benchmarks/*.rsstay: they are benchmark subjects.buildandlintjobs are gone. One job runs on cc and POSIX tools alone:update_seed --check--deny-warningson the compiler and yardtrackc checkon everycompiler/src/*.trkcompiler/tests/run.sh,tests/yard/run.shandtests/lsp/run.shselfhost.sh, the examples check and the versions checkdocs/*.md, PORTING.md and CHANGELOG describe Rust stage 0 as history.page/drops its "written in Rust" andcargo buildtext, gets rebuilt, and has a code-highlighter span bug fixed.bootstrap/,runtime/andcompiler/rtare byte-identical to 8f3ea45.Verification
run:steps literally from a fresh clone underPATH=/usr/bin:/bin, and every one returned 0.tests/run.sh97/97, yard 14/14, lsp 17/17.selfhost.shpasses andbench/race.shruns.cargo buildcommand.compiler/. They are restored, and the new step passes locally.git ls-files | grep -E '\.rs$|Cargo'now lists onlyscratch/benchmarks/{branch,loop,rec,tuple}.rs, which are rustc benchmark subjects.🤖 Generated with Claude Code