Repository navigation
ci: post a stale dd-trace v5 pin to Slack instead of failing - #870
Draft
cbeauchesne wants to merge 1 commit into
Draft
cbeauchesne wants to merge 1 commit into
cbeauchesne wants to merge 1 commit 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>
This branch has not been 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?
Changes the weekly
dd-trace v5 pin freshness / check-pinjob so that a stale v5 pin no longer fails it:main, manual run): the job posts a reminder to #apm-serverless through theSLACK_ALERTS_WEBHOOKincoming webhook, then succeeds.peerDependenciesrange, an npm registry error, a missing secret, or a revoked webhook.scripts/check_dd_trace_v5_pin.shnow exits2for a stale pin, instead of1. When it runs in GitHub Actions, it also writesconfigured/latestto$GITHUB_OUTPUT. A stale pin still makes the script exit non-zero, so the GitLab npm publish gate (.gitlab/scripts/publish_npm.sh,build.yaml.tpl) behaves exactly as before.Motivation
Slack thread: the job failed on purpose whenever a new dd-trace v5 came out (5 of its 7 runs in 30 days). Each of those failures counted as a CI infra failure in the repo's Green CI metric, even though the job had done its work. The team chose option 1: the job succeeds and posts to #apm-serverless.
Testing Guidelines
scripts/check_dd_trace_v5_pin.shlocally withGITHUB_OUTPUTset. It exits2and writesconfigured=5.136.0/latest=5.137.0, since the pin is stale right now.200reply, the message is sent and the step passes. With a404 no_servicereply, the step fails with exit code 22 and prints Slack's reply.SLACK_ALERTS_WEBHOOKrepo secret, which a repo admin has to add before this is merged. After that, a manualworkflow_dispatchrun should post the real reminder, since the pin is currently stale.Additional Notes
The webhook is bound to #apm-serverless, so the workflow doesn't set a channel.
Types of Changes
Check all that apply
🤖 Generated with Claude Code