Skip to content

ci: real-world link corpus published as a pass rate (reld#6 P2-T3) #185

Closed

Description

@zackees

Sub-issue of #6 (P2-T3).

Why

reld's evidence today is fixtures and mold's shell tests. Neither answers "does reld link real projects?". #6 asks for a pinned corpus of real C/C++/Rust projects linked by reld in CI, published as a pass rate, under the same honesty policy as the benchmarks: a regressing number is still published.

Scope

  • ci/corpus.py: a pinned list of real projects spanning the stressors P2: Prove Linux — self-host, corpus pass rate, populate the benchmark column #6 names — heavy C++ templates and COMDAT, TLS, symbol versioning (glibc-linked binaries), static and PIE variants, and Rust crates with build scripts. Start small (a handful that build in minutes); each entry pins an exact revision and checksum.
  • For each project: build it with reld as the linker (clang --ld-path=reld / -C link-arg=--ld-path=…; reld is a pure linker, never -C linker=reld), run a smoke of the produced binary where one exists, and record pass/fail with the failure's first line.
  • ci/corpus.py --publish writes corpus.json (per-project result, reld commit, runner, timestamp) and a summary table. Publishing goes to the benchmark-stats branch alongside the benchmark artifacts; keep the credentialed push in YAML, as ci/benchmark_pipeline.py does (refactor(ci): move benchmark orchestration into invokable Python #48).
  • A scheduled workflow (corpus.yml, new file) runs it; it is too heavy for every PR.
  • Unit tests for the parts that decide the result — pass/fail classification, the published JSON shape, missing-input failures — in ci/tests, following AGENTS.md's Test layout rules.

Acceptance

ci/corpus.py --publish writes corpus.json with per-project pass/fail (#6's acceptance), a live run of the workflow is green, and a failing project lowers the published rate instead of failing the job.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions