Repository navigation
ci: post a stale dd-trace v5 pin to Slack instead of failing - #870
Closed
cbeauchesne wants to merge 6 commits into
Closed
cbeauchesne wants to merge 6 commits into
cbeauchesne wants to merge 6 commits into
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>
cbeauchesne
marked this pull request as ready for review
November 24, 2026 09:30
There was a problem hiding this comment.
An npm registry error can corrupt the new GitHub Actions output file and suppress the promised Slack failure alert. The malformed output was reproduced locally with a mocked E503 response.
🤖 Bits Code Review · Commit f9a23f6
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>
There was a problem hiding this comment.
More details
The PR makes stale dd-trace v5 pins post Slack reminders without failing main, while check errors alert and fail and pull requests retain failure gating. Preserving npm failures and validating versions fixes the earlier output-corruption finding; no findings remain open, though Slack delivery is unverified.
🤖 Bits Code Review · Commit 07343e2
zarirhamza
approved these changes
Nov 24, 2026
…nment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cbeauchesne
had a problem deploying
to
datadog-lambda-js-pin
December 1, 2026 16:56 — with
GitHub Actions
Failure
cbeauchesne
had a problem deploying
to
datadog-lambda-js-pin
December 1, 2026 16:57 — with
GitHub Actions
Failure
zarirhamza
approved these changes
Dec 1, 2026
cbeauchesne
had a problem deploying
to
datadog-lambda-js-pin
December 3, 2026 09:52 — with
GitHub Actions
Failure
Collaborator
Author
|
Closing in favor of #877 |
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