Repository navigation
Conversation
The published ddprof jars had a bare manifest, and a snapshot version such as 1.54.0-SNAPSHOT does not identify the source it was built from. Every assembled library jar now records Implementation-Title, Implementation-Version, Implementation-Vendor and Git-Commit. The commit is CI_COMMIT_SHA in GitLab, which publishes, and git rev-parse HEAD elsewhere, or "unknown" when git fails. JarManifestTest reads the manifest of the jar the tests run against. PROF-16488 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4110806b34
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
More details
The manifest metadata reaches the published and debug jars through their existing assembly tasks, with the debug Premain-Class preserved. Changing the recorded commit intentionally rebuilds jars and reruns consuming tests, as acknowledged in the PR.
🤖 Bits Code Review · Commit 4110806
Scan-Build Report
Bug Summary
Reports
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI Test ResultsRun: #42054216673 | Commit:
Status Overview
Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled Summary: Total: 32 | Passed: 32 | Failed: 0 Updated: 2026-11-05 15:45:01 UTC |
What does this PR do?:
Every library jar (
assemble<Config>Jar: the published release jar and thedebugclassifier) now carries these manifest attributes:Implementation-TitleddprofImplementation-VersioncomponentVersion)Implementation-VendorDatadogGit-CommitCI_COMMIT_SHAin GitLab, otherwisegit rev-parse HEAD, orunknownif git fails (logged as a warning)Motivation:
The published jars have a bare manifest; 1.52.1 contains only
Manifest-Version: 1.0. A snapshot version such as1.54.0-SNAPSHOTdoes not identify the source it was built from. Consumers such as speedlab'sprofiler_versionbuild input (DataDog/speedlab#88) therefore cannot trace a jar back to a commit.Additional Notes:
GITHUB_SHA. Onpull_requestruns,GITHUB_SHAis GitHub's synthetic merge commit. GitHub Actions jars are not published, so they fall back to git.HEAD. Published jars always come from a clean GitLab checkout.Git-Commitis an input of the jar tasks. Locally, a new commit with no source change (an amend or a rebase) re-assembles the jars and re-runs the tests that consume them.git rev-parseruns at configuration time, likecompute-version.shin the root build./code-review): 9 findings, none Critical or High.CI_COMMIT_SHA, the doc wording, silent git failures, the test acceptingunknownin GitLab, and the missing javadoc.How to test the change?:
JarManifestTestreads the manifest of the jar the tests run against. It checks the title, vendor and version, that the version matches the jar's file name, and thatGit-Commitis a 40-hex SHA. WhenCI_COMMIT_SHAis set, it checks that the jar recorded exactly that SHA.The test passes with and without
CI_COMMIT_SHA=1111…set. Before this change it fails, because the manifest has noImplementation-Title.For Datadog employees:
credentials of any kind, I've requested a security review (run the
dd:platform-security-reviewskill, or file a request via the PSEC review form).
bewairealso runs automatically on every PR.🤖 Generated with Claude Code