Skip to content

Conversation

@charlielye
Copy link
Contributor

@charlielye charlielye commented Jan 31, 2026

Adds ability to trigger a test grind from the dashboard by clicking icon next to flaked/failed test.

  • A given test cmd can be grinded once per 24 hours.
  • By default it's ground for 10m (todo: Make manually configurable).
  • Runs are under new deflake dashboard.
  • bb formatter only prints to stdout if it actually has something to format.
  • Publish failed ci runs to redis for potential future handling.
  • run_test_cmd quite heavily refactored to cleanup many conditionals into config flags, and separate out test run logic into exec_test script.
  • When we run with the Makefile flow (re-enabled on x3 and x4 merge queue runs), we inject MAKEFILE_TARGET into the harness params. This allows targetted rebuilds for grinding (and bisecting, to come later).
  • Refactor slack notification stuff into slack_notify script.
  • Extend local log expiry to 2 days (from 8 hours).
  • New squash_args script which can help when dealing with feeding complex commands to e.g. denoise. Allows passing as separate args e.g. squash_args denoise my_cmd arg1 "arg2.1 arg2.2" and translates to denoise "my_cmd arg1 arg2.1\ arg2.2". This is really a stop gap to making scripts like denoise handle multiple args. We made it accept a single quoted arg so we could print it easily, but it creates quote nightmares.
  • Adds grind-test cmd to ci.sh (and bootstrap).
  • Start the makefile test_engine with setsid. Think I was wrong about using ()& as that doesn't give a new process group when non-interactive.

)
# Check if CI_MODE is in cached_ci_modes
if [[ " ${cached_ci_modes[@]} " =~ " ${CI_MODE} " ]]; then
if [[ " ${cached_ci_modes[@]} " =~ " ${CI_MODE} " && "$GITHUB_RUN_ATTEMPT" -eq 1 ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, elegant way to add a knob here

@AztecBot AztecBot enabled auto-merge February 4, 2026 11:11
@AztecBot AztecBot added this pull request to the merge queue Feb 4, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 4, 2026
@charlielye charlielye added this pull request to the merge queue Feb 4, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 4, 2026
@charlielye charlielye enabled auto-merge February 4, 2026 13:55
Adds ability to trigger a test grind from the dashboard by clicking icon next to flaked/failed test.
* A given test cmd can be grinded once per 24 hours.
* By default it's ground for 10m (todo: Make manually configurable).
* Runs are under new `deflake` dashboard.
* bb formatter only prints to stdout if it actually has something to format.
* Publish failed ci runs to redis for potential future handling.
* `run_test_cmd` quite heavily refactored to cleanup many conditionals into config flags, and separate out test run logic into `exec_test` script.
* When we run with the Makefile flow (re-enabled on x3 and x4 merge queue runs), we inject MAKEFILE_TARGET into the harness params. This allows targetted rebuilds for grinding (and bisecting, to come later).
* Refactor slack notification stuff into `slack_notify` script.
* Extend local log expiry to 2 days (from 8 hours).
* New `squash_args` script which can help when dealing with feeding complex commands to e.g. `denoise`. Allows passing as separate args e.g. `squash_args denoise my_cmd arg1 "arg2.1 arg2.2"` and translates to `denoise "my_cmd arg1 arg2.1\ arg2.2"`. This is really a stop gap to making scripts like denoise handle multiple args. We made it accept a single quoted arg so we could print it easily, but it creates quote nightmares.
* Adds `grind-test` cmd to ci.sh (and bootstrap).
* Start the makefile test_engine with setsid. Think I was wrong about using `()&` as that doesn't give a new process group when non-interactive.
@AztecBot
Copy link
Collaborator

AztecBot commented Feb 4, 2026

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/2cbdea73e694e144�2cbdea73e694e1448;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_p2p/gossip_network.test.ts (383s) (code: 1) group:e2e-p2p-epoch-flakes

Merged via the queue into next with commit d8ac104 Feb 4, 2026
18 checks passed
@charlielye charlielye deleted the cl/grind_test branch February 4, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants