Skip to content

Phase 5: the workflow, run as a user would - #200

Merged
gilesknap merged 1 commit into
mainfrom
phase5/the-workflow-run-as-a-user-would
Aug 22, 2026
Merged

gilesknap merged 1 commit into
mainfrom
phase5/the-workflow-run-as-a-user-would

Conversation

@gilesknap

Copy link
Copy Markdown
Member

Phase 5 of .claude/plans/hotfix-becomes-a-workflow.md — the acceptance test
for the whole plan, run against the real bl47p-ea-fastcs-01 on p47-beamline.

Evidence only; no code changes. Released as 0.7.1 first, because Phase 5
needs Phase 3's subchart on a registry Argo can reach and CI only publishes
charts on a tag.

The four steps, in order, with no hand-editing of yaml at any point

Step Result
1 The deployed services/bl47p-ea-fastcs-01/values.yaml is byte-identical to --print-values --values --parent-values output. Diffed against the live StatefulSet: podbench-app and podbench-home added, nothing lost, beamline-data still there.
2 The claim comes from the podbench-hotfix-claim dependency in the shared .helm-shared/Chart.yaml; p47-services carries no hotfix template at all — the branch was reset to main and rebuilt from generated output. The other four ec-services that inherit that Chart.yaml render zero podbench objects.
3 Push → Argo → claim Bound and pod replaced in under two and a half minutes, hands off. restartCount 0, fsGroup 37887, both keep-annotations on the claim.
4 vscode landed a seat, mounted the claim unasked, reported [x] iterate, and opened /podbench/app.

The four contract numbers, after init → edit → apply

before after
restartCount 0 0
recorded child pid 7 1065
the edit, in the running process absent present
seats podbench-1 since 20:38:14Z same seat, same start time
podbench: running the hotfixed project
PODBENCH_PHASE5_MARKER phase-5-workflow

The first line is the runtime switch choosing the claim's venv; the second is
code that exists nowhere but the claim, in a container whose restartCount is
still 0. The marker was confirmed absent from the image's own
/app/src/fastcs_example/__init__.py before apply ran.

#190, re-proved and now attributable

The revert pruned everything the branch added in 20 seconds — volumes,
supervisor, fsGroup, and the editor's memory resize — and the claim is still
Bound. Phase 1 measured that helm.sh/resource-policy: keep alone would have
been pruned in about three minutes and taken its Delete-reclaim PV with it, so
the survival is attributable to Prune=false rather than merely observed
alongside it. Nothing in p47-services carries that annotation; the subchart
does.

What this run found

--print-values --from-pod POD --values FILE printed EXISTING_MOUNTS_WARNING
— telling the user to hand-merge — and then printed a correctly merged file.
Fixed in #199 before this write-up. It is the only defect running the workflow
end to end turned up.

Said out loud rather than glossed

  • No window opened. This machine is headless; code was a stub recording
    argv. What is proven is the argv podbench built —
    code --remote ssh-remote+… /podbench/app — not VS Code's response to it.
  • The first vscode exited 2 at the ssh check: this container had no
    ~/.ssh/config, so ssh never read podbench's stanza. podbench doctor --fix
    resolved it. Recorded because podbench refused before the vscode-server
    download, which is what that check is for.
  • consolidate, bl47p-mo-ioc-01, and pod-replacement-mid-hotfix were not
    re-measured, for the reasons the plan gives.
  • --values against a chart nesting its keys somewhere other than
    ioc-instance exists only as a unit test; no second real chart was to hand.

State left behind

p47-deployment on main for every service. bl47p-ea-fastcs-01-0 on its
original entrypoint, Ready, iocRun: All initialization complete.

One 2Gi claim is still Bound, carrying the checkout and commit c9cf51c.
That is the design working, not litter — it is step 6 of the retirement
checklist and a deliberate act, and the test service account has no delete on
persistentvolumeclaims. Deleting it needs a human.

🤖 Generated with Claude Code

https://claude.ai/code/session_015LEmzFsLaoa5zWeQvdN1Xe

The four steps at the top of hotfix-becomes-a-workflow.md, in order, with no
hand-editing of yaml at any point. The deployed values file is byte-identical
to `--print-values` output and p47-services carries no hotfix template at all.

  1. Emitted with --values/--parent-values and deployed as emitted. Diffed
     against the live StatefulSet: podbench-app and podbench-home added,
     nothing lost, beamline-data still there.
  2. The claim comes from the podbench-hotfix-claim dependency in the shared
     .helm-shared/Chart.yaml. The other four ec-services that inherit it render
     zero podbench objects.
  3. Push to Argo, hands off: claim Bound and pod replaced in under two and a
     half minutes.
  4. `vscode` landed a seat, mounted the claim unasked, reported [x] iterate,
     and opened /podbench/app - both in its own output and in the argv it
     handed the editor.

Then init, edit, apply, and the four contract numbers all held: restartCount
still 0, child pid 7 -> 1065, the marker live in the running process, the seat
untouched.

Finally the revert, which is #190's path: everything the branch added was
pruned in 20 seconds and the claim is still Bound - attributable this time,
because Phase 1 measured that keep alone would not have survived it.

Says what it did not measure, including that `code` was a stub on a headless
machine and no window opened.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015LEmzFsLaoa5zWeQvdN1Xe
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b0682e26-82b2-40f6-b130-70f349b3a202

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

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

Comment @coderabbitai help to get the list of available commands.

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.

1 participant