[ci] Enable flacky collector for tests (#1439)

This commit is contained in:
Alexander Samusev
2023-09-07 11:31:18 +02:00
committed by GitHub
parent bd23c8d9d7
commit 1346143194
2 changed files with 16 additions and 2 deletions
+15 -1
View File
@@ -36,9 +36,23 @@ test-linux-stable:
--no-fail-fast \
--features try-runtime,experimental \
--partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
# Upload tests results to Elasticsearch
- echo "Upload test results to Elasticsearch"
- cat target/nextest/default/junit.xml | xq . > target/nextest/default/junit.json
- |
curl -v -XPOST --http1.1 \
-u ${ELASTIC_USERNAME}:${ELASTIC_PASSWORD} \
https://elasticsearch.parity-build.parity.io/unit-tests/_doc/${CI_JOB_ID} \
-H 'Content-Type: application/json' \
-d @target/nextest/default/junit.json || echo "failed to upload junit report"
# run runtime-api tests with `enable-staging-api` feature on the 1st node
- if [ ${CI_NODE_INDEX} == 1 ]; then time cargo nextest run -p sp-api-test --features enable-staging-api; fi
# todo: add flacky-test collector
artifacts:
when: always
paths:
- target/nextest/default/junit.xml
reports:
junit: target/nextest/default/junit.xml
test-linux-oldkernel-stable:
extends: test-linux-stable