Skip to content

Commit

Permalink
build: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Sep 14, 2024
1 parent 3b5cb2f commit 7d36a05
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -102,4 +102,5 @@ jobs:
actor: ${{ github.actor }}
repository: ${{ github.repository }}
branch: ${{ github.event.pull_request.head.ref }}
run_id: ${{ github.run_id }}
run_id: ${{ github.run_id }}
failures: ${{ steps.generate-job-summary.outputs.failures }}
13 changes: 12 additions & 1 deletion .github/workflows/slack-notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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": [
Expand All @@ -77,6 +81,13 @@ jobs:
"text": "<https://github.com/\($repository)/actions/runs/\($run_id)|View Details>"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Failed tests:*\n\n\($failures)"
}
},
{
"type": "context",
"elements": [
Expand Down
1 change: 1 addition & 0 deletions debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 7d36a05

Please sign in to comment.