-
Notifications
You must be signed in to change notification settings - Fork 32
ci: report integration test failures to Jira #3807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -123,6 +123,16 @@ jobs: | |
| -e @'${{ github.workspace }}/ansible/secrets.yml' \ | ||
| ansible/ci-build-tests.yml | ||
|
|
||
| - name: Report build failure to Jira | ||
| if: (!cancelled()) | ||
| uses: stackrox/actions/test/junit2jira@main | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win Pin every 📍 Affects 2 files
🤖 Prompt for AI AgentsSource: MCP tools |
||
| with: | ||
| dry-run: ${{ github.event_name != 'push' }} | ||
| jira-user: ${{ secrets.JIRA_USER }} | ||
| jira-token: ${{ secrets.JIRA_TOKEN }} | ||
| directory: junit-reports | ||
| gcp-metrics: false | ||
|
|
||
| common-variables: | ||
| runs-on: ubuntu-24.04 | ||
| outputs: | ||
|
|
@@ -179,21 +189,12 @@ jobs: | |
| run: | | ||
| make -C "${{ matrix.directory }}" build-and-push | ||
|
|
||
| notify: | ||
| runs-on: ubuntu-24.04 | ||
| if: always() && contains(join(needs.*.result, ','), 'failure') && github.event_name != 'pull_request' | ||
| needs: | ||
| - build-test-image | ||
| - rebuild-containers | ||
| steps: | ||
| - name: Slack notification | ||
| uses: rtCamp/action-slack-notify@v2 | ||
| env: | ||
| SLACK_WEBHOOK: ${{ secrets.SLACK_COLLECTOR_ONCALL_WEBHOOK }} | ||
| SLACK_CHANNEL: team-acs-collector-oncall | ||
| SLACK_COLOR: failure | ||
| SLACK_LINK_NAMES: true | ||
| SLACK_TITLE: "Failed to rebuild test containers" | ||
| MSG_MINIMAL: actions url,commit | ||
| SLACK_MESSAGE: | | ||
| @acs-collector-oncall | ||
| - name: Report build failure to Jira | ||
| if: (!cancelled()) | ||
| uses: stackrox/actions/test/junit2jira@main | ||
| with: | ||
| dry-run: ${{ github.event_name != 'push' }} | ||
| jira-user: ${{ secrets.JIRA_USER }} | ||
| jira-token: ${{ secrets.JIRA_TOKEN }} | ||
| directory: junit-reports | ||
| gcp-metrics: false | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win
Pin all credentialed Jira action references to
df8c8f5830fc09d37908be1a9744365a93c5b3cc. Replace the mutable@mainreferences across these workflows with the approved immutable commit SHA, including all four references in this file.📍 Affects 4 files
.github/workflows/collector-builder.yml#L128-L128(this comment).github/workflows/integration-tests-vm-type.yml#L148-L148.github/workflows/integration-test-containers.yml#L128-L128.github/workflows/k8s-integration-tests.yml#L104-L104🤖 Prompt for AI Agents