aspect build and aspect test, which ship with the CLI.
.aspect/config.axl applies to every task in the repository, including those. It is where you change how the built-ins behave.
Run it
aspect test — a command nobody here wrote. Run it a few times:
How it works
Twenty-seven lines. Open.aspect/config.axl.
test_summary events aspect observe read in the last section, and the same overall_status field. The difference is where they come from: observe asked for them because it started the build, and this hook receives them from a build it had nothing to do with.
post_task runs when the task ends, which is when there is something worth saying.
The order matters
The two halves are not independent. The flag is what makesflaky reachable; the hook is what reports it. Take the flag away and the hook is correct and silent — the status it watches for never occurs.
Try it: change --flaky_test_attempts=3 to =1 in config.axl and run the test until it fails.
FLAKE CAUGHT. Bazel ran the test once, so nothing was ever retried, so nothing was ever flaky.

