Skip to content

ci: add manual job to trigger dd-trace-py downstream pipeline#2131

Draft
faydef wants to merge 3 commits into
mainfrom
fayssal/auto-update-libdatadog
Draft

ci: add manual job to trigger dd-trace-py downstream pipeline#2131
faydef wants to merge 3 commits into
mainfrom
fayssal/auto-update-libdatadog

Conversation

@faydef

@faydef faydef commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

What

Adds a manual GitLab CI job, trigger_dd_trace_py, that triggers the downstream DataDog/apm-reliability/dd-trace-py pipeline on demand from the GitLab pipeline UI.

  • New .gitlab/dd-trace-py.yml defining the trigger_dd_trace_py job (when: manual, allow_failure: true, strategy: depend).
  • Configurable target branch via the DD_TRACE_PY_BRANCH pipeline variable (defaults to fayssal/auto-update-libdatadog), exposed as a UI element.
  • Passes the current libdatadog commit metadata plus UPDATE_LIBDATADOG_VERSION="true" downstream.

Why

The aim is to have dd-trace-py auto-update the libdatadog version it uses (driven by UPDATE_LIBDATADOG_VERSION) so we can run benchmarks against the in-flight libdatadog commit.

Warning

This is experimental — the wiring and variables may change as we iterate.

Related

Matching dd-trace-py PR: DataDog/dd-trace-py#18660

🤖 Generated with Claude Code

faydef and others added 2 commits June 16, 2026 12:28
Adds a `trigger_dd_trace_py` manual job that triggers the
DataDog/apm-reliability/dd-trace-py pipeline on demand from the GitLab
UI. The target branch is configurable via DD_TRACE_PY_BRANCH (defaults
to fayssal/auto-update-libdatadog).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Always passes UPDATE_LIBDATADOG_VERSION="true" to the downstream
dd-trace-py pipeline from the manual trigger_dd_trace_py job.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@faydef faydef requested a review from a team as a code owner June 17, 2026 21:24
@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented Jun 17, 2026

Copy link
Copy Markdown

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 2 Pipeline jobs failed

Lint | Validate CODEOWNERS   View in Datadog   GitHub Actions

Required checks pass | allchecks   View in Datadog   GitHub Actions

ℹ️ Info

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 73.80% (+0.43%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: f93ba28 | Docs | Datadog PR Page | Give us feedback!

@faydef faydef marked this pull request as draft June 17, 2026 21:25

@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: 538902fa15

ℹ️ 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 .gitlab/dd-trace-py.yml
trigger_dd_trace_py:
variables:
LIBDATADOG_COMMIT_BRANCH: $CI_COMMIT_BRANCH
LIBDATADOG_COMMIT_SHA: $CI_COMMIT_SHA

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Pass the SHA as the downstream target

When this manual bridge is launched from a feature or MR pipeline, this SHA is only passed as metadata: the referenced dd-trace-py branch's .gitlab/update-libdatadog.yml auto-runs solely on UPDATE_LIBDATADOG_VERSION and calls scripts/update-libdatadog.py --skip-python, while that script uses args.target_rev or resolve_latest_main_sha(). As a result the downstream job updates dd-trace-py to the latest libdatadog main commit, not the in-flight commit that triggered this job, so the benchmark can validate the wrong revision unless the downstream job is also wired to consume this SHA as its --target-rev.

Useful? React with 👍 / 👎.

The trigger_dd_trace_py job now runs on every push to main in addition
to remaining manually triggerable on other branches.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dd-octo-sts

dd-octo-sts Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Artifact Size Benchmark Report

aarch64-alpine-linux-musl
Artifact Baseline Commit Change
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.so 7.70 MB 7.70 MB 0% (0 B) 👌
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.a 83.68 MB 83.68 MB 0% (0 B) 👌
aarch64-unknown-linux-gnu
Artifact Baseline Commit Change
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so 10.34 MB 10.34 MB 0% (0 B) 👌
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.a 94.78 MB 94.78 MB 0% (0 B) 👌
libdatadog-x64-windows
Artifact Baseline Commit Change
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.dll 24.83 MB 24.83 MB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.lib 87.33 KB 87.33 KB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.pdb 180.88 MB 180.87 MB -0% (-8.00 KB) 👌
/libdatadog-x64-windows/debug/static/datadog_profiling_ffi.lib 925.05 MB 925.05 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.dll 8.09 MB 8.09 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.lib 87.33 KB 87.33 KB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.pdb 23.94 MB 23.94 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/static/datadog_profiling_ffi.lib 47.78 MB 47.78 MB 0% (0 B) 👌
libdatadog-x86-windows
Artifact Baseline Commit Change
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.dll 21.52 MB 21.52 MB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.lib 88.71 KB 88.71 KB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.pdb 184.88 MB 184.87 MB -0% (-8.00 KB) 👌
/libdatadog-x86-windows/debug/static/datadog_profiling_ffi.lib 918.00 MB 918.00 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.dll 6.24 MB 6.24 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.lib 88.71 KB 88.71 KB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.pdb 25.66 MB 25.66 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/static/datadog_profiling_ffi.lib 45.41 MB 45.41 MB 0% (0 B) 👌
x86_64-alpine-linux-musl
Artifact Baseline Commit Change
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.a 74.60 MB 74.60 MB 0% (0 B) 👌
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.so 8.58 MB 8.58 MB 0% (0 B) 👌
x86_64-unknown-linux-gnu
Artifact Baseline Commit Change
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.a 90.02 MB 90.02 MB 0% (0 B) 👌
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so 10.44 MB 10.44 MB 0% (0 B) 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant