Skip to content

Use resource_size attribute and drop -j for openssl#47812

Open
JSGette wants to merge 2 commits intomainfrom
jsgette/bazel_aware_of_cmake_resources
Open

Use resource_size attribute and drop -j for openssl#47812
JSGette wants to merge 2 commits intomainfrom
jsgette/bazel_aware_of_cmake_resources

Conversation

@JSGette
Copy link
Contributor

@JSGette JSGette commented Mar 13, 2026

What does this PR do?

The most recent commit in rules_foreign_cc introduced resource_size attribute that manages -j setting and its value set for make in the background. So we no longer need to set it as an argument anymore. This also makes bazel aware of resources required by our openssl builds, therefore, bazel will not overschedule actions as bazel used to be unaware of cmake's resource consumption.

@JSGette JSGette self-assigned this Mar 13, 2026
@JSGette JSGette requested a review from a team as a code owner March 13, 2026 13:21
@JSGette JSGette added changelog/no-changelog No changelog entry needed qa/no-code-change No code change in Agent code requiring validation labels Mar 13, 2026
@dd-octo-sts dd-octo-sts bot added the internal Identify a non-fork PR label Mar 13, 2026
@github-actions github-actions bot added the short review PR is simple enough to be reviewed quickly label Mar 13, 2026
"//conditions:default": "placeholder" + "_" * 50,
}),
lib_source = ":all_srcs",
resource_size = "enormous",
Copy link
Contributor

Choose a reason for hiding this comment

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

😆

Copy link
Contributor

@rdesgroppes rdesgroppes left a comment

Choose a reason for hiding this comment

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

humongous!

@JSGette JSGette requested a review from a team as a code owner March 13, 2026 14:00
@github-actions github-actions bot added medium review PR review might take time and removed short review PR is simple enough to be reviewed quickly labels Mar 13, 2026
@agent-platform-auto-pr
Copy link
Contributor

Gitlab CI Configuration Changes

Modified Jobs

.bazel:runner:linux-amd64
  .bazel:runner:linux-amd64:
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    tags:
    - arch:amd64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
.bazel:runner:linux-arm64
  .bazel:runner:linux-arm64:
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    tags:
    - arch:arm64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
.system-probe_build_common
  .system-probe_build_common:
    artifacts:
      expire_in: 2 weeks
      paths:
      - $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz
      - $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz.sum
    before_script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache.tar.xz
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    needs: []
    rules:
    - when: on_success
    script:
    - dda inv -- check-go-version
    - dda inv -- -e system-probe.build-object-files --strip-object-files
    - dda inv -- -e system-probe.save-build-outputs $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
      KUBERNETES_CPU_REQUEST: 6
      KUBERNETES_MEMORY_LIMIT: 12Gi
-     KUBERNETES_MEMORY_REQUEST: 6Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
bazel:build-deps:linux-amd64
  bazel:build-deps:linux-amd64:
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    rules:
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - when: on_success
    script:
    - bazel build //deps/... --platforms=//bazel/platforms:linux_x86_64
    stage: deps_build
    tags:
    - arch:amd64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
bazel:build-deps:linux-arm64
  bazel:build-deps:linux-arm64:
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    rules:
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - when: on_success
    script:
    - bazel build //deps/... --platforms=//bazel/platforms:linux_arm64
    stage: deps_build
    tags:
    - arch:arm64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
bazel:mod-deps
  bazel:mod-deps:
    after_script:
    - "if [ $CI_JOB_STATUS = failed ]; then\n  echo >&2 \"\U0001F4A1 To fix the above\
      \ problem, please consider running the following command:\"\n  echo >&2 \"$FIX_COMMAND\"\
      \nfi"
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    script:
    - bazel mod deps --lockfile_mode=refresh --repo_env=REPIN=1
    - git diff --exit-code
    stage: lint
    tags:
    - arch:amd64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
      FIX_COMMAND: bazel mod deps --repo_env=REPIN=1
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
bazel:mod-tidy
  bazel:mod-tidy:
    after_script:
    - "if [ $CI_JOB_STATUS = failed ]; then\n  echo >&2 \"\U0001F4A1 To fix the above\
      \ problem, please consider running the following command:\"\n  echo >&2 \"$FIX_COMMAND\"\
      \nfi"
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    script:
    - bazel mod tidy --lockfile_mode=off
    - git diff --exit-code
    stage: lint
    tags:
    - arch:amd64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
      FIX_COMMAND: bazel mod tidy
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
bazel:run-buildifier-test
  bazel:run-buildifier-test:
    after_script:
    - "if [ $CI_JOB_STATUS = failed ]; then\n  echo >&2 \"\U0001F4A1 To fix the above\
      \ problem, please consider running the following command:\"\n  echo >&2 \"$FIX_COMMAND\"\
      \nfi"
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    script:
    - bazel run //bazel/buildifier:test
    stage: lint
    tags:
    - arch:amd64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
      FIX_COMMAND: bazel run //bazel/buildifier
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
bazel:run-gazelle
  bazel:run-gazelle:
    after_script:
    - "if [ $CI_JOB_STATUS = failed ]; then\n  echo >&2 \"\U0001F4A1 To fix the above\
      \ problem, please consider running the following command:\"\n  echo >&2 \"$FIX_COMMAND\"\
      \nfi"
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    script:
    - bazel run //:gazelle -- -mode=diff -strict
    stage: lint
    tags:
    - arch:amd64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
      FIX_COMMAND: bazel run //:gazelle
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
bazel:run-go-mod-tidy
  bazel:run-go-mod-tidy:
    after_script:
    - "if [ $CI_JOB_STATUS = failed ]; then\n  echo >&2 \"\U0001F4A1 To fix the above\
      \ problem, please consider running the following command:\"\n  echo >&2 \"$FIX_COMMAND\"\
      \nfi"
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    script:
    - bazel run //:go_mod_tidy_all -- -diff
    stage: lint
    tags:
    - arch:amd64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
      FIX_COMMAND: bazel run //:go_mod_tidy_all
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
bazel:test:linux-amd64
  bazel:test:linux-amd64:
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    rules:
    - when: on_success
    script:
    - bazel test //...
    stage: source_test
    tags:
    - arch:amd64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
bazel:test:linux-arm64
  bazel:test:linux-arm64:
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs: []
    rules:
    - when: on_success
    script:
    - bazel test //...
    stage: source_test
    tags:
    - arch:arm64
    - specific:true
    variables:
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
+     KUBERNETES_CPU_REQUEST: 4
+     KUBERNETES_MEMORY_LIMIT: 12Gi
+     KUBERNETES_MEMORY_REQUEST: 12Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
build_system-probe-arm64
  build_system-probe-arm64:
    artifacts:
      expire_in: 2 weeks
      paths:
      - $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz
      - $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz.sum
    before_script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache.tar.xz
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs:
    - go_deps
    rules:
    - when: on_success
    script:
    - dda inv -- check-go-version
    - dda inv -- -e system-probe.build-object-files --strip-object-files
    - dda inv -- -e system-probe.save-build-outputs $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz
    stage: binary_build
    tags:
    - arch:arm64
    - specific:true
    variables:
      ARCH: arm64
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
      KUBERNETES_CPU_REQUEST: 6
      KUBERNETES_MEMORY_LIMIT: 12Gi
-     KUBERNETES_MEMORY_REQUEST: 6Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
build_system-probe-x64
  build_system-probe-x64:
    artifacts:
      expire_in: 2 weeks
      paths:
      - $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz
      - $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz.sum
    before_script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache.tar.xz
    cache:
    - key:
        files:
        - .bazelversion
        prefix: bazelversion-$CI_RUNNER_DESCRIPTION
      paths:
      - .cache/bazelisk
      - .cache/bazel/*/install
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    - key:
        files:
        - .go-version
        - .python-version
        prefix: bazel-$CI_JOB_NAME
      paths:
      - .cache/bazel/*/cache
      - .cache/go
      - .cache/ms-go
      - .cache/pip
      policy: pull$BAZEL_CACHE_POLICY_SUFFIX
      when: on_success
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs:
    - go_deps
    rules:
    - when: on_success
    script:
    - dda inv -- check-go-version
    - dda inv -- -e system-probe.build-object-files --strip-object-files
    - dda inv -- -e system-probe.save-build-outputs $CI_PROJECT_DIR/sysprobe-build-outputs.tar.xz
    stage: binary_build
    tags:
    - arch:amd64
    - specific:true
    variables:
      ARCH: amd64
      BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
      KUBERNETES_CPU_REQUEST: 6
      KUBERNETES_MEMORY_LIMIT: 12Gi
-     KUBERNETES_MEMORY_REQUEST: 6Gi
      XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache

Changes Summary

Removed Modified Added Renamed
0 14 0 0

ℹ️ Diff available in the job log.

@agent-platform-auto-pr
Copy link
Contributor

Files inventory check summary

File checks results against ancestor 9bcd6775:

Results for datadog-agent_7.78.0~devel.git.575.75b7d3d.pipeline.102366329-1_amd64.deb:

Detected file changes:

39 Changed files:

  • opt/datadog-agent/embedded/share/system-probe/ebpf/runtime-security-syscall-wrapper.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/runtime-security.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/runtime-security-fentry.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/usm-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/usm.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/usm-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/usm.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/tracer-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/tracer.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/tracer-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/tracer.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/tracer-fentry-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/tracer-fentry.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/shared-libraries.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/shared-libraries.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/dyninst_event-debug.o:
    • Permission changed: 0o444 -> 0o644
    • Size changed: +13.01% (205.69 KiB -> 232.45 KiB)
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/conntrack-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/dyninst_event.o:
    • Permission changed: 0o444 -> 0o644
    • Size changed: +14.62% (138.19 KiB -> 158.39 KiB)
  • opt/datadog-agent/embedded/share/system-probe/ebpf/offset-guess-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/offset-guess.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/runtime-security-offset-guesser.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/conntrack.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/gpu-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/gpu.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/tcp-queue-length.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/ebpf-debug.o:
    • Permission changed: 0o444 -> 0o644
    • Size changed: +11.15% (73.59 KiB -> 81.79 KiB)
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/ebpf.o:
    • Permission changed: 0o444 -> 0o644
    • Size changed: +10.66% (70.51 KiB -> 78.02 KiB)
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/lock_contention.o:
    • Permission changed: 0o444 -> 0o644
    • Size changed: +10.69% (61.2 KiB -> 67.73 KiB)
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/oom-kill.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/conntrack-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/noisy-neighbor-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/noisy-neighbor.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/bin/kinit:
    • Size changed: +11.73% (34.11 KiB -> 38.11 KiB)
  • opt/datadog-agent/embedded/share/system-probe/ebpf/conntrack.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/ksyms_iter.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/dns-debug.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/dns.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/btf_test.o:
    • Permission changed: 0o444 -> 0o644
  • opt/datadog-agent/embedded/share/system-probe/ebpf/co-re/uprobe_attacher-test.o:
    • Permission changed: 0o444 -> 0o644

@cit-pr-commenter-54b7da
Copy link

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 65849558-dcaa-42a8-a3d5-9f5a70242c85

Baseline: f2b5102
Comparison: 75b7d3d
Diff

Optimization Goals: ✅ No significant changes detected

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +2.56 [-0.51, +5.63] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +2.56 [-0.51, +5.63] 1 Logs
quality_gate_metrics_logs memory utilization +1.43 [+1.18, +1.67] 1 Logs bounds checks dashboard
tcp_syslog_to_blackhole ingress throughput +0.51 [+0.40, +0.61] 1 Logs
ddot_metrics_sum_cumulative memory utilization +0.40 [+0.25, +0.54] 1 Logs
ddot_metrics_sum_delta memory utilization +0.36 [+0.19, +0.53] 1 Logs
file_tree memory utilization +0.22 [+0.17, +0.27] 1 Logs
file_to_blackhole_0ms_latency egress throughput +0.09 [-0.42, +0.59] 1 Logs
quality_gate_logs % cpu utilization +0.04 [-1.55, +1.64] 1 Logs bounds checks dashboard
file_to_blackhole_1000ms_latency egress throughput +0.03 [-0.41, +0.47] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput +0.01 [-0.15, +0.17] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput +0.01 [-0.09, +0.10] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.01 [-0.09, +0.06] 1 Logs
uds_dogstatsd_to_api ingress throughput -0.03 [-0.20, +0.15] 1 Logs
file_to_blackhole_500ms_latency egress throughput -0.04 [-0.43, +0.35] 1 Logs
ddot_metrics_sum_cumulativetodelta_exporter memory utilization -0.07 [-0.30, +0.15] 1 Logs
quality_gate_idle memory utilization -0.09 [-0.13, -0.04] 1 Logs bounds checks dashboard
ddot_metrics memory utilization -0.11 [-0.28, +0.07] 1 Logs
otlp_ingest_metrics memory utilization -0.12 [-0.28, +0.04] 1 Logs
quality_gate_idle_all_features memory utilization -0.13 [-0.16, -0.09] 1 Logs bounds checks dashboard
ddot_logs memory utilization -0.29 [-0.35, -0.23] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization -0.30 [-0.36, -0.24] 1 Logs
otlp_ingest_logs memory utilization -0.35 [-0.47, -0.24] 1 Logs
docker_containers_memory memory utilization -0.72 [-0.82, -0.62] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed observed_value links
docker_containers_cpu simple_check_run 10/10 705 ≥ 26
docker_containers_memory memory_usage 10/10 272.82MiB ≤ 370MiB
docker_containers_memory simple_check_run 10/10 704 ≥ 26
file_to_blackhole_0ms_latency memory_usage 10/10 0.19GiB ≤ 1.20GiB
file_to_blackhole_0ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_1000ms_latency memory_usage 10/10 0.23GiB ≤ 1.20GiB
file_to_blackhole_1000ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_100ms_latency memory_usage 10/10 0.19GiB ≤ 1.20GiB
file_to_blackhole_100ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_500ms_latency memory_usage 10/10 0.21GiB ≤ 1.20GiB
file_to_blackhole_500ms_latency missed_bytes 10/10 0B = 0B
quality_gate_idle intake_connections 10/10 3 = 3 bounds checks dashboard
quality_gate_idle memory_usage 10/10 171.99MiB ≤ 175MiB bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 3 = 3 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 491.40MiB ≤ 550MiB bounds checks dashboard
quality_gate_logs intake_connections 10/10 4 ≤ 6 bounds checks dashboard
quality_gate_logs memory_usage 10/10 204.92MiB ≤ 220MiB bounds checks dashboard
quality_gate_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 332.55 ≤ 2000 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 3 ≤ 6 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 413.97MiB ≤ 475MiB bounds checks dashboard
quality_gate_metrics_logs missed_bytes 10/10 0B = 0B bounds checks dashboard

Explanation

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

CI Pass/Fail Decision

Passed. All Quality Gates passed.

  • quality_gate_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.

@agent-platform-auto-pr
Copy link
Contributor

Static quality checks

✅ Please find below the results from static quality gates
Comparison made with ancestor f2b5102
📊 Static Quality Gates Dashboard
🔗 SQG Job

31 successful checks with minimal change (< 2 KiB)
Quality gate Current Size
agent_deb_amd64 747.068 MiB
agent_deb_amd64_fips 705.414 MiB
agent_heroku_amd64 311.778 MiB
agent_msi 609.879 MiB
agent_rpm_amd64 747.052 MiB
agent_rpm_amd64_fips 705.397 MiB
agent_rpm_arm64 724.944 MiB
agent_rpm_arm64_fips 686.260 MiB
agent_suse_amd64 747.052 MiB
agent_suse_amd64_fips 705.397 MiB
agent_suse_arm64 724.944 MiB
agent_suse_arm64_fips 686.260 MiB
docker_agent_amd64 807.385 MiB
docker_agent_arm64 810.098 MiB
docker_agent_jmx_amd64 998.300 MiB
docker_agent_jmx_arm64 989.792 MiB
docker_cluster_agent_amd64 203.690 MiB
docker_cluster_agent_arm64 218.164 MiB
docker_cws_instrumentation_amd64 7.142 MiB
docker_cws_instrumentation_arm64 6.689 MiB
docker_dogstatsd_amd64 38.643 MiB
docker_dogstatsd_arm64 36.939 MiB
dogstatsd_deb_amd64 29.863 MiB
dogstatsd_deb_arm64 28.016 MiB
dogstatsd_rpm_amd64 29.863 MiB
dogstatsd_suse_amd64 29.863 MiB
iot_agent_deb_amd64 43.084 MiB
iot_agent_deb_arm64 40.146 MiB
iot_agent_deb_armhf 40.886 MiB
iot_agent_rpm_amd64 43.084 MiB
iot_agent_suse_amd64 43.084 MiB
On-wire sizes (compressed)
Quality gate Change Size (prev → curr → max)
agent_deb_amd64 +7.99 KiB (0.00% increase) 174.465 → 174.473 → 177.700
agent_deb_amd64_fips +9.39 KiB (0.01% increase) 165.376 → 165.385 → 172.230
agent_heroku_amd64 -3.96 KiB (0.01% reduction) 75.175 → 75.171 → 79.970
agent_msi +16.0 KiB (0.01% increase) 138.039 → 138.055 → 146.220
agent_rpm_amd64 +12.16 KiB (0.01% increase) 176.472 → 176.484 → 180.780
agent_rpm_amd64_fips -10.59 KiB (0.01% reduction) 168.035 → 168.025 → 173.370
agent_rpm_arm64 +33.61 KiB (0.02% increase) 159.387 → 159.420 → 161.610
agent_rpm_arm64_fips -33.11 KiB (0.02% reduction) 151.380 → 151.348 → 155.910
agent_suse_amd64 +12.16 KiB (0.01% increase) 176.472 → 176.484 → 180.780
agent_suse_amd64_fips -10.59 KiB (0.01% reduction) 168.035 → 168.025 → 173.370
agent_suse_arm64 +33.61 KiB (0.02% increase) 159.387 → 159.420 → 161.610
agent_suse_arm64_fips -33.11 KiB (0.02% reduction) 151.380 → 151.348 → 155.910
docker_agent_amd64 +2.32 KiB (0.00% increase) 267.161 → 267.163 → 271.240
docker_agent_arm64 neutral 254.465 MiB → 259.800
docker_agent_jmx_amd64 +10.78 KiB (0.00% increase) 335.805 → 335.816 → 339.870
docker_agent_jmx_arm64 neutral 319.093 MiB → 324.390
docker_cluster_agent_amd64 neutral 71.277 MiB → 72.920
docker_cluster_agent_arm64 neutral 66.937 MiB → 68.220
docker_cws_instrumentation_amd64 neutral 2.999 MiB → 3.330
docker_cws_instrumentation_arm64 neutral 2.729 MiB → 3.090
docker_dogstatsd_amd64 neutral 14.955 MiB → 15.820
docker_dogstatsd_arm64 neutral 14.284 MiB → 14.830
dogstatsd_deb_amd64 neutral 7.891 MiB → 8.790
dogstatsd_deb_arm64 neutral 6.773 MiB → 7.710
dogstatsd_rpm_amd64 neutral 7.903 MiB → 8.800
dogstatsd_suse_amd64 neutral 7.903 MiB → 8.800
iot_agent_deb_amd64 neutral 11.357 MiB → 12.040
iot_agent_deb_arm64 neutral 9.669 MiB → 10.450
iot_agent_deb_armhf neutral 9.899 MiB → 10.620
iot_agent_rpm_amd64 neutral 11.374 MiB → 12.060
iot_agent_suse_amd64 neutral 11.374 MiB → 12.060

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

Labels

changelog/no-changelog No changelog entry needed internal Identify a non-fork PR medium review PR review might take time qa/no-code-change No code change in Agent code requiring validation team/agent-build team/ebpf-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants