Skip to content

Commit 9ee70a1

Browse files
authored
Add flawky tests report (paritytech#13654)
1 parent d712bd1 commit 9ee70a1

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.config/nextest.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dir = "target/nextest"
1616
# * retries = 3
1717
# * retries = { backoff = "fixed", count = 2, delay = "1s" }
1818
# * retries = { backoff = "exponential", count = 10, delay = "1s", jitter = true, max-delay = "10s" }
19-
retries = 0
19+
retries = 5
2020

2121
# The number of threads to run tests with. Supported values are either an integer or
2222
# the string "num-cpus". Can be overridden through the `--test-threads` option.
@@ -89,12 +89,12 @@ leak-timeout = "100ms"
8989
# Output a JUnit report into the given file inside 'store.dir/<profile-name>'.
9090
# If unspecified, JUnit is not written out.
9191

92-
# path = "junit.xml"
92+
path = "junit.xml"
9393

9494
# The name of the top-level "report" element in JUnit report. If aggregating
9595
# reports across different test runs, it may be useful to provide separate names
9696
# for each report.
97-
report-name = "nextest-run"
97+
report-name = "substrate"
9898

9999
# Whether standard output and standard error for passing tests should be stored in the JUnit report.
100100
# Output is stored in the <system-out> and <system-err> elements of the <testcase> element.

scripts/ci/gitlab/pipeline/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,28 @@ test-linux-stable:
228228
--partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
229229
# we need to update cache only from one job
230230
- if [ ${CI_NODE_INDEX} == 1 ]; then rusty-cachier cache upload; fi
231+
artifacts:
232+
when: always
233+
paths:
234+
- target/nextest/default/junit.xml
235+
reports:
236+
junit: target/nextest/default/junit.xml
237+
238+
test-linux-stable-upload-test-results:
239+
stage: test
240+
needs:
241+
- job: test-linux-stable
242+
artifacts: true
243+
extends:
244+
- .docker-env
245+
- .test-refs
246+
script:
247+
- cat target/nextest/default/junit.xml | xq . > target/nextest/default/junit.json
248+
- "curl -v -XPOST --http1.1
249+
-u ${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}
250+
https://elasticsearch.parity-build.parity.io/unit-tests/_doc/${CI_JOB_ID}
251+
-H 'Content-Type: application/json'
252+
-d @target/nextest/default/junit.json"
231253

232254
test-frame-support:
233255
stage: test

0 commit comments

Comments
 (0)