feat: add hidden command group for AI Test Authoring - #1099
Open
arvinddotsingh wants to merge 2 commits into
Open
arvinddotsingh wants to merge 2 commits into
arvinddotsingh 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.
Description
Adds a first CLI surface for Sauce Labs AI Test Authoring, backed by
the same REST backend the VS Code and IntelliJ plugins use:
saucectl ai testcases list|get|rename|delete— manage saved testcases (-o text|json, --search/--limit/--skip filters)
saucectl ai run <testCaseID>— run a saved test case in the cloud,poll to completion, and exit non-zero on failure (CI-friendly);
--async, --build, --tunnel-name, --browser/--platform overrides
saucectl ai run-suite <testSuiteID>— run every test case of asuite concurrently and aggregate the results (the backend has no
suite-level run endpoint, so the suite is fanned out client-side)
Implementation notes:
internal/http/aiauthoring.go is the REST client (Basic auth,
requested-by client-identity header, retryable GETs, non-retried
mutations, enveloped-response normalization, structured
AIAuthoringAPIError with the backend's error code/detail).
entitlement, distinguishing "not in plan" from verification failures.
run-start response are internal to the backend and not resolvable via
the Resto/RDC job APIs; sauceJobId, url, and success appear on the
run resource as the run progresses. VDC job URLs are constructed
from sauceJobId because the backend omits them.
runSettings.scTunnelName fail to start with SC_TUNNEL_NOT_FOUND; runs
neutralize such tunnels by sending an explicit scTunnelName: null.
The
aigroup ships hidden until the feature is ready for release.