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-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-07-09 14:41:03 +02:00
2024-04-29 10:08:12 +00:00
2024-01-23 14:36:54 +00:00
2024-07-09 14:41:03 +02:00
2023-11-08 11:47:24 +01:00
2024-01-23 14:36:54 +00:00
2024-07-08 10:30:18 +00:00

iroh

A toolkit for building distributed applications

Documentation Crates.io downloads Chat Youtube License: MIT License: Apache 2.0 CI


Features

  • Documents - Authors create and join documents: mutable key-value stores that multiple users read from, write to, and sync with, subscribing to live updates in real time.
  • Blobs - Iroh works with content-addressed blobs of opaque data, which are often the bytes of a file.
  • Networking - At the core of iroh is the ability to connect any two devices, no matter where they are.

Overview

Iroh is a protocol for syncing & moving bytes. Bytes of any size, on any device. At its core, it's a peer-2-peer network built on a magic socket that establishes QUIC connections between peers. Peers request and provide blobs of opaque bytes that are incrementally verified by their BLAKE3 hash during transfer.

Getting Started

Iroh is delivered as a Rust library and a CLI.

Library

Run cargo add iroh, to add iroh to your project.

CLI

Check out https://iroh.computer/docs/install to get started.

The implementation lives in the iroh-cli crate.

License

Copyright 2024 N0, INC.

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

S
Description
IP addresses break, dial keys instead. A library that adds QUIC + NAT Traversal to your apps.
Readme
435 MiB
Languages
Rust 99.6%
Shell 0.3%