Skip to content

cpp_kong: use local git SHA for dev version when available#6697

Draft
adeshkumar1 wants to merge 1 commit intomainfrom
cpp-kong-local-git-sha
Draft

cpp_kong: use local git SHA for dev version when available#6697
adeshkumar1 wants to merge 1 commit intomainfrom
cpp-kong-local-git-sha

Conversation

@adeshkumar1
Copy link
Copy Markdown
Contributor

@adeshkumar1 adeshkumar1 commented Apr 7, 2026

Summary

  • When binaries/kong-plugin-ddtrace has a .git directory, use its HEAD SHA for the dev version suffix instead of always fetching from the GitHub API
  • Falls back to the GitHub API when .git is not present (e.g. .rock artifacts or copies without git history)

Problem

The version reported during system-tests was always using the latest commit SHA from main via the GitHub API, even when testing a local override (PR branch, custom clone, etc.). This made the reported version misleading — it showed the main SHA while actually testing different code

When the plugin source in binaries/kong-plugin-ddtrace has a .git
directory (e.g. cloned by CI or a developer), use its HEAD SHA for
the dev version suffix instead of always fetching the latest commit
from main via the GitHub API. This ensures the reported version
accurately reflects the code being tested.

Falls back to the GitHub API when .git is not present (e.g. when
the source came from a .rock artifact or was copied without git).
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

CODEOWNERS have been resolved as:

utils/build/docker/cpp_kong/install_ddtrace.sh                          @DataDog/system-tests-core

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.

1 participant