Skip to content

Comments

Update flaky-monitor workflow to show fail rate and history#1395

Merged
KCarretto merged 2 commits intoflaky-test-monitor-3414294539595760241from
chore/update-flaky-monitor-config-2580247471303683982
Dec 24, 2025
Merged

Update flaky-monitor workflow to show fail rate and history#1395
KCarretto merged 2 commits intoflaky-test-monitor-3414294539595760241from
chore/update-flaky-monitor-config-2580247471303683982

Conversation

@google-labs-jules
Copy link
Contributor

Updated the .github/workflows/tests.yml file to configure the ctrf-io/github-test-reporter action. Added fail-rate-report: true and previous-results-report: true options, and set previous-results-max to 5. This ensures that sporadically failing tests are tracked via their failure rate and a history of the last 5 runs is displayed in the test report.


PR created automatically by Jules for task 2580247471303683982 started by @KCarretto

Enable `fail-rate-report` and `previous-results-report` in the
Github Test Reporter action configuration. Set the history limit
to 5 runs to provide a concise view of recent sporadic failures.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

previous-results-max: 100
fail-rate-report: true
previous-results-report: true
previous-results-max: 5
Copy link
Collaborator

Choose a reason for hiding this comment

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

Set this back to 100

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have set previous-results-max back to 100 as requested.

Reverted `previous-results-max` to 100 as requested in code review,
while keeping `fail-rate-report` and `previous-results-report` enabled.
@KCarretto KCarretto marked this pull request as ready for review December 24, 2025 17:06
@KCarretto KCarretto merged commit bdd213b into flaky-test-monitor-3414294539595760241 Dec 24, 2025
@KCarretto KCarretto deleted the chore/update-flaky-monitor-config-2580247471303683982 branch December 24, 2025 17:07
KCarretto added a commit that referenced this pull request Dec 24, 2025
* Implement flaky test monitoring system

- Update `tests.yml` to generate JUnit XML reports for Go, Rust, and Node.js tests.
- Add `flaky-monitor` job to aggregate and analyze historical test results.
- Create `scripts/analyze_flaky_tests.py` to calculate test flakiness grouped by OS.
- Configure automatic reporting to GitHub Step Summary and PR comments.
- Use `test-results` branch for persistent history storage.

* Implement flaky test monitoring using CTRF

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests.
- Configure historical data tracking via artifact retention.

* Implement CTRF-based flaky test monitoring

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests.
- Configure historical data tracking via artifact retention.
- Fix argument passing for `cargo llvm-cov` by using `--` separator.

* Implement CTRF-based flaky test monitoring

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests.
- Configure historical data tracking via artifact retention.
- Fix argument passing for `cargo llvm-cov` by configuring `nextest.toml` for JUnit output.

* Implement CTRF-based flaky test monitoring

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests.
- Configure historical data tracking via artifact retention.
- Fix argument passing for `cargo llvm-cov` by configuring `nextest.toml` for JUnit output.
- Fix PATH issues for `go-ctrf-json-reporter` by explicitly adding GOPATH/bin to GITHUB_PATH.
- Ensure `npx` is available in Rust job by adding `setup-node` step.

* Implement CTRF-based flaky test monitoring

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests.
- Configure historical data tracking via artifact retention.
- Fix argument passing for `cargo llvm-cov` by configuring `nextest.toml` for JUnit output.
- Fix PATH issues for `go-ctrf-json-reporter` by calling binary with full path.
- Ensure `npx` is available in Rust job by adding `setup-node` step.

* Implement CTRF-based flaky test monitoring

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests.
- Configure historical data tracking via artifact retention.
- Fix argument passing for `cargo llvm-cov` by configuring `nextest.toml` for JUnit output.
- Fix PATH issues for `go-ctrf-json-reporter` by calling binary with full path.
- Ensure `npx` is available in Rust job by adding `setup-node` step.
- Pin `gotestsum` to v1.12.0 to support Go 1.23.4.

* Implement CTRF-based flaky test monitoring

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests.
- Configure historical data tracking via artifact retention.
- Fix argument passing for `cargo llvm-cov` by configuring `nextest.toml` for JUnit output.
- Fix PATH issues for `go-ctrf-json-reporter` by calling binary with full path.
- Ensure `npx` is available in Rust job by adding `setup-node` step.
- Pin `gotestsum` to v1.12.0 to support Go 1.23.4.
- Use `shell: bash` explicitly for steps using bash syntax to prevent PowerShell errors on Windows runners.

* Implement CTRF-based flaky test monitoring

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests.
- Configure historical data tracking via artifact retention.
- Fix argument passing for `cargo llvm-cov` by configuring `nextest.toml` for JUnit output.
- Fix PATH issues for `go-ctrf-json-reporter` by calling binary with full path.
- Ensure `npx` is available in Rust job by adding `setup-node` step.
- Pin `gotestsum` to v1.12.0 to support Go 1.23.4.
- Use `shell: bash` explicitly for steps using bash syntax to prevent PowerShell errors on Windows runners.
- Revert unintended version downgrade in `.devcontainer/devcontainer.json`.

* Implement CTRF-based flaky test monitoring

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests.
- Configure historical data tracking via artifact retention.
- Fix argument passing for `cargo llvm-cov` by configuring `nextest.toml` for JUnit output.
- Fix PATH issues for `go-ctrf-json-reporter` by calling binary with full path.
- Ensure `npx` is available in Rust job by adding `setup-node` step.
- Pin `gotestsum` to v1.12.0 to support Go 1.23.4.
- Use `shell: bash` explicitly for steps using bash syntax to prevent PowerShell errors on Windows runners.
- Revert unintended version downgrade in `.devcontainer/devcontainer.json`.
- Restore missing documentation in `docs/_docs/user-guide/imix.md`.

* Implement CTRF-based flaky test monitoring

- Update `tests.yml` to generate CTRF reports for Go, Rust, and Node.js tests.
- Use `go-ctrf-json-reporter` for Go tests.
- Use `junit-to-ctrf` for Rust and Node.js tests (converting JUnit XML).
- Add `flaky-monitor` job using `ctrf-io/github-test-reporter` to track and report flaky tests with comprehensive reporting options enabled.
- Configure historical data tracking via artifact retention.
- Fix argument passing for `cargo llvm-cov` by configuring `nextest.toml` for JUnit output.
- Fix PATH issues for `go-ctrf-json-reporter` by calling binary with full path.
- Ensure `npx` is available in Rust job by adding `setup-node` step.
- Pin `gotestsum` to v1.12.0 to support Go 1.23.4.
- Use `shell: bash` explicitly for steps using bash syntax to prevent PowerShell errors on Windows runners.
- Revert unintended version downgrade in `.devcontainer/devcontainer.json`.
- Restore missing documentation in `docs/_docs/user-guide/imix.md`.
- Correctly locate `nextest.toml` in `.config/` directory.

* switching to manual

* attempt #2

* overwrite-comment

* Fix CI workflow to correctly locate nested JUnit reports (#1388)

The `implants` test job was failing to generate CTRF reports because the `junit.xml` output from `cargo nextest` was located in a subdirectory (e.g., `target/nextest/default/junit.xml`) rather than the workspace root. This caused the `mv` command to fail, skipping the conversion step and ultimately causing the artifact upload to fail with "No files were found".

This change updates the workflow to dynamically search for `junit.xml` using `find` (piped to `head -n 1` for macOS compatibility), ensuring the report is correctly located and processed regardless of the output directory structure. This also restores the `implants/.config/nextest.toml` configuration to ensure JUnit generation is enabled.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>

* Fix: Normalize timestamps in Tavern CTRF reports (#1391)

* Update flaky-monitor workflow to show fail rate and history (#1395)

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: KCarretto <Kcarretto@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant