Repository navigation
test(cotal): pin resume role refusal for spawn grant bound (RIG-11871) - #246
Open
rigel-mintaka wants to merge 2 commits into
Open
rigel-mintaka wants to merge 2 commits into
rigel-mintaka wants to merge 2 commits into
Conversation
Co-authored-by: Matt Wilkinson <matt@rigel.build>
…ume control (RIG-11871)
Contributor
Author
Review round 1 (head a661f17)0 high, 0 medium, 2 low. Both fixed in 3128ad0.
Smoke at 3128ad0 on macpro2013: |
Contributor
Author
|
All-clear at 3128ad0 |
This branch had an error being deployed
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.
What does this do
Adds two cases to the Cotal manager's
spawn-grant-boundsmoke:role:workerthat--resumes a worker seat gets the same SPEC 13.15 grant refusal as a new spawn.role:workerpasses the grant bound with a resume. The fake connector does not fork a real session, so this is not proof of a full relaunch.The smoke's fake connector now declares
supportsResume. No production code changes.Why do we need it
RIG-11871: foreman cannot relaunch a despawned seat, because its credential lacks
worker. How to fix that is open in RIG-12345 (A: resume-only grant, B: route via the supervisor holder, C: the seat's systemd unit). This test pins today's behavior, which all three options start from. If option A lands, it flips the first case.Summary
Manager.spawnBoundRefusalreceives the grant but not the resume option. It cannot tell a resume from a new spawn today, so option A needs that plumbing.implement-tsrun took 10 minutes and added no test (provider stream errors). The slice moved toimplement-hard-ts.Verification
Run on macpro2013 from an archive of the cotal
rigel-releasecommit with this change. The file is byte-identical in nebulaforks/cotal.Risks
Test-only. The resume case compares its error to the new-spawn refusal instead of pinning the message text.
Spec-impact: none
Checks skipped:
nebula has no pre-push hook config; GitHub Actions ci.yaml runs its checksRefs RIG-11871
Co-authored-by: Matt Wilkinson matt@rigel.build