Repository navigation
Conversation
Synchronize the installed guidance with the latest corpus. No profiles are added.
Selects the test projects and tests a change can reach: a project graph read from git at the base and head revisions, deterministic per-test-project coverage maps, selection with namespace roll-up, xUnit v3 filter generation with batching, selection verification against the runner, merge-time attribution, and an offline replay of merged changes. Part of Cratis/Workflows#268.
Expose the affected-tests library as select, run and replay commands, with a selection report written as JSON and Markdown and appended to the GitHub step summary. Document the command, the coverage maps and the repository configuration. Part of Cratis/Workflows#268.
Contributor
Author
|
Reviewer notes for the affected-tests work (Cratis/Workflows#268). Decisions
Spike results (phase 1, one sample project)
Not done here
Checks
|
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.
Build and test only what a pull request can reach, using one command in the Cratis CLI.
Added
cratis affected select, which decides which test projects and which tests a change can reach from the project graph and per-project coverage maps, and writes a JSON and Markdown selection report that explains each decision (part of Affected-tests CLI and reusable workflow: build and test only what a pull request can reach Workflows#268).cratis affected run, which runs the selection; with--mode mergeit runs every test unit in isolation underdotnet-coverageorcoverletand writes deterministic coverage maps to.cratis/affected/maps.cratis affected replay, which replays merged changes against the maps committed before them and reports the median fraction of tests selected and every failure the selection would have missed..cratis/affected.jsonconfiguration and how a selection reaches the xUnit v3 runner.