Skip to content

feat: pin and automate library defaults for v3#70

Merged
juan-fernandez merged 8 commits into
mainfrom
juan-fernandez/pin-tracer-defaults
Jul 16, 2026
Merged

feat: pin and automate library defaults for v3#70
juan-fernandez merged 8 commits into
mainfrom
juan-fernandez/pin-tracer-defaults

Conversation

@juan-fernandez

@juan-fernandez juan-fernandez commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Prepares v3 by replacing runtime latest resolution with pinned defaults for .NET, Java, JavaScript, Python, Python coverage, Ruby, and Go/Orchestrion.

It also:

  • documents action-reference and per-library pinning trade-offs, including v2-to-v3 migration;
  • adds local scripts to update pins, open a batched signed bump PR, and release the action from PR labels.

Motivation

Resolving latest can change customer environments without an action release. Pinned defaults make releases reproducible while keeping library updates reviewed and easy to publish.

Additional Notes

The semver-major label makes the release helper select v3.0.0 and move the v3 reference. The existing v2 line remains unchanged; future library bumps request patch or minor releases.

Possible Drawbacks / Trade-offs

@v3 receives reviewed updates automatically. Exact tags and SHAs remain stable but require users to update their reference; the README documents Dependabot for SHA updates.

A library-only release may not affect every language, so generated bump PRs list the changed libraries explicitly.

Describe how to test/QA your changes

  • Parse the action and workflow YAML and compare defaults with README.md.
  • Run bash -n and the isolated argument/update checks for the scripts.
  • Run the library-bump and semver-major release helpers in dry-run mode.
  • Run the existing GitHub Actions matrix.

@juan-fernandez juan-fernandez added semver-minor Requests a minor test-visibility-github-action release after merge library-version-bump Marks PRs that bump pinned library versions labels Jul 15, 2026 — with ChatGPT Codex Connector
@juan-fernandez juan-fernandez changed the title [WIP] fix: pin default library versions [WIP] fix: pin and automate default library versions Jul 15, 2026
@juan-fernandez juan-fernandez removed the semver-minor Requests a minor test-visibility-github-action release after merge label Jul 15, 2026
@juan-fernandez juan-fernandez changed the title [WIP] fix: pin and automate default library versions [WIP] feat: pin and automate library defaults for v3 Jul 15, 2026
@juan-fernandez juan-fernandez added the semver-major Requests a major test-visibility-github-action release after merge label Jul 15, 2026
@juan-fernandez

Copy link
Copy Markdown
Contributor Author

@codex review

@juan-fernandez

Copy link
Copy Markdown
Contributor Author

/datadog autotest review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb4d7f67da

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/release-action.sh
Comment thread scripts/create-library-version-bump-pr.sh Outdated

@datadog-prod-us1-5 datadog-prod-us1-5 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Datadog Autotest: PASS

More details

All seven tracer default pins were validated as consistent between action.yml and README.md. The three new scripts (bump, create-PR, release) handle version comparison, file mutation, and semver arithmetic correctly for all realistic inputs including Go's v-prefix convention — no behavioral regressions found.

Was this helpful? React 👍 or 👎

📊 Validated against 14 scenarios · Open Bits AI session

🤖 Datadog Autotest · Commit bb4d7f6 · What is Autotest? · Any feedback? Reach out in #autotest

@daniel-mohedano daniel-mohedano 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.

🚀

@juan-fernandez juan-fernandez changed the title [WIP] feat: pin and automate library defaults for v3 feat: pin and automate library defaults for v3 Jul 16, 2026
@juan-fernandez juan-fernandez marked this pull request as ready for review July 16, 2026 08:55
@juan-fernandez juan-fernandez requested a review from a team as a code owner July 16, 2026 08:55

@datadog-prod-us1-5 datadog-prod-us1-5 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Datadog Autotest: PASS

More details

All seven bump-library-versions.sh regex patterns matched their targets in the real files exactly once, in-memory writes are atomic (File.write only fires after the full loop completes), and the semver comparison, bump-rank selection, and tag arithmetic in the release scripts all produced correct results across the full range of upgrade/downgrade/equal-version inputs. No behavioral regressions found.

Was this helpful? React 👍 or 👎

📊 Validated against 18 scenarios · Open Bits AI session

🤖 Datadog Autotest · Commit 5b4d576 · What is Autotest? · Any feedback? Reach out in #autotest

@juan-fernandez

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 04225d85ec

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@juan-fernandez juan-fernandez merged commit d6d648d into main Jul 16, 2026
11 checks passed
@juan-fernandez juan-fernandez deleted the juan-fernandez/pin-tracer-defaults branch July 16, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

library-version-bump Marks PRs that bump pinned library versions semver-major Requests a major test-visibility-github-action release after merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants