Skip to content

fix(pm): extract OpenCode revisions from Nix store paths - #16714

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
queue/5007-code-j-runtime-parity-20261129
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
queue/5007-code-j-runtime-parity-20261129

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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 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).
  • Fleet: same suite pending at https://github.com/dezren39/fleet/actions/runs/46251710805.

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-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 15f04cb7-0e9d-4ed0-95c7-23e2a4843530

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

🤖 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.

@developing-today-fleet
developing-today-fleet Bot merged commit 0602585 into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the queue/5007-code-j-runtime-parity-20261129 branch November 29, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants