Repository navigation
Let hotfix enable replace its own earlier output - #265
Merged
Merged
Conversation
`hotfix enable` returned "unchanged" whenever a claim block existed, so wiring written by an older podbench could never be upgraded, while `podbench restart` refused that wiring with "lifecycle protocol unavailable". Generated workload lines are now bracketed with `# podbench-hotfix: begin/end` comments and a later run replaces the marked region. Files from before the markers are upgraded too: with a claim block present, each generated key block is replaced where it sits and user keys between them survive. Without a claim block, generated keys still belong to the user and are refused. The Chart.yaml dependency is repinned to the current chart version instead of being left alone. Reading a pod that already runs a supervisor no longer nests supervisors: `entrypoint()` recovers the application command from the supervisor's launch argument, including the else branch of the editable-checkout fallback, and probe commands lose their hold guard before being wrapped again. Verified against the live t11-beamline charts: the legacy IOC upgraded with the image start script as fallback and a single hold guard, and the BlueAPI chart kept its ingress and comments while gaining markers. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Warning Review limit reachedNext included review available in 26 minutes. View limit detailsLimit details: You’ve used the included review currently available. This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Comment |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Found during the hotfix end-to-end test on t11-beamline.
podbench restartandhotfix restartrefuse legacy wiring with "lifecycle protocol unavailable; update hotfix wiring and roll out", buthotfix enablereported the chart "unchanged" because apodbench-hotfix-claimblock existed. There was no upgrade path. Runninghotfix valuesagainst the legacy pod also captured the old supervisor loop as the application entrypoint and wrapped the hold-aware liveness probe a second time.Change
# podbench-hotfix: begin podbench <version>and# podbench-hotfix: end. A laterenablereplaces the marked region.ingress) survive. Without a claim block the keys are the user's and are refused as before.Chart.yamldependency is repinned to the current chart version.entrypoint()unwraps a supervisor already running in the pod, both generations, including theelsebranch of the editable-checkout fallback.unwrap_probe()strips a hold guard before probes are wrapped again, andhealth_command()uses it too.Verified
tests/test_hotfix_enable.py: fresh insert, marked rerun idempotent, legacy upgrade, user keys between blocks kept, refusal without claim, top-level layout, dependency repin, entrypoint and probe unwrapping.hotfix enableon fresh clones oft11-servicesupgradedbl11t-mo-sim-01from the inline loop withexec bash -c /epics/ioc/start.shas fallback and one hold guard, and markedt11-blueapiwhile keeping its ingress and comments. Both files parse; result pushed asgilesknap/t11-servicesbranchpodbench-mo-sim-lifecycle.Related: #264 (headless VS Code) is the test harness this came out of.
🤖 Generated with Claude Code