Commit 4154230
authored
Ingest CI test execution stats (#4191)
This PR adds a flow step to the repository build ingesting test results
for internal analysis.
:memo: So far, this is implemented as a step within this repository CI
flow, it can be easily factored out as an action if we want to follow
the same strategy in other repositories.
The step:
1. Converts the go tests XML reports into NDJSON format using
`test-results.sh` which is just a wrapper for a `yq` query.
2. Uploads the NDJSON to a ClickHouse ingestion Query Endpoint. If the
endpoint failes (no response, connection interrupted or status code >=
400), the upload is retried a up to 5 times with power-of-two
exponential back-off.
This is done as the last step in the build so failures are not
disruptive.
## For internal reviewers
You should check the following details related to internal management of
this data:
- Data model:
https://linear.app/clickhouse/issue/DBI-671/store-peerdb-ci-test-results-for-flake-analysis#comment-62e1e006
- QA validation:
https://linear.app/clickhouse/issue/DBI-671/store-peerdb-ci-test-results-for-flake-analysis#comment-0b4514cb
- Internal documentation:
https://www.notion.so/PeerDB-Test-Infrastructure-3482bd19f29080ea8199dcf57d822e88?v=3212bd19f29080be82b2000c45d4fd04&source=copy_link#3482bd19f2908073878cffb9992a25aa
## Ready when
- [x] Pipeline ingestion is tested.
## What does this PR resolve?
Part of: https://linear.app/clickhouse/issue/DBI-6711 parent ed5080c commit 4154230
2 files changed
Lines changed: 93 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
550 | 554 | | |
551 | 555 | | |
552 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
0 commit comments