Skip to content

[CIEXE-2016] Migrate GitLab CI jobs to pod-level resource variables#4008

Draft
henryvo117 wants to merge 1 commit into
DataDog:masterfrom
henryvo117:luu.vo/ciexe-2016-pod-level-resources
Draft

[CIEXE-2016] Migrate GitLab CI jobs to pod-level resource variables#4008
henryvo117 wants to merge 1 commit into
DataDog:masterfrom
henryvo117:luu.vo/ciexe-2016-pod-level-resources

Conversation

@henryvo117

Copy link
Copy Markdown

Migrate generated GitLab CI templates from per-container Kubernetes CPU/memory variables to a single KUBERNETES_POD_* budget. This lets helper setup and build work share one pod reservation instead of reserving separate build and helper footprints that do not run concurrently.

Reference: DataDog/datadog-static-analyzer#924

Notable decisions

  • Applied the migration across all four CI generator scripts (generate-package.php, generate-tracer.php, generate-appsec.php, generate-profiler.php) so every generated job uses pod-level variables consistently.
  • Kept existing pod CPU/memory values from the build container definitions; helper-only reservations were removed because they are no longer needed with pod-level budgeting.

Trade-offs

  • Feature flag targeting for ci.gitlab-runner.enable-pod-level-resources still needs to be updated separately before this takes effect in CI.

Impact

For internal, reduces inflated Kubernetes runner resource requests for dd-trace-php CI jobs once the feature flag is enabled.

Test plan

  • Merge and verify generate-templates succeeds on the branch pipeline
  • Confirm generated runner pods have spec.resources set and build/helper containers have empty container-level resource specs
  • Enable ci.gitlab-runner.enable-pod-level-resources targeting for dd-trace-php

Jira: https://datadoghq.atlassian.net/browse/CIEXE-2016

Made with Cursor

Replace per-container Kubernetes CPU/memory variables with a single
KUBERNETES_POD_* budget in the generated CI templates so helper setup
and build work share one pod resource reservation.

Co-authored-by: Cursor <cursoragent@cursor.com>
@henryvo117

Copy link
Copy Markdown
Author

/gitlab resync-code

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Jun 23, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-06-23 15:16:27 UTC ℹ️ Start processing command /gitlab resync-code


2026-06-23 15:16:40 UTC ℹ️ Devflow: /gitlab resync-code

resync successful

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.

1 participant