Repository navigation
ci: post a stale dd-trace v5 pin to Slack instead of failing - #877
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 7 commits intoDec 3, 2026
Merged
Conversation
The weekly check-pin job failed on purpose whenever a new dd-trace v5 was published, which counted as a CI infra failure in Green CI. Outside of pull requests, a stale pin now posts a reminder to #apm-serverless and the job succeeds; it fails only when the check itself or the Slack post fails. check_dd_trace_v5_pin.sh exits 2 for a stale pin (still non-zero, so the GitLab npm publish gate is unchanged) and reports both versions through $GITHUB_OUTPUT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Store the script's exit status and branch on it in the steps' if conditions: one Slack step for a stale pin, one for an unexpected check failure, and a final step that fails the job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without pipefail, an npm error (e.g. E503) was masked by the node pipeline and its JSON error object became the "latest" version: the check reported a stale pin and wrote a multiline value to $GITHUB_OUTPUT, which Actions rejects, so no Slack alert was sent. Keep npm's exit status and require a 5.x.y version, else exit 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cbeauchesne
had a problem deploying
to
datadog-lambda-js-pin
December 3, 2026 09:52 — with
GitHub Actions
Failure
cbeauchesne
marked this pull request as ready for review
December 3, 2026 10:04
2 of 11 tasks
There was a problem hiding this comment.
More details
Mocked registry responses confirmed that stale pins return 2 and registry errors remain failures. Live Slack delivery was not exercised.
🤖 Bits Code Review · Commit 0dee84a
zarirhamza
approved these changes
Dec 3, 2026
zarirhamza
had a problem deploying
to
datadog-lambda-js-pin
December 3, 2026 16:51 — with
GitHub Actions
Failure
gh-worker-dd-mergequeue-cf854d
Bot
merged commit Dec 3, 2026
24c652d
into
main
68 of 69 checks passed
gh-worker-dd-mergequeue-cf854d
Bot
deleted the
cbeauchesne/dd-trace-v5-pin-slack
branch
December 3, 2026 17:57
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
check_dd_trace_v5_pin.shexit codes:0success1something prevent the check to proceed2the pin is staleOn
main, workflow behavior:2), no longer fails , but rather posts a reminder to #apm-serverless, and the job succeeds;0or2): posts an alert to #apm-serverless, and the job fails.On pull requests, workflow behavior:
Keep the current behavior: a stale pin or a failed check fails the job, and nothing is posted to Slack.
Motivation
Agreed in this Slack thread: a stale pin means the job did its job, and it shouldn't count as a CI failure in Green CI.
Testing Guidelines
Exit-code handling checked locally. End-to-end needs the secret below.
Additional Notes
Before merging, a repo admin must add the
SLACK_ALERTS_WEBHOOKsecret, an incoming webhook bound to #apm-serverless.Types of Changes
Check all that apply
🤖 Generated with Claude Code