Skip to content

SDSP-587: dispatch downstream bumps after crate publication - #394

Merged
GeoffreyRdn merged 3 commits into
mainfrom
geoffrey.redon/SDSP-587-fix-crate-dispatch
Sep 24, 2026
Merged

GeoffreyRdn merged 3 commits into
mainfrom
geoffrey.redon/SDSP-587-fix-crate-dispatch

Conversation

@GeoffreyRdn

@GeoffreyRdn GeoffreyRdn commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

The downstream dependency bump currently runs independently of crate publication, sends a Git commit hash, and targets the old repository organization. Dispatch failures can also leave the workflow green.

This change calls the reusable dispatch workflow after successful publication on main, passes the exact published crate version, and verifies that it is available and not yanked in the crates.io index. Dry runs and non-main releases skip dispatch. GitHub App token creation and dispatch target ddoghq/sds-shared-library, HTTP errors fail the job, and JSON payloads are built with jq. Direct pushes without a linked PR use the commit URL and triggering user as metadata.

JIRA: SDSP-587

@GeoffreyRdn
GeoffreyRdn marked this pull request as ready for review September 23, 2026 15:18
@GeoffreyRdn
GeoffreyRdn requested a review from a team as a code owner September 23, 2026 15:18
| jq -se --arg version "$CRATE_VERSION" 'any(.[]; .vers == $version and .yanked == false)' > /dev/null; then
exit 0
fi
if [ "$attempt" -lt 12 ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we need this if, but it's probably not a big deal

(is attempt not always less than 12?)

@GeoffreyRdn GeoffreyRdn Sep 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is inclusive, so 12 can be triggered in the last round. Basically we wait except for last try.
Proof:

for attempt in {1..12}; do echo $attempt; done
1
2
3
4
5
6
7
8
9
10
11
12

@fbryden fbryden left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GeoffreyRdn
GeoffreyRdn merged commit 3362039 into main Sep 24, 2026
5 checks passed
@GeoffreyRdn
GeoffreyRdn deleted the geoffrey.redon/SDSP-587-fix-crate-dispatch branch September 24, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants