Repository navigation
fix(ecosystem): gate every manifest package and add covr 4.0.0 to the default corpus - #946
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
ℹ️ No blocking issues — one naming nit inline and two sequencing notes below; every artifact-level claim re-checked locally and holds.
Approach: sound — failing closed at the manifest↔ledger boundary (setdiff where intersect() used to be) is the right fix for the silent-skip hole, the gate applies to both lanes, and the corpus delta is fully reconciled with the fixtures copied from covr's own sources.
Reviewed changes — all 13 files of the delta against fix/928-typeshed-0.7.0, with the counts re-derived locally (ledger↔manifest↔reports consistency, SUMMARY cells, source_sha256 recipe, Posit-verdict cross-check, covr fixture provenance) and the ecosystem, posit, Oracle (R), test, and Lint gates green at head.
reconcile.Run-ledgered gate: reconciliation now reads every processed package's report and exits 1 withmanifest packages missing from the ledgerwhen a manifest package lacks a ledger entry — before,intersect()dropped 8 of 32 default-manifest packages (and their 13 findings) from the gate silently.- Test 11 (
test-reconciliation.R): pins the new gate; it exits 0 under the oldintersect()logic, and it runs in theecosystemCI job (ecosystem.yml:67). - covr 4.0.0 + full ledger coverage:
covrpinned at7dbd4dea(0 findings, 0-byte reports) and 9 ledger entries added so all 33 manifest packages are gated (posit stays 62 = 62, so its lane holds too); the 13 newly owned identities are allfalse_positive(5 test-fixture, 2 ry109-self-defaults, 6 manual-audit), leaving 37 TP / 43 FP / 0 — exactly the README, ledger note, and report lines. real_world.Rregression pins: three covr idioms pinned# no-diag(trace()/quote()exit calls,.Callnative symbols, withr/rex), each beside an adjacent# expect:case proving RY010/RY040 still fire in the same shape;cargo test -p ry-checker --test corpuspasses locally and in CI.- Docs and CHANGELOG: README numbers (33 packages, 80 diagnostics, 37/43/0, 4399 parse files) and the Unreleased bullet match the committed artifacts; the unchanged
source_sha256is correct because covr's empty root report contributes zero bytes to the recipe.
ℹ️ Merging closes #932 while its item 2 stays deferred
The diff resolves #932's gate bug and the triage its title asks for, but the body's problem 2 — the versioned ledger filename (tidyverse-0.7.1.json) and run.sh's hardcoded Posit-message and --local glue paths — is explicitly deferred, and Closes #932 retires the only tracker it has. Consider filing the follow-up issue (or narrowing the closer) before this merges.
Technical details
# #932 item 2 loses its tracker on merge
## Affected sites
- `ecosystem/run.sh:423` — `posit_corpus` hardcoded to `docs/corpus/posit-0.9.0.json`
- `ecosystem/run.sh:285-289` — the `--local` path hardcoded to the `glue` testdata package
- `docs/corpus/tidyverse-0.7.1.json` — the versioned filename #932 asks to reconsider
## Required outcome
- The deferred naming/paths cleanup stays tracked after #932 auto-closes on merge (a follow-up issue, or scope this PR's closer to the gate item).
## Open questions for the human
- Or should the follow-up ride the 0.13.0 release screening instead of its own issue?ℹ️ The red Build & test / Check checks are inherited from the stacked base
Both this PR and base #944 fail the same four ry-cli e2e tests — all RY010-expectation fixtures in package/testthat contexts, plausibly the base's rlang-stub vendoring now resolving names like enquo. Nothing in this delta touches Rust or ry-cli testdata: this PR's own gates are green, and the corpus tests passed inside the red job. No change is requested here — but the stack cannot merge until #944 turns Build & test green.
Technical details
# Build & test failures are the base's, not this delta's
## Affected sites
- `crates/ry-cli/tests/e2e/config_e2e.rs:436` — `package_test_fixtures_are_skipped_by_default` ("test code was skipped")
- `crates/ry-cli/tests/e2e/config_e2e.rs:461` — `check_test_fixtures_config_opts_back_in`
- `crates/ry-cli/tests/e2e/config_e2e.rs:856` — `package_test_context_supplies_suggests_and_namespace_imports` ("enquo must stay unbound there")
- `crates/ry-cli/tests/e2e/stdin_e2e.rs:298` — `package_context_uses_stdin_instead_of_stale_disk` (expected RY010 on `tests/testthat/helper-main.R`, got `[]`)
## Required outcome
- None in this PR. The failures are byte-identical at base #944's head 56bdf69 (job 140838094376) and this head (job 140841792639) — root-cause and fix on #944.glm-5.3 | 𝕏
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 4 selected item(s). |
…mits reconcile() intersected the processed packages with the ledger's packages, so a manifest package without a ledger entry left the gate silently. Closes #932
29440d4 to
a8d3aea
Compare
a8d3aea to
cbeb5a6
Compare
…Test 11 to its own fixture and message

The default corpus gate ignored any manifest package missing from its ledger.
reconcile.Rintersected the processed packages with the ledger'spackageslist, so 8 of the 32 default-manifest packages and their 13 report findings were never reconciled. This PR closes that hole and addsr-lib/covr4.0.0 to the corpus, as #927 requests.reconcile <- function(corpus_path, reports_dir, report_prefix = "", processed) { corpus <- jsonlite::fromJSON(corpus_path, simplifyDataFrame = TRUE) - audited <- intersect(processed, corpus$packages$name) + unledgered <- setdiff(processed, corpus$packages$name) ... - if (length(missing) || length(unowned)) { + if (length(missing) || length(unowned) || length(unledgered)) { # names each missing packageThe tidyverse ledger gains entries for rlang, withr, fs, cli, scales, jsonlite, testthat, curl and covr. covr is pinned at
7dbd4dea(CRAN v4.0.0) and has 0 findings: 0 inR/and 0 at the package root. It adds 202 files to the parse differential with 0 disagreements. All 13 newly owned identities are false positives. For 12 of them the Posit ledger gives the same verdict at its own pins:tests/testthat/test-cnd-entrace.R:284:28RY040,test-trace.R:592:28RY040; clitests/testthat/test-defer.R:4:11RY0401 + ""errors thatcatch_cnd()/expect_snapshot(error = TRUE)catchtest-cnd-message.R:480:8RY040"..." + "..."is quoted byenexpr()and never evaluatedtest-trace.R:323:5RY091eval()undercatch_cnd(), the error the test traces (Posit files it as type-narrowing)test-nse-defuse.R:329:22,:334:22RY109function(x = x)defaults are only captured byenexpr()/enquo(), never forcedR/ansi-hyperlink.R:144:7,R/containers.R:41:7,R/status-bar.R:239:7,:242:7,:245:7RY032R/snapshot.R:313:7RY032variantcomes fromcheck_variant(), which returns"_default"or a string and aborts otherwiseThe R checks in R 4.6 were:
eval()errors "argument "expr" is missing",1 + ""errors, andfunction(x = x) substitute(x)returnsxwithout forcing. No identity is removed, and all 37 true positives remain.real_world.Rgains three covr idioms beyond #916. Each one has an adjacent true positive that must keep firing:trace()exit calls built fromquote(), next to an unbound exit helper that still fires RY010..Call()of the routines registered insrc/reassign.c, next to an unbound data argument that still fires RY010.withr::with_envvar()/local_dir()with rex shortcuts, next to1 + "a"underwith_envvar()that still fires RY040.Follow-ups, not done here: the ledger file names still carry versions (
tidyverse-0.7.1.json), andecosystem/run.shstill hardcodes the Posit message-ledger path and the--localglue path (#932, item 2). I left the run.sh paths alone because a# messages:directive would let a copied manifest update the canonical message ledger.Proof:
ecosystem/run.sh --checkreports current reports for both manifests: default 4399 files, Posit 8397 files and 215 message identities.RY_BINARYwas a release build of this branch.check-ledger.pypasses on both ledgers andparse-differential.json.test-reconciliation.RTest 11 fails before thereconcile.Rchange and passes after.reconcile-reports.Rexit 1 withmanifest packages missing from the ledger: covr. The committed ledger exits 0, and the oldreconcile.Rexits 0 on the same copy.cargo test -p ry-checker --test corpuspasses.Reviewed with sol-loop: 1 round with gpt-6.2-sol on high. Sol verdict: approved. I fixed nit S1 (swapped group counts in the ledger note). I declined S2 (report unledgered packages before reading reports):
run.shalways writes a report for each processed package. I declined S3 (drop the duplicate.Call()fixture): the multi-linereset()call is covr's own layout.Stacked on #944 (
fix/928-typeshed-0.7.0). Retarget to main after it merges.After #944 merged, I rebased this onto main (r-typeshed v0.7.1) and retargeted it to main. Both
ecosystem/run.sh --checkruns report "committed reports are current" with the rebased head's release binary. After that, the review bots' fixes landed:read_actual_identities()takesprocessed, a missing ledger entry prints its own fix-it hint, and Test 11 builds its own fixture and asserts the message (Rscript ecosystem/test-reconciliation.Rpasses).Closes #927
Closes #932
Claude Opus 5.5 on behalf of Max


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Reconciliation now rejects processed packages missing from the ledger, including packages with empty reports.
All three ledgers passed their count checks. The R regression tests could not run because
Rscriptis unavailable.Acknowledged by
sims1253: reporting missing ledger packages before reading reports was declined becauserun.shwrites every processed report. The duplicate.Call()fixture was retained to matchcovr's layout. Versioned ledger filenames and the hardcoded message-ledger and local-source paths remain deferred.Reviews (1) · Last reviewed commit: "docs(corpus): correct the new audit-grou..." · Reviewed by Greptile
Summary by CodeRabbit