Repository navigation
ci: run specs against lich-5 v5.25.1 - #2650
Conversation
Bump the pinned lich-5 checkout used for spec fixtures from v5.25.0 to v5.25.1. The full suite passes locally against v5.25.1 (Ruby 4.0.9). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
OSXLich-Doug
left a comment
There was a problem hiding this comment.
PR Review: ci: run specs against lich-5 v5.25.1 (#2650)
Reviewed: 1 file, +1/-1 at 2329b3e4 on 2026-12-03. Based on: changed file at head and pinned target source for unchanged consumers. Base 2886d4ac is the current master.
Verdict: Changes requested (1 Minor)
Summary: This PR moves the CI fixture checkout to lich-5 v5.25.1. The dedicated Ruby job ran 24,580 examples with zero failures using the new checkout. The briefcombat spec still identifies v5.25.0 as the CI fixture, so it overstates what a green run verifies for the supported minimum. CI test job
Minor
F1 [Minor] Correct the briefcombat spec's CI fixture description - .github/workflows/ci.yml:50
Defect
ref: v5.25.1The comment at spec/scripts/briefcombat_spec.rb:10 identifies 5.25.0 as both the CI checkout and the supported minimum. The spec loads the real combat parser from the configured checkout at spec/scripts/briefcombat_spec.rb:19-28. The parser changed between the two releases. The test at spec/scripts/briefcombat_spec.rb:491-495 still checks the minimum as a version string, so a green run no longer shows how the real 5.25.0 parser behaves. Spec comment and loader · Release comparison
Suggested repair: Point the spec comment to .github/workflows/ci.yml for the current fixture and describe 5.25.0 separately as the runtime minimum.
If applied: A comment-only change corrects the coverage claim. The spec loader and the runtime version check do not read that comment.
If ignored: A maintainer can read the spec and attribute passing parser tests to 5.25.0 when the job exercised 5.25.1.
Coverage
Not verified: Live gameplay and a fresh run against the older 5.25.0 fixture.
Coverage notes
- Read and traced: The full workflow and its one-line diff, the shared test fixture resolver, all eight fixture consumer groups, the CI gate and pin audit. The briefcombat script and spec establish the runtime minimum; the spec comment is the stale CI claim. Other fixture documentation describes the checkout generically.
- Ran: GitHub Actions run 47026188277, attempt 1, checked out synthetic merge
21ac85a6942b1c41cff9bc07383826323c918467, Ruby 4.0.10 Linux, and lich-5325bed07d1e5a91238b6deb5b75cc1d054adbd1f. Migrations ran, then RSpec reported 24,580 examples and zero failures. The gate passed. The focused local fixture-resolution probe passed on host Ruby 4.0.9 and failed as expected with a broken path. CI test job · CI gate - Invariants attacked: The workflow checkout won over a competing sibling on three reads. When the selected checkout lacked the requested file, the resolver returned no source instead of switching releases. A deliberately wrong path selected the sibling and failed the probe. A failed checkout stops ordinary RSpec execution and fails the gate by source trace.
- Not verified: The local probe uses disposable fixtures. It does not re-run GitHub Actions or exercise the live game. The checkout-failure branch was source-traced.
- External review: CodeRabbit auto-review was disabled. No external review was triggered.
- Prior records: No matching baseline, review or decision records for this PR at intake.
- PR thread: Description read. Zero reviews and zero inline comments. One CodeRabbit status comment with no findings. The thread was refreshed on 2026-12-03 at 09:16 Central.
Coverage detail
- C1: The workflow loads a tagged dependency into the existing test path. The hosted test job records the exact checkout and RSpec result. The local probe exercised the existing path resolver with competing fixtures and a wrong-path control.
- C2: The version predicate still covers the supported minimum as a string. The fixture loader exercises the installed release. Version predicate spec · CI workflow
Review record
- Format: reviewpr-report-v8; skill sha256=8e688da0db19b633af97a4d15d490164e7883a3d7ab072c114637f0b68bbae17
- Recheck: nothing moved, rechecked 2026-12-03
- Revisions: head=2329b3e4b5d147443b6cac237bc931aaba7dca0b; target=2886d4aca458d84c933e2d5b2c0b911962b2e39c; merge-base=2886d4aca458d84c933e2d5b2c0b911962b2e39c; main=same as target; parent=not applicable
- Counts: Critical=0; Major=0; Minor=1; Nit=0; Open questions=0; Positives=0
- States: baseline=none; stack=inactive; reuse=existing fixture checkout and resolver
- Findings: F1 origin=prompted; change-origin=introduced; evidence=C1 and C2
- Evidence: Public source and CI links above.
- Boundaries: No repository source edits or Git writes.
Specs that load or mirror real lich-5 code named specific releases (5.25.0, 5.21) or lich-5 main as the source. They run against the lich-5 release pinned in .github/workflows/ci.yml, so say that instead. The briefcombat spec now notes that the pin must stay at or above the script's minimum Lich (BriefCombat::MIN_LICH). Each cited file and constant was checked in the v5.25.1 checkout. Comments and one skip message only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the review. Addressed F1 in 588933b. The spec comment shouldn't have named a version in the first place. Specs here run against the lich-5 release pinned in I applied the same rule to the other specs that named a specific lich-5 release or main as the source of the code they load or mirror ( |
OSXLich-Doug
left a comment
There was a problem hiding this comment.
PR Review: ci: run specs against lich-5 v5.25.1 (#2650)
Reviewed: 5 files, +13/-12 at 588933bd on 2026-12-03. Based on: changed files at head, prior snapshot, pinned target consumers and cited upstream fixture source. Base 2886d4ac is the current master.
Prior review: 2329b3e4 (review 6172905294), verdict Changes requested (1 Minor), 1 finding. Verdict now: Approve.
Verdict: Approve
Summary: The briefcombat spec now refers to the CI-pinned checkout and names its minimum supported version separately. The updated combatstream and log references agree with the v5.25.1 fixture used by CI. The only executable difference since the prior head is the combatstream skip message. CI ran 24,580 examples with zero failures on the updated revision. CI test job
Findings
No findings.
Earlier feedback
- OSXLich-Doug F1 (at
2329b3e4, exact): fixed at588933bd. The spec describes the checkout by role and points to the minimum-version constant separately. The workflow selects v5.25.1 and the script's minimum is 5.25.0. Original review · Author response · Updated spec
Coverage
Not verified: Live gameplay and a fresh run on the older v5.25.0 fixture.
Coverage notes
- Read and traced: The workflow pin, all four spec files updated since the prior review, the fixture resolver, the briefcombat minimum, and the pinned lich-5 processor, kill command, Script methods and markup definitions. The updated docs refer to the CI fixture. The deliberate older-version compatibility examples remain executable as before.
- Ran: GitHub Actions attempt 1 used synthetic merge
bca02c6c0c3516a650d0fff2f526361fe6096f60, Ruby 4.0.10 Linux and lich-5325bed07d1e5a91238b6deb5b75cc1d054adbd1f. Migration, RSpec (24,580 examples, zero failures, no pending examples reported) and the CI gate succeeded. A focused host Ruby 4.0.9 parity probe made 24 argument comparisons across the prior/current helper and the pinned Lich implementation. The control failed when it removed the leading raw command string. CI test job · CI gate - Invariants attacked: Old and new source were compared from distinct snapshots. The fixture resolver and spec predicates are stable. The argv probe checked nil, empty and whitespace inputs, raw and quoted arguments, escaped quotes and array input across repeated calls. The combatstream loader may still skip on a missing capability or a load exception. The latter has a separate warning with the error class and message.
- Not verified: The local probe isolates argv normalization. It does not start Lich scripts or connect to the game. The missing-processor path was source-traced.
- External review: CodeRabbit auto-review was disabled. No external review was triggered.
- Prior records: The previous review's C1/C2 and F1 were reconciled against the new head. F1 is fixed. No unrelated baseline was used.
- PR thread: Description, one review and two conversation comments read. No inline comments. The CodeRabbit comment reported a skip. The author's repair comment was mapped to
588933bdby time and independently checked against that commit. Refreshed on 2026-12-03 at 10:02 Central.
Coverage detail
- C1-C2: The current CI run confirms the updated fixture. The spec describes the configured fixture and references the minimum independently. Current workflow · Updated briefcombat spec
- C3-C5: The pinned processor supports whole attacks, the logger's authority references match the pinned implementations, and the argument probe confirms parity across older and current spec helpers and the upstream initializer. Processor · Kill builtin · Markup · Initializer
Review record
- Format: reviewpr-report-v8; skill sha256=8e688da0db19b633af97a4d15d490164e7883a3d7ab072c114637f0b68bbae17
- Recheck: nothing moved, rechecked 2026-12-03
- Revisions: head=588933bd17bd293e582a6075ee8795fddac6578b; target=2886d4aca458d84c933e2d5b2c0b911962b2e39c; merge-base=2886d4aca458d84c933e2d5b2c0b911962b2e39c; main=same as target; parent=not applicable; prior head=2329b3e4b5d147443b6cac237bc931aaba7dca0b
- Counts: Critical=0; Major=0; Minor=0; Nit=0; Open questions=0; Positives=0
- States: baseline=none; stack=inactive; reuse=rechecked prior CI fixture trace and F1 evidence
- Evidence: Public source and CI links above.
- Boundaries: No repository source edits or Git writes.
MahtraDR
left a comment
There was a problem hiding this comment.
PR Review: ci: run specs against lich-5 v5.25.1
Reviewer: Claude · 588933b · 2026-12-04
This bumps the CI lich-5 fixture to v5.25.1 and rewrites the spec comments that named a specific lich-5 release, so they now say "the CI-pinned checkout". I checked every file and constant the rewritten comments cite against a v5.25.1 tree. The markup stream list, the ;kill exact-then-prefix lookup, the duplicate-start refusal behind Script.start, and the Script#initialize argument split all match. spec/support/lich_script_vars.rb mirrors that last one exactly.
The CI test job ran 24,580 examples with 0 failures and none pending. So the combatstream end-to-end example really ran on v5.25.1 instead of skipping, which is what the new comment says the pinned checkout supports. No other spec or doc in the repo still names the fixture version. The remaining version strings are deliberate older-Lich compatibility tests, and they were rightly left alone.
Also found: Doug's earlier point about the briefcombat comment is fixed. The comment now points at BriefCombat::MIN_LICH, and that constant exists ('5.25.0') in scripts/briefcombat.lic.
Nothing open. Approving.
Bumps the pinned lich-5 checkout in
.github/workflows/ci.ymlfromv5.25.0tov5.25.1, now that 5.25.1 is released.Following the note in the workflow, I ran the suite locally against v5.25.1 first:
bin/migratethenbundle exec rspecwithLICH5_PATHpointed at a v5.25.1 checkout on Ruby 4.0.9. Result: 24580 examples, 0 failures.🤖 Generated with Claude Code