Files
iroh/.github/workflows
Divma f84c06eb87 ci: add a flaky tests failure report to our discord notification (#2496)
## Description

Modifies the `flaky` workflow to generate a report with all the tests
that failed per matrix combo, so that we can receive it on discord. This
requires to modify the `tests` workflow as well to generate `libtest`
json reports.

Reports are uploaded as job artifacts with an unique name, and retained
for a day.

From my last commit at the time of writing, this is the report we get:
```md
Flaky tests failure:

- **ubuntu-latest all stable**
iroh-net::iroh_net::discovery::local_swarm_discovery::tests::test_local_swarm_discovery
ubuntu-latest default stable
iroh-cli::cli::cli_bao_store_migration
- **windows-latest all stable**
iroh-cli::cli::cli_provide_file_resume
iroh-cli::cli::cli_provide_tree_resume
- **windows-latest default stable**
iroh-cli::cli::cli_provide_file_resume
iroh-cli::cli::cli_provide_tree_resume
- **windows-latest none stable**
iroh-cli::cli::cli_provide_tree_resume
iroh-cli::cli::cli_provide_file_resume

See https://github.com/n0-computer/iroh/actions/workflows/flaky.yaml
```
which reads clear enough in discord imo

## Breaking Changes
n/a

## Notes & open questions

- there is another test report which is more widely used but for which
there is not a single decent parser I could find. The format is Jenkins'
junit xml format. From my searches, everyone knows how to produce these
files, but not how to read them. Since this is xml, which is not exactly
compatible with serde, reading these kind of files was a task I
considered not worth doing for what we actually want to achieve, which
is simply more visibility over flaky tests.
- That being said, `libtest` format is not stable, and the `nextest`
feature to obtain it is unstable as well. It does not seem to change
quickly or drastically at all, so I think we will be fine for some time.
Being json the underlying format, it should be easy to adapt if
necessary.

## Change checklist

- [x] Self-review.
- [ ] ~~Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.~~
- [ ] ~~Tests if relevant.~~
- [ ] ~~All breaking changes documented.~~
2024-07-15 21:48:48 +00:00
..
2024-07-08 11:17:31 +00:00