[HOLD FOR INTAKE] feature AIENG-624: add --from-github-actions option to subset command - #1358
Open
mnamachivayam wants to merge 1 commit into
Conversation
mnamachivayam
force-pushed
the
feature/AIENG-624-CLI-Add-from-github-actions-option-to-Subset-command
branch
2 times, most recently
from
August 5, 2026 10:09
bc23e2d to
8e5c74a
Compare
mnamachivayam
force-pushed
the
feature/AIENG-624-CLI-Add-from-github-actions-option-to-Subset-command
branch
from
August 5, 2026 10:54
8e5c74a to
9539a39
Compare
Konboi
approved these changes
Aug 6, 2026
| """Raised when running inside GitHub Actions but the environment is missing or malformed.""" | ||
|
|
||
|
|
||
| def detect_github_action_context(env: Mapping[str, str]) -> dict[str, str] | None: |
Adds the GitHub App subset flow, where the server creates the build and test session implicitly from the GitHub Actions environment instead of the client passing a --session. With the flag set, the CLI detects GITHUB_RUN_ID, GITHUB_RUN_ATTEMPT, GITHUB_REPOSITORY, GITHUB_JOB and RUNNER_NAME and sends them in the subset payload, so the server can resolve commit and file change data via the GitHub API and subset in non-Observation mode. --session becomes optional, and --non-blocking is ignored in this flow. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
mnamachivayam
force-pushed
the
feature/AIENG-624-CLI-Add-from-github-actions-option-to-Subset-command
branch
from
August 10, 2026 02:41
9539a39 to
37cc554
Compare
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
Adds a
--from-github-actionsflag tosmart-tests subset, selecting the GitHub App flow where the server creates the build and test session implicitly from the GitHub Actions environment instead of the client passing a--session.This unblocks GitHub App users, for whom commit/file-change data isn't available at subset time and test sessions were always created in Observation Mode — so real subsetting never occurred.
With the flag set, the CLI detects
GITHUB_RUN_ID,GITHUB_RUN_ATTEMPT,GITHUB_REPOSITORY,GITHUB_JOBandRUNNER_NAMEand sends them in the subset payload (fromGithubActions,githubActionsRunId,githubActionsRunAttempt,githubActionsJobName,githubActionsRunnerName,repositoryOwner,repositoryName), so the server can resolve commit and file change data via the GitHub API and subset in non-Observation mode.Flag behaviour
--from-github-actions, no--session--sessiononly--from-github-actionsoutside GitHub Actions--from-github-actionswith a missing/malformed variable--from-github-actions --non-blocking--non-blockingignoredTest plan
--sessionconflict, running outside GitHub Actions, a missing variable, a malformedGITHUB_REPOSITORY, and the no-flag/no-session error🤖 Generated with Claude Code