Skip to content

feat(ci): add GitLab CI configuration for building mod_datadog#35

Merged
mimfgg merged 10 commits intomainfrom
add-gitlab-ci
Feb 11, 2026
Merged

feat(ci): add GitLab CI configuration for building mod_datadog#35
mimfgg merged 10 commits intomainfrom
add-gitlab-ci

Conversation

@pawelchcki
Copy link
Copy Markdown
Contributor

Add GitLab CI pipeline to build mod_datadog.so with RUM support for amd64 and arm64 architectures. Includes musl toolchain build from scratch using LLVM 17.0.6.

Add GitLab CI pipeline to build mod_datadog.so with RUM support for
amd64 and arm64 architectures. Includes musl toolchain build from
scratch using LLVM 17.0.6.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.43%. Comparing base (7745646) to head (6a480ab).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
- Coverage   62.70%   62.43%   -0.28%     
==========================================
  Files           7        7              
  Lines         370      370              
  Branches       49       49              
==========================================
- Hits          232      231       -1     
- Misses        100      101       +1     
  Partials       38       38              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Use GIT_CONFIG variables to rewrite GitHub DataDog URLs to GitLab
during checkout, allowing CI to authenticate with CI_JOB_TOKEN
when fetching submodules like inject-browser-sdk.
Point inject-browser-sdk submodule to httpd-datadog's mirror branch
instead of the external GitHub repo. This allows GitLab CI to fetch
the submodule using CI_JOB_TOKEN since it's accessing itself.
Exclude fuzz and other workspace members from the build to avoid
compiling libfuzzer-sys which requires C++ headers not available
in the musl cross-compilation environment.
The cdylib crate type is not supported for musl targets. Explicitly
specify staticlib to avoid corrosion trying to copy a non-existent
.so file.
@pawelchcki pawelchcki marked this pull request as ready for review February 2, 2026 14:00
@pawelchcki pawelchcki requested a review from a team as a code owner February 2, 2026 14:00
@pawelchcki pawelchcki requested review from cataphract and removed request for a team February 2, 2026 14:00
- Add nginx-datadog as submodule (mirror-nginx-datadog branch)
- Source toolchain files from deps/nginx-datadog/build_env/
- Remove duplicate toolchain files from .gitlab/

This consolidates the musl toolchain setup with nginx-datadog,
making it easier to maintain and keep in sync.
@cataphract
Copy link
Copy Markdown

@xlamorlette-datadog is redoing the pipeline for nginx-datadog. Maybe you could rely on the image he's pushing to the gitlab registry (FROM it using either :latest or using a specific sha) instead of duplicating its recipe and adding nginx-datadog as a submodule.

@pawelchcki
Copy link
Copy Markdown
Contributor Author

@xlamorlette-datadog is redoing the pipeline for nginx-datadog. Maybe you could rely on the image he's pushing to the gitlab registry (FROM it using either :latest or using a specific sha) instead of duplicating its recipe and adding nginx-datadog as a submodule.

I'd prefer to build image on demand from a known source, rather than use opaque image with unknown history.
Also this approach unblocks modification for the image. And In future I'd like to add httpd specific tools into the image here (example httpd installs, etc)

Everything is automated by CI, so human overhead here is minimal

Comment thread .gitlab-ci.yml
@pawelchcki
Copy link
Copy Markdown
Contributor Author

Hmm I don't know how to merge this PR 🤷

@xlamorlette-datadog do you know what is missing ?

@mimfgg mimfgg merged commit 6e0faa4 into main Feb 11, 2026
6 checks passed
@mimfgg mimfgg deleted the add-gitlab-ci branch February 11, 2026 09:41
@mimfgg
Copy link
Copy Markdown

mimfgg commented Feb 11, 2026

admin merged because mergegate is stuck in this PR.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants