diff --git a/.config/nextest.toml b/.config/nextest.toml index fc3ed95a21..4f0a061fb0 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,10 +1,10 @@ [test-groups] -run-in-isolation = { max-threads = 16 } +run-in-isolation = { max-threads = 32 } # these are tests that must not run with other tests concurrently. All tests in -# this group can take up at most 16 threads among them, but each one requiring +# this group can take up at most 32 threads among them, but each one requiring # 16 threads also. The effect should be that tests run isolated. [[profile.ci.overrides]] filter = 'test(::run_in_isolation::)' test-group = 'run-in-isolation' -threads-required = 16 +threads-required = 32 diff --git a/.github/workflows/flaky.yaml b/.github/workflows/flaky.yaml index 93836b9a8d..0e5bae7569 100644 --- a/.github/workflows/flaky.yaml +++ b/.github/workflows/flaky.yaml @@ -73,6 +73,8 @@ jobs: # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings EOF=aP51VriWCxNJ1JjvmO9i echo "summary<<$EOF" >> $GITHUB_OUTPUT + echo "Flaky tests failure:" >> $GITHUB_OUTPUT + echo " " >> $GITHUB_OUTPUT for report in nextest-results/*.json; do # remove the name prefix and extension, and split the parts name=$(echo ${report:16:-5} | tr _ ' ') @@ -84,16 +86,13 @@ jobs: echo "$failure" echo "$failure" >> $GITHUB_OUTPUT done + echo "" >> $GITHUB_OUTPUT + echo "See https://github.com/n0-computer/iroh/actions/workflows/flaky.yaml" >> $GITHUB_OUTPUT echo "$EOF" >> $GITHUB_OUTPUT - name: Notify discord on failure uses: n0-computer/discord-webhook-notify@v1 - if: ${{ env.TESTS_RESULT == 'failure' }} + if: ${{ env.TESTS_RESULT != 'cancelled' }} with: - severity: warn - details: | - Flaky tests failure: - - ${{ steps.make_summary.outputs.summary }} - - See https://github.com/n0-computer/iroh/actions/workflows/flaky.yaml + severity: ${{ env.TESTS_RESULT == 'failure' && 'warn' || 'info' }} + details: ${{ env.TESTS_RESULT == 'failure' && steps.make_summary.outputs.summary || 'No flaky failures!' }} webhookUrl: ${{ secrets.DISCORD_N0_GITHUB_CHANNEL_WEBHOOK_URL }}