Repository navigation
desk hub admin test: root add's flake was a device id starting with '-' - #417
Merged
Merged
Conversation
…vice id (a random key id, one in 64 starting with '-') goes after `--` as README.md writes the verbs, where it went bare and parseArgs took it for an unknown option (exit 2, then the four cases after it); each status in the describe asserted with the run's stderr as its message Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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.
The flake, named
The
root addcases inapps/desk-hub/test/deploy/admin.test.tsfailed together in four CI runs (41234184004, 41132779213, 40881002422, 40847569515). The throw behind exit 2 was Node'sparseArgs:The describe's app device id is
keyId(channel.pub), base64url of a SHA-256 prefix, so its first character is uniform over 64 symbols and one id in 64 starts with-. The test passed that id bare (root add <id>,remove-device <id>),admin.ts's strictparseArgsread it as an option, andrunAdminreturned 2. The four cases after it need the root that add would have made, so they failed with it. Load had nothing to do with it:the stream endedlines in two of the runs come fromlog.test.ts,session-plane.test.tsandreconnect.test.tsin the same shard. Those tests end streams on purpose.This is a test bug, not a product bug.
deploy/README.mddocuments the verbs asroot add -- <id>andremove-device -- <id>. The app's Settings copy printsdeployment admin root add -- <id>. The file's own case "takes a device id that starts with '-' after--" pins exit 2 for the bare form. The production acceptance's device ids carry a fixedo10-p-prefix.The change
--in the four calls that pass it (the declined add, the add, the already-a-root refusal, the removal), as the README writes the verbs.runAdminstatus in theroot adddescribe is asserted with the run's stderr as its vitest message, so any status that isn't the expected one names its error.Evidence
-, unfixed: 4 of 4 runs fail with the CI signature exactly. The same five cases fail with the same assertion texts (expected 2 to be 1,expected 2 to be +0,[ Array(1) ]vs[ …(2) ],not-root-signed, one root key where two were expected), and the first one now prints theUnknown optionline above.-, fixed: 3 of 3 runs pass.-rW6IRrpE2CgTYd87xR_AQ. The 83 runs with other ids all passed.admin.test.tspassed 41/41 in unit 2/4, and the run's tree is this head's tree.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)