Repository navigation
CLI: visualci test -- <command> (sc-8795) - #21
Merged
Merged
Conversation
…s the tests with VISUALCI_BUILD_ID set, and finalizes it when they end (failed, empty or interrupted too: Ctrl-C stops the tests, not the finalize), waits and prints the result; local runs are subsets; --upload sends visualci.yml's uploads after; the command's failure is the exit code
VisualCIdocspring/visualci · build #111 · 293 unchanged · no changes This PR vs base: nothing since #108, across 1 build Updated as builds change. Agents can review with VisualCI's MCP tools. |
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.
sc-8795, first part. Test runners that start many processes per run (cargo test runs each
tests/*.rsas its own binary, nextest one per test, pytest-xdist and Jest workers) have nowhere to create one build and finalize it at the end. Without VISUALCI_BUILD_ID a helper creates a build per process, and a build nobody finalizes expires as failed after an hour.visualci test -- <command>:VISUALCI_BUILD_IDset, plus--token,--projectand--api-urlwhen given, so every test, process or worker adds to that one build;visualci check.Details:
cargo test foo) reports nothing as removed.--uploadalso sends visualci.yml'suploadsafter the command, for runners that write snapshot files (visualci test --upload -- npx jest -u).--no-waitfinalizes and exits with the command's status.Tests:
End to end against the dev server: a run whose command sent one snapshot and exited 3 → build finalized ("added cli/a.txt"), exit 3. A passing run that sent nothing → finalized as unchanged, exit 0.
CLI 0.2.10 (libc on Unix for the signals). #20 (snapshot-diff) also bumps to 0.2.10, so whichever merges second moves on. The docs (local runs page and each snapshot guide) follow in the pin commit once the release is out. The quiet expiry of unfinalized local builds is sc-8795's second part.
Review: no screenshots change.