diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 04e43a4ad..f0e6b1ac4 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -83,7 +83,7 @@ jobs: run: | if [ -s /tmp/gotest.log ]; then cat /tmp/gotest.log > $GITHUB_STEP_SUMMARY - echo "failures=$(echo "$(cat /tmp/gotest.log | node .workflows/parse-tests.js)" | jq -sRr @json | sed 's/\\n/\\n/g')" > $GITHUB_OUTPUT + echo "failures=$(echo "$(cat /tmp/gotest.log | node .github/parse-tests.js)" | jq -sRr @json | sed 's/\\n/\\n/g')" > $GITHUB_OUTPUT else echo "## Success ✅" > $GITHUB_STEP_SUMMARY echo "failures=" > $GITHUB_OUTPUT @@ -102,4 +102,5 @@ jobs: actor: ${{ github.actor }} repository: ${{ github.repository }} branch: ${{ github.event.pull_request.head.ref }} - run_id: ${{ github.run_id }} \ No newline at end of file + run_id: ${{ github.run_id }} + failures: ${{ steps.generate-job-summary.outputs.failures }} \ No newline at end of file diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index 2ae1cb1fe..58c634bc7 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -27,6 +27,10 @@ on: description: 'The workflow run ID' required: true type: string + failures: + description: 'Test failure details (if any)' + required: false + type: string jobs: notify_slack: @@ -59,7 +63,7 @@ jobs: ] }') else - payload=$(jq -n --arg repository "${{ inputs.repository }}" --arg branch "${{ inputs.branch }}" --arg actor "${{ inputs.actor }}" --arg run_id "${{ inputs.run_id }}" '{ + payload=$(jq -n --arg repository "${{ inputs.repository }}" --arg branch "${{ inputs.branch }}" --arg actor "${{ inputs.actor }}" --arg run_id "${{ inputs.run_id }}" --arg failures "${{ inputs.failure }}" '{ "channel": "team-gnark-build", "text": "GitHub Action build result: failure", "blocks": [ @@ -77,6 +81,13 @@ jobs: "text": "" } }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Failed tests:*\n\n\($failures)" + } + }, { "type": "context", "elements": [ diff --git a/debug_test.go b/debug_test.go index 0b1548e66..f86517983 100644 --- a/debug_test.go +++ b/debug_test.go @@ -78,6 +78,7 @@ func (circuit *divBy0Trace) Define(api frontend.API) error { } func TestTraceDivBy0(t *testing.T) { + t.Fatal("testing CI") if !debug.Debug { t.Skip("skipping test in non debug mode") }