Repository navigation
Authenticate experiment starts and stop failed submissions - #2
Open
rhit-changs wants to merge 2 commits into
Open
rhit-changs wants to merge 2 commits into
rhit-changs wants to merge 2 commits into
Conversation
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.
Summary
The upload/submit/start flow omitted the user's token from the start request and could report success after a rejected start. Upload or submission failures could also leave the flow using an invalid response or continuing to the next stage. Send the existing authenticated token on start, validate each stage's response, and return the existing failure result as soon as a stage fails.
Refs AutomatingSciencePipeline/Monorepo#708. Companion server PR: AutomatingSciencePipeline/Monorepo#711.
Changes
{id, token}in the start request using the RequestManager's existing token.fileIdorexpId, and reject explicitsuccess: false. Handle malformed or deeply nested JSON without advancing to the next request. These are string-presence checks, not client-side ObjectId format validation.Validation
Local validation was recorded at 0d11241.
python -m unittest -v glados_cli_tests test_authenticated_startCompanion server validation
The matching Monorepo revision passed 577 frontend tests, 4 backend file-identity regressions, TypeScript checks, and lint with 0 errors/12 existing warnings. Actual local browser testing with two users completed owner and shared-copy experiments with 4 successes/0 failures each, verified shared artifact downloads, and observed original-log access change 404 -> 200 -> 404 around sharing and Unfollow.
That browser run exercised Web-to-backend-to-Runner behavior. A live Python CLI upload/submit/start run against the updated server was not performed; client protocol and failure handling were verified with mocked requests, separately from the server's CLI API suite.
Compatibility and scope