You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(pm): extract OpenCode revisions from Nix store paths - #16714
The collector reads the running service executable and compares its embedded revision with the code flake pin. Nix paths prefix the package name with a store hash, so the old start-of-path/segment-only match returned unknown for the real executable.
- match only `.../opencode-<version>+<rev>/...`+ also match Nix store names `.../<store-hash>-opencode-<version>+<rev>/...`
Adds a regression test for the observed .opencode-wrapped executable path. This is a focused follow-up to #14175 and #1362; it does not claim deployment or full parity is complete.
Evidence
Before: regression test failed: Nix store executable was classified unknown instead of match.
After:python3 -I -m unittest discover -s pm-stack/tests -p test_host_health_collector.py — 17 passed locally. The branch collector against the live host reports mismatch (8fdafd6 runtime vs dacb217... pin).
🤖 Lane 0407-C (charlie ADVANCE landings, 2026-11-29) — merging under Drew's 2026-11-29 rule (full-diff judgment; CI not a gate).
Full diff read firsthand: one regex widening in pm-stack/host-health-collector.py ((?:^|/) → (?:^|[/-]) so a Nix store-hash prefix no longer hides the opencode-<version>+<rev> segment) plus a regression test using the exact observed store path shape (/nix/store/<hash>-opencode-2.3.2+<rev>/bin/.opencode-wrapped → state match, runtimeRevision extracted). Scope matches the body; blast radius is collector classification only. Body evidence: the new test failed before / 17 passed after locally; the dezren39/fleet suite run 46251710805 was still in_progress at merge time and is not a gate. Claim scan: only the CodeRabbit bot comment; no live lane claim. Fresh state re-check immediately before merge.
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
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.
Summary
The collector reads the running service executable and compares its embedded revision with the code flake pin. Nix paths prefix the package name with a store hash, so the old start-of-path/segment-only match returned
unknownfor the real executable.Adds a regression test for the observed
.opencode-wrappedexecutable path. This is a focused follow-up to #14175 and #1362; it does not claim deployment or full parity is complete.Evidence
unknowninstead ofmatch.python3 -I -m unittest discover -s pm-stack/tests -p test_host_health_collector.py— 17 passed locally. The branch collector against the live host reportsmismatch(8fdafd6runtime vsdacb217...pin).Merge Danger
Door: Two-way.
Blast Radius: Low.
The change only makes an existing health field accurately report the running revision; it does not mutate service or deployment state.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.