-
Notifications
You must be signed in to change notification settings - Fork 14
Update version loading for cpp_kong #6409
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
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 |
|---|---|---|
|
|
@@ -309,17 +309,11 @@ elif [ "$TARGET" = "cpp_httpd" ]; then | |
|
|
||
| elif [ "$TARGET" = "cpp_kong" ]; then | ||
| assert_version_is_dev | ||
| assert_target_branch_is_not_set | ||
| RELEASE=$(curl --silent --fail --show-error -H "Authorization: token $GITHUB_TOKEN" \ | ||
| "https://api.github.com/repos/DataDog/kong-plugin-ddtrace/releases/tags/tip") | ||
| ASSET_NAME=$(echo "$RELEASE" | jq -r '.assets[] | select(.name | test("kong-plugin-ddtrace.*\\.rock")) | .name') | ||
| ASSET_URL=$(echo "$RELEASE" | jq -r '.assets[] | select(.name | test("kong-plugin-ddtrace.*\\.rock")) | .url') | ||
| echo "Downloading $ASSET_NAME from kong-plugin-ddtrace tip release" | ||
| curl --silent --fail --show-error -L \ | ||
| -H "Authorization: token $GITHUB_TOKEN" \ | ||
| -H "Accept: application/octet-stream" \ | ||
| --output "$ASSET_NAME" \ | ||
| "$ASSET_URL" | ||
| LIBRARY_TARGET_BRANCH="${LIBRARY_TARGET_BRANCH:-main}" | ||
| echo "Cloning kong-plugin-ddtrace branch ${LIBRARY_TARGET_BRANCH}" | ||
| git clone --depth 1 --branch "$LIBRARY_TARGET_BRANCH" \ | ||
| https://github.com/DataDog/kong-plugin-ddtrace.git kong-plugin-ddtrace | ||
|
Comment on lines
+314
to
+315
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.
The new Useful? React with 👍 / 👎.
Comment on lines
+314
to
+315
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.
This new clone path does not remove existing Useful? React with 👍 / 👎. |
||
| echo "Using kong-plugin-ddtrace@$(git -C kong-plugin-ddtrace rev-parse --short HEAD)" | ||
|
|
||
| elif [ "$TARGET" = "cpp_nginx" ]; then | ||
| assert_version_is_dev | ||
|
|
||
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.
load-binary.shnow supportsLIBRARY_TARGET_BRANCHforcpp_kong, but the version suffix logic here always readsDataDog/kong-plugin-ddtrace/commits/main, so the emittedSYSTEM_TESTS_LIBRARY_VERSIONcan point to a different revision than the plugin actually copied into the image whenever a non-mainbranch is tested (ormainmoves between clone and build). That mislabels build metadata and can misattribute experiment results during triage.Useful? React with 👍 / 👎.