Skip to content

fix(ci): authenticate submodule clone in macrobenchmarks build-nginx-module#382

Merged
pawelchcki merged 1 commit into
masterfrom
nginx-fix-maaster-fail
May 19, 2026
Merged

fix(ci): authenticate submodule clone in macrobenchmarks build-nginx-module#382
pawelchcki merged 1 commit into
masterfrom
nginx-fix-maaster-fail

Conversation

@pawelchcki
Copy link
Copy Markdown
Collaborator

@pawelchcki pawelchcki commented May 18, 2026

Summary

  • The nightly macrobenchmarks pipeline's build-nginx-module job has been failing on master since Use stable config for RUM snippet creation #331 (May 6) added the private deps/inject-browser-sdk submodule. Its script ran git submodule update --init --recursive with no auth, so the clone of https://gitlab.ddbuild.io/DataDog/inject-browser-sdk died with could not read Username for 'https://gitlab.ddbuild.io'.
  • Sibling jobs (build-nginx-fast, build-nginx-all) don't fail because they extend .git-config in .gitlab/common.yml, which sets GIT_SUBMODULE_STRATEGY=recursive — the runner then performs the submodule clone itself and injects http.extraheader JOB-TOKEN auth for same-instance GitLab submodules.
  • This change includes common.yml from benchmarks.yml, extends .git-config on build-nginx-module, and drops the now-redundant manual git submodule sync && git submodule update --init --recursive line.

Example failing job: https://gitlab.ddbuild.io/DataDog/apm-reliability/nginx-datadog/-/jobs/1690207190

IDMPL-451 Nginx: master CI: build-nginx-module broken.

Test plan

  • Confirm the macrobenchmarks child pipeline on this branch runs build-nginx-module to success (submodule clones, including deps/inject-browser-sdk, complete with auth).
  • Confirm build-nginx-fast and the rest of build-and-test-fast still pass (no regressions from the new include).

…module

The macrobenchmarks child pipeline's build-nginx-module job ran
`git submodule update --init --recursive` directly in its script with
no auth setup, which worked while only public GitHub submodules
(dd-trace-cpp, libddwaf) existed but started failing on master once
the private deps/inject-browser-sdk submodule was added.

Include common.yml and extend .git-config so the runner clones
submodules itself with GIT_SUBMODULE_STRATEGY=recursive, picking up
the same-instance JOB-TOKEN auth and the github.com → gitlab insteadOf
rewrite already used by build-nginx-fast/all.
Copilot AI review requested due to automatic review settings May 18, 2026 17:53
@pawelchcki pawelchcki requested a review from a team as a code owner May 18, 2026 17:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the nightly macrobenchmarks pipeline failure introduced by the new private deps/inject-browser-sdk submodule by ensuring submodules are cloned by the GitLab runner with proper CI_JOB_TOKEN authentication (instead of an unauthenticated manual git submodule update in the job script).

Changes:

  • Include .gitlab/common.yml from the macrobenchmarks pipeline so shared Git/submodule settings are available.
  • Make build-nginx-module extend .git-config to enable runner-managed recursive submodule cloning with auth.
  • Remove the manual git submodule sync && git submodule update --init --recursive step (now redundant and previously unauthenticated).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@datadog-official
Copy link
Copy Markdown

Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 67.62% (+0.00%)

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

@pawelchcki pawelchcki merged commit 680f5b4 into master May 19, 2026
182 checks passed
@pawelchcki pawelchcki deleted the nginx-fix-maaster-fail branch May 19, 2026 08:13
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.

3 participants