Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fleet) change the install script to avoid the base64 embed #34146

Merged
merged 22 commits into from
Feb 20, 2025

Conversation

arbll
Copy link
Member

@arbll arbll commented Feb 18, 2025

What does this PR do?

This PR simplifies the fleet install script by avoiding the golang base64 embedded binary used to download the installer. The tradeoff is we have to rely on:

  • sha256sum
  • curl or wget

This should be acceptable given that sha256sum is in coreutils since 2008 and all non-minimal distributions ship with either curl or wget.

Motivation

While the base64 embed works, we've discovered with usage it has a few limitations we want to get rid of (long startup time, curl | bash hanging)

Describe how you validated your changes

  • e2e tests
  • manual DJM and agent tests

@arbll arbll added changelog/no-changelog qa/done QA done before merge and regressions are covered by tests team/fleet-automation labels Feb 18, 2025
@github-actions github-actions bot added the medium review PR review might take time label Feb 18, 2025
@github-actions github-actions bot added long review PR is complex, plan time to review it and removed medium review PR review might take time labels Feb 18, 2025
@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 18, 2025

Gitlab CI Configuration Changes

Modified Jobs

.package_oci
  .package_oci:
    artifacts:
      paths:
      - ${OMNIBUS_PACKAGE_DIR}
    before_script:
    - PACKAGE_VERSION="$(inv agent.version --url-safe)-1" || exit $?
    - export INSTALL_DIR=/opt/datadog-packages/${OCI_PRODUCT}/${PACKAGE_VERSION}
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
    rules:
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - when: on_success
    script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache_tools.tar.xz -C $GOPATH/pkg/mod/cache
      || exit 101
    - rm -f modcache_tools.tar.xz
    - rm -f $OMNIBUS_PACKAGE_DIR/*-dbg-*.tar.xz
    - ls -l $OMNIBUS_PACKAGE_DIR
    - python3 -m pip install -r tasks/libs/requirements-github.txt --break-system-packages
    - set +x
    - git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/".insteadOf
      "https://github.com/DataDog/"
    - go env -w GOPRIVATE="github.com/DataDog/*"
    - ${CI_PROJECT_DIR}/tools/ci/retry.sh go install github.com/DataDog/datadog-packages/cmd/datadog-package@latest
    - OUTPUT_DIR="/tmp/oci_output"
    - mkdir -p ${OUTPUT_DIR}
    - ls $OMNIBUS_PACKAGE_DIR
    - "if [ $(ls $OMNIBUS_PACKAGE_DIR/*.oci.tar 2> /dev/null | wc -l) -ge 1 ]; then\n\
      \  echo \"Copying already built images to output dir\"\n  cp $OMNIBUS_PACKAGE_DIR/*.oci.tar\
      \ ${OUTPUT_DIR}\nfi\n"
    - "for ARCH in \"amd64\" \"arm64\"; do\n  INPUT_FILE=\"${OMNIBUS_PACKAGE_DIR}${OCI_PRODUCT}-*${ARCH}.tar.xz\"\
      \n  OUTPUT_FILE=\"$(basename -a -s .xz ${INPUT_FILE})\"\n  MERGED_FILE=$(basename\
      \ -a $OMNIBUS_PACKAGE_DIR/*.tar.xz | head -n 1 | sed \"s/-${ARCH}.tar.xz//\").oci.tar\n\
      \  export MERGED_FILE\n  INPUT_DIR=\"/tmp/input_${ARCH}\"\n  mkdir -p ${INPUT_DIR}\n\
      \  echo \"Generating OCI for $ARCH.\"\n  echo \"Extracting to temporary input\
      \ dir $INPUT_FILE -> $INPUT_DIR\"\n  tar xJf ${INPUT_FILE} -C ${INPUT_DIR}\n \
      \ echo \"Creating OCI layer -> ${OUTPUT_DIR}/${OUTPUT_FILE}\"\n  if [ \"${OCI_PRODUCT}\"\
      \ = \"datadog-agent\" ]; then\n    EXTRA_FLAGS=\"--configs ${INPUT_DIR}/etc/datadog-agent\"\
-     \n  fi\n  datadog-package create \\\n    --version ${PACKAGE_VERSION} \\\n   \
+     \n  fi\n  if [ \"${OCI_PRODUCT}\" = \"datadog-installer\" ]; then\n    EXTRA_FLAGS=\"\
+     --installer ${INPUT_DIR}/${INSTALL_DIR}/bin/installer/installer\"\n  fi\n  datadog-package\
+     \ create \\\n    --version ${PACKAGE_VERSION} \\\n    --package ${OCI_PRODUCT}\
-     \ --package ${OCI_PRODUCT} \\\n    --os linux \\\n    --arch ${ARCH} \\\n    --archive\
?      -------------------------
+     \ \\\n    --os linux \\\n    --arch ${ARCH} \\\n    --archive --archive-path \"\
?                                                                  ++++++++++++++++ ++
-     \ --archive-path \"${OUTPUT_DIR}/${OUTPUT_FILE}\" \\\n    ${EXTRA_FLAGS} \\\n\
-     \    ${INPUT_DIR}/${INSTALL_DIR}/\n  rm -f ${INPUT_FILE}\ndone\n"
+     ${OUTPUT_DIR}/${OUTPUT_FILE}\" \\\n    ${EXTRA_FLAGS} \\\n    ${INPUT_DIR}/${INSTALL_DIR}/\n\
+     \  rm -f ${INPUT_FILE}\ndone\n"
    - echo "Aggregating all layers into one package -> ${MERGED_FILE}"
    - ls -l ${OUTPUT_DIR}/
    - datadog-package merge ${OUTPUT_DIR}/*.tar
    - mv merged.tar ${OMNIBUS_PACKAGE_DIR}/${MERGED_FILE}
    stage: packaging
    tags:
    - arch:amd64
    variables:
      KUBERNETES_CPU_REQUEST: 16
      KUBERNETES_MEMORY_LIMIT: 32Gi
      KUBERNETES_MEMORY_REQUEST: 32Gi
agent_oci
  agent_oci:
    artifacts:
      paths:
      - ${OMNIBUS_PACKAGE_DIR}
    before_script:
    - PACKAGE_VERSION="$(inv agent.version --url-safe)-1" || exit $?
    - export INSTALL_DIR=/opt/datadog-packages/${OCI_PRODUCT}/${PACKAGE_VERSION}
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
    needs:
    - datadog-agent-oci-x64-a7
    - datadog-agent-oci-arm64-a7
    - windows_msi_and_bosh_zip_x64-a7
    - go_tools_deps
    rules:
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - when: on_success
    script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache_tools.tar.xz -C $GOPATH/pkg/mod/cache
      || exit 101
    - rm -f modcache_tools.tar.xz
    - rm -f $OMNIBUS_PACKAGE_DIR/*-dbg-*.tar.xz
    - ls -l $OMNIBUS_PACKAGE_DIR
    - python3 -m pip install -r tasks/libs/requirements-github.txt --break-system-packages
    - set +x
    - git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/".insteadOf
      "https://github.com/DataDog/"
    - go env -w GOPRIVATE="github.com/DataDog/*"
    - ${CI_PROJECT_DIR}/tools/ci/retry.sh go install github.com/DataDog/datadog-packages/cmd/datadog-package@latest
    - OUTPUT_DIR="/tmp/oci_output"
    - mkdir -p ${OUTPUT_DIR}
    - ls $OMNIBUS_PACKAGE_DIR
    - "if [ $(ls $OMNIBUS_PACKAGE_DIR/*.oci.tar 2> /dev/null | wc -l) -ge 1 ]; then\n\
      \  echo \"Copying already built images to output dir\"\n  cp $OMNIBUS_PACKAGE_DIR/*.oci.tar\
      \ ${OUTPUT_DIR}\nfi\n"
    - "for ARCH in \"amd64\" \"arm64\"; do\n  INPUT_FILE=\"${OMNIBUS_PACKAGE_DIR}${OCI_PRODUCT}-*${ARCH}.tar.xz\"\
      \n  OUTPUT_FILE=\"$(basename -a -s .xz ${INPUT_FILE})\"\n  MERGED_FILE=$(basename\
      \ -a $OMNIBUS_PACKAGE_DIR/*.tar.xz | head -n 1 | sed \"s/-${ARCH}.tar.xz//\").oci.tar\n\
      \  export MERGED_FILE\n  INPUT_DIR=\"/tmp/input_${ARCH}\"\n  mkdir -p ${INPUT_DIR}\n\
      \  echo \"Generating OCI for $ARCH.\"\n  echo \"Extracting to temporary input\
      \ dir $INPUT_FILE -> $INPUT_DIR\"\n  tar xJf ${INPUT_FILE} -C ${INPUT_DIR}\n \
      \ echo \"Creating OCI layer -> ${OUTPUT_DIR}/${OUTPUT_FILE}\"\n  if [ \"${OCI_PRODUCT}\"\
      \ = \"datadog-agent\" ]; then\n    EXTRA_FLAGS=\"--configs ${INPUT_DIR}/etc/datadog-agent\"\
-     \n  fi\n  datadog-package create \\\n    --version ${PACKAGE_VERSION} \\\n   \
+     \n  fi\n  if [ \"${OCI_PRODUCT}\" = \"datadog-installer\" ]; then\n    EXTRA_FLAGS=\"\
+     --installer ${INPUT_DIR}/${INSTALL_DIR}/bin/installer/installer\"\n  fi\n  datadog-package\
+     \ create \\\n    --version ${PACKAGE_VERSION} \\\n    --package ${OCI_PRODUCT}\
-     \ --package ${OCI_PRODUCT} \\\n    --os linux \\\n    --arch ${ARCH} \\\n    --archive\
?      -------------------------
+     \ \\\n    --os linux \\\n    --arch ${ARCH} \\\n    --archive --archive-path \"\
?                                                                  ++++++++++++++++ ++
-     \ --archive-path \"${OUTPUT_DIR}/${OUTPUT_FILE}\" \\\n    ${EXTRA_FLAGS} \\\n\
-     \    ${INPUT_DIR}/${INSTALL_DIR}/\n  rm -f ${INPUT_FILE}\ndone\n"
+     ${OUTPUT_DIR}/${OUTPUT_FILE}\" \\\n    ${EXTRA_FLAGS} \\\n    ${INPUT_DIR}/${INSTALL_DIR}/\n\
+     \  rm -f ${INPUT_FILE}\ndone\n"
    - echo "Aggregating all layers into one package -> ${MERGED_FILE}"
    - ls -l ${OUTPUT_DIR}/
    - datadog-package merge ${OUTPUT_DIR}/*.tar
    - mv merged.tar ${OMNIBUS_PACKAGE_DIR}/${MERGED_FILE}
    stage: packaging
    tags:
    - arch:amd64
    variables:
      KUBERNETES_CPU_REQUEST: 16
      KUBERNETES_MEMORY_LIMIT: 32Gi
      KUBERNETES_MEMORY_REQUEST: 32Gi
      OCI_PRODUCT: datadog-agent
installer-install-scripts
  installer-install-scripts:
    artifacts:
      expire_in: 2 weeks
      paths:
      - $OMNIBUS_PACKAGE_DIR
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
    needs:
    - go_mod_tidy_check
    - go_deps
+   - installer-amd64-oci
+   - installer-arm64-oci
    rules:
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - when: on_success
    script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache.tar.xz -C $GOPATH/pkg/mod/cache
      || exit 101
    - rm -f modcache.tar.xz
    - VERSION="$(inv agent.version --url-safe)-1" || exit $?
    - echo "About to build for $VERSION"
    - mkdir -p $OMNIBUS_PACKAGE_DIR
+   - tar -xJOf $OMNIBUS_PACKAGE_DIR/datadog-installer-7*amd64.tar.xz --wildcards "opt/datadog-packages/datadog-installer/*/bin/installer/installer"
+     > installer-amd64
+   - tar -xJOf $OMNIBUS_PACKAGE_DIR/datadog-installer-7*arm64.tar.xz --wildcards "opt/datadog-packages/datadog-installer/*/bin/installer/installer"
+     > installer-arm64
-   - inv -e installer.build-linux-script "default" "$VERSION"
+   - inv -e installer.build-linux-script "default" "$VERSION" "installer-amd64" "installer-arm64"
?                                                             ++++++++++++++++++++++++++++++++++++
+     "install.sh"
-   - inv -e installer.build-linux-script "databricks" "$VERSION"
+   - inv -e installer.build-linux-script "databricks" "$VERSION" "installer-amd64"
?                                                                ++++++++++++++++++
+     "installer-arm64" "install-databricks.sh"
-   - inv -e installer.build-linux-script "emr" "$VERSION"
+   - inv -e installer.build-linux-script "emr" "$VERSION" "installer-amd64" "installer-arm64"
?                                                         ++++++++++++++++++++++++++++++++++++
+     "install-emr.sh"
-   - inv -e installer.build-linux-script "dataproc" "$VERSION"
+   - inv -e installer.build-linux-script "dataproc" "$VERSION" "installer-amd64" "installer-arm64"
?                                                              ++++++++++++++++++++++++++++++++++++
+     "install-dataproc.sh"
    - mv ./bin/installer/install*.sh $OMNIBUS_PACKAGE_DIR/
    - ls -la $OMNIBUS_PACKAGE_DIR
    stage: package_build
    tags:
    - arch:amd64
    variables:
      KUBERNETES_CPU_REQUEST: 8
      KUBERNETES_MEMORY_LIMIT: 16Gi
      KUBERNETES_MEMORY_REQUEST: 16Gi
      RELEASE_VERSION: $RELEASE_VERSION_7
installer_oci
  installer_oci:
    artifacts:
      paths:
      - ${OMNIBUS_PACKAGE_DIR}
    before_script:
    - PACKAGE_VERSION="$(inv agent.version --url-safe)-1" || exit $?
    - export INSTALL_DIR=/opt/datadog-packages/${OCI_PRODUCT}/${PACKAGE_VERSION}
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
    needs:
    - installer-arm64-oci
    - installer-amd64-oci
    - windows-installer-amd64
    - go_tools_deps
    rules:
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - when: on_success
    script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache_tools.tar.xz -C $GOPATH/pkg/mod/cache
      || exit 101
    - rm -f modcache_tools.tar.xz
    - rm -f $OMNIBUS_PACKAGE_DIR/*-dbg-*.tar.xz
    - ls -l $OMNIBUS_PACKAGE_DIR
    - python3 -m pip install -r tasks/libs/requirements-github.txt --break-system-packages
    - set +x
    - git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/".insteadOf
      "https://github.com/DataDog/"
    - go env -w GOPRIVATE="github.com/DataDog/*"
    - ${CI_PROJECT_DIR}/tools/ci/retry.sh go install github.com/DataDog/datadog-packages/cmd/datadog-package@latest
    - OUTPUT_DIR="/tmp/oci_output"
    - mkdir -p ${OUTPUT_DIR}
    - ls $OMNIBUS_PACKAGE_DIR
    - "if [ $(ls $OMNIBUS_PACKAGE_DIR/*.oci.tar 2> /dev/null | wc -l) -ge 1 ]; then\n\
      \  echo \"Copying already built images to output dir\"\n  cp $OMNIBUS_PACKAGE_DIR/*.oci.tar\
      \ ${OUTPUT_DIR}\nfi\n"
    - "for ARCH in \"amd64\" \"arm64\"; do\n  INPUT_FILE=\"${OMNIBUS_PACKAGE_DIR}${OCI_PRODUCT}-*${ARCH}.tar.xz\"\
      \n  OUTPUT_FILE=\"$(basename -a -s .xz ${INPUT_FILE})\"\n  MERGED_FILE=$(basename\
      \ -a $OMNIBUS_PACKAGE_DIR/*.tar.xz | head -n 1 | sed \"s/-${ARCH}.tar.xz//\").oci.tar\n\
      \  export MERGED_FILE\n  INPUT_DIR=\"/tmp/input_${ARCH}\"\n  mkdir -p ${INPUT_DIR}\n\
      \  echo \"Generating OCI for $ARCH.\"\n  echo \"Extracting to temporary input\
      \ dir $INPUT_FILE -> $INPUT_DIR\"\n  tar xJf ${INPUT_FILE} -C ${INPUT_DIR}\n \
      \ echo \"Creating OCI layer -> ${OUTPUT_DIR}/${OUTPUT_FILE}\"\n  if [ \"${OCI_PRODUCT}\"\
      \ = \"datadog-agent\" ]; then\n    EXTRA_FLAGS=\"--configs ${INPUT_DIR}/etc/datadog-agent\"\
-     \n  fi\n  datadog-package create \\\n    --version ${PACKAGE_VERSION} \\\n   \
+     \n  fi\n  if [ \"${OCI_PRODUCT}\" = \"datadog-installer\" ]; then\n    EXTRA_FLAGS=\"\
+     --installer ${INPUT_DIR}/${INSTALL_DIR}/bin/installer/installer\"\n  fi\n  datadog-package\
+     \ create \\\n    --version ${PACKAGE_VERSION} \\\n    --package ${OCI_PRODUCT}\
-     \ --package ${OCI_PRODUCT} \\\n    --os linux \\\n    --arch ${ARCH} \\\n    --archive\
?      -------------------------
+     \ \\\n    --os linux \\\n    --arch ${ARCH} \\\n    --archive --archive-path \"\
?                                                                  ++++++++++++++++ ++
-     \ --archive-path \"${OUTPUT_DIR}/${OUTPUT_FILE}\" \\\n    ${EXTRA_FLAGS} \\\n\
-     \    ${INPUT_DIR}/${INSTALL_DIR}/\n  rm -f ${INPUT_FILE}\ndone\n"
+     ${OUTPUT_DIR}/${OUTPUT_FILE}\" \\\n    ${EXTRA_FLAGS} \\\n    ${INPUT_DIR}/${INSTALL_DIR}/\n\
+     \  rm -f ${INPUT_FILE}\ndone\n"
    - echo "Aggregating all layers into one package -> ${MERGED_FILE}"
    - ls -l ${OUTPUT_DIR}/
    - datadog-package merge ${OUTPUT_DIR}/*.tar
    - mv merged.tar ${OMNIBUS_PACKAGE_DIR}/${MERGED_FILE}
    stage: packaging
    tags:
    - arch:amd64
    variables:
      KUBERNETES_CPU_REQUEST: 16
      KUBERNETES_MEMORY_LIMIT: 32Gi
      KUBERNETES_MEMORY_REQUEST: 32Gi
      OCI_PRODUCT: datadog-installer

Changes Summary

Removed Modified Added Renamed
0 4 0 0

ℹ️ Diff available in the job log.

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 18, 2025

Uncompressed package size comparison

Comparison with ancestor 42bd2668afbf1c35a37b64af40446c742f8cdb42

Diff per package
package diff status size ancestor threshold
datadog-agent-amd64-deb 0.00MB 866.63MB 866.63MB 0.50MB
datadog-agent-arm64-deb 0.00MB 855.10MB 855.10MB 0.50MB
datadog-agent-x86_64-rpm 0.00MB 876.40MB 876.39MB 0.50MB
datadog-agent-x86_64-suse 0.00MB 876.40MB 876.39MB 0.50MB
datadog-agent-aarch64-rpm 0.00MB 864.85MB 864.85MB 0.50MB
datadog-dogstatsd-amd64-deb 0.00MB 41.36MB 41.36MB 0.50MB
datadog-dogstatsd-x86_64-rpm 0.00MB 41.44MB 41.44MB 0.50MB
datadog-dogstatsd-x86_64-suse 0.00MB 41.44MB 41.44MB 0.50MB
datadog-dogstatsd-arm64-deb 0.00MB 39.62MB 39.62MB 0.50MB
datadog-heroku-agent-amd64-deb 0.00MB 443.30MB 443.30MB 0.50MB
datadog-iot-agent-amd64-deb 0.00MB 61.80MB 61.80MB 0.50MB
datadog-iot-agent-x86_64-rpm 0.00MB 61.87MB 61.87MB 0.50MB
datadog-iot-agent-x86_64-suse 0.00MB 61.87MB 61.87MB 0.50MB
datadog-iot-agent-arm64-deb 0.00MB 59.05MB 59.05MB 0.50MB
datadog-iot-agent-aarch64-rpm 0.00MB 59.12MB 59.12MB 0.50MB

Decision

✅ Passed

Copy link

cit-pr-commenter bot commented Feb 18, 2025

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 9c4ffa42-a1a6-4a4a-b4aa-3b9e5a7a76da

Baseline: 42bd266
Comparison: 0334afb
Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
quality_gate_logs % cpu utilization +4.49 [+1.36, +7.62] 1 Logs
uds_dogstatsd_to_api_cpu % cpu utilization +0.57 [-0.35, +1.50] 1 Logs
quality_gate_idle memory utilization +0.40 [+0.37, +0.44] 1 Logs bounds checks dashboard
file_to_blackhole_1000ms_latency_linear_load egress throughput +0.11 [-0.35, +0.57] 1 Logs
file_to_blackhole_0ms_latency_http2 egress throughput +0.08 [-0.84, +1.00] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.07 [-0.72, +0.86] 1 Logs
file_to_blackhole_300ms_latency egress throughput +0.01 [-0.62, +0.65] 1 Logs
file_to_blackhole_0ms_latency_http1 egress throughput +0.01 [-0.94, +0.96] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.01 [-0.29, +0.31] 1 Logs
file_to_blackhole_0ms_latency egress throughput +0.01 [-0.93, +0.95] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.01, +0.01] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.01 [-0.73, +0.70] 1 Logs
file_tree memory utilization -0.07 [-0.12, -0.01] 1 Logs
file_to_blackhole_1000ms_latency egress throughput -0.44 [-1.22, +0.34] 1 Logs
quality_gate_idle_all_features memory utilization -0.67 [-0.73, -0.62] 1 Logs bounds checks dashboard
tcp_syslog_to_blackhole ingress throughput -2.05 [-2.12, -1.99] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
file_to_blackhole_0ms_latency lost_bytes 10/10
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_0ms_latency_http1 lost_bytes 10/10
file_to_blackhole_0ms_latency_http1 memory_usage 10/10
file_to_blackhole_0ms_latency_http2 lost_bytes 10/10
file_to_blackhole_0ms_latency_http2 memory_usage 10/10
file_to_blackhole_1000ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency_linear_load memory_usage 10/10
file_to_blackhole_100ms_latency lost_bytes 10/10
file_to_blackhole_100ms_latency memory_usage 10/10
file_to_blackhole_300ms_latency lost_bytes 10/10
file_to_blackhole_300ms_latency memory_usage 10/10
file_to_blackhole_500ms_latency lost_bytes 10/10
file_to_blackhole_500ms_latency memory_usage 10/10
quality_gate_idle intake_connections 10/10 bounds checks dashboard
quality_gate_idle memory_usage 10/10 bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 bounds checks dashboard
quality_gate_logs intake_connections 10/10
quality_gate_logs lost_bytes 10/10
quality_gate_logs memory_usage 10/10

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_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, 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_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.

@github-actions github-actions bot added medium review PR review might take time and removed long review PR is complex, plan time to review it labels Feb 19, 2025
@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 19, 2025

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv aws.create-vm --pipeline-id=56443515 --os-family=ubuntu

Note: This applies to commit 0334afb

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 19, 2025

Static quality checks ✅

Please find below the results from static quality gates

Successful checks

Info

Result Quality gate On disk size On disk size limit On wire size On wire size limit
static_quality_gate_agent_deb_amd64 838.44MiB 847.49MiB 202.31MiB 212.83MiB
static_quality_gate_agent_deb_arm64 827.38MiB 836.66MiB 182.36MiB 192.17MiB
static_quality_gate_agent_rpm_amd64 838.42MiB 858.45MiB 205.78MiB 214.3MiB
static_quality_gate_agent_rpm_arm64 827.39MiB 836.66MiB 184.26MiB 194.46MiB
static_quality_gate_agent_suse_amd64 838.42MiB 858.45MiB 205.78MiB 214.3MiB
static_quality_gate_agent_suse_arm64 827.41MiB 836.66MiB 184.26MiB 194.46MiB
static_quality_gate_dogstatsd_deb_amd64 39.52MiB 49.7MiB 10.54MiB 20.6MiB
static_quality_gate_dogstatsd_deb_arm64 37.86MiB 48.1MiB 9.12MiB 19.1MiB
static_quality_gate_dogstatsd_rpm_amd64 39.52MiB 49.7MiB 10.55MiB 20.6MiB
static_quality_gate_dogstatsd_suse_amd64 39.52MiB 49.7MiB 10.55MiB 20.6MiB
static_quality_gate_iot_agent_deb_amd64 59.01MiB 69.0MiB 14.83MiB 24.8MiB
static_quality_gate_iot_agent_deb_arm64 56.39MiB 66.4MiB 12.8MiB 22.8MiB
static_quality_gate_iot_agent_rpm_amd64 59.01MiB 69.0MiB 14.85MiB 24.8MiB
static_quality_gate_iot_agent_rpm_arm64 56.39MiB 66.4MiB 12.81MiB 22.8MiB
static_quality_gate_iot_agent_suse_amd64 59.01MiB 69.0MiB 14.85MiB 24.8MiB
static_quality_gate_docker_agent_amd64 922.64MiB 931.7MiB 308.51MiB 318.67MiB
static_quality_gate_docker_agent_arm64 934.97MiB 944.08MiB 292.52MiB 303.0MiB
static_quality_gate_docker_agent_jmx_amd64 1.09GiB 1.1GiB 383.63MiB 393.75MiB
static_quality_gate_docker_agent_jmx_arm64 1.1GiB 1.1GiB 363.61MiB 373.71MiB
static_quality_gate_docker_dogstatsd_amd64 47.67MiB 57.88MiB 18.25MiB 28.29MiB
static_quality_gate_docker_dogstatsd_arm64 46.05MiB 56.27MiB 17.01MiB 27.06MiB
static_quality_gate_docker_cluster_agent_amd64 264.78MiB 277.7MiB 106.28MiB 117.28MiB
static_quality_gate_docker_cluster_agent_arm64 280.82MiB 293.73MiB 101.12MiB 112.12MiB

@arbll arbll marked this pull request as ready for review February 20, 2025 10:51
@arbll arbll requested review from a team as code owners February 20, 2025 10:51
@DataDog DataDog deleted a comment from agent-platform-auto-pr bot Feb 20, 2025
@arbll
Copy link
Member Author

arbll commented Feb 20, 2025

/merge

@dd-devflow
Copy link

dd-devflow bot commented Feb 20, 2025

View all feedbacks in Devflow UI.
2025-02-20 15:57:48 UTC ℹ️ Start processing command /merge


2025-02-20 15:57:52 UTC ℹ️ MergeQueue: waiting for PR to be ready

This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2025-02-20 16:47:08 UTC ℹ️ MergeQueue: merge request added to the queue

The median merge time in main is 34m.


2025-02-20 17:15:37 UTC ℹ️ MergeQueue: This merge request was merged

@agent-platform-auto-pr
Copy link
Contributor

Static quality checks ❌

Please find below the results from static quality gates

Error

Result Quality gate On disk size On disk size limit On wire size On wire size limit
static_quality_gate_agent_rpm_arm64 DataNotFound 836.66MiB DataNotFound 194.46MiB
Gate failure full details
Quality gate Error type Error message
static_quality_gate_agent_rpm_arm64 StackTrace Traceback (most recent call last):
File "/go/src/github.com/DataDog/datadog-agent/tasks/quality_gates.py", line 121, in parse_and_trigger_gates
gate_mod.entrypoint(**gate_inputs)
File "/go/src/github.com/DataDog/datadog-agent/tasks/static_quality_gates/static_quality_gate_agent_rpm_arm64.py", line 5, in entrypoint
generic_package_agent_quality_gate(
File "/go/src/github.com/DataDog/datadog-agent/tasks/static_quality_gates/lib/package_agent_lib.py", line 69, in generic_package_agent_quality_gate
package_on_wire_size, package_on_disk_size = calculate_package_size(
^^^^^^^^^^^^^^^^^^^^^^^
File "/go/src/github.com/DataDog/datadog-agent/tasks/static_quality_gates/lib/package_agent_lib.py", line 10, in calculate_package_size
extract_package(ctx=ctx, package_os=package_os, package_path=package_path, extract_dir=extract_dir)
File "/go/src/github.com/DataDog/datadog-agent/tasks/libs/package/size.py", line 72, in extract_package
return extract_rpm_package(ctx, package_path, extract_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/go/src/github.com/DataDog/datadog-agent/tasks/libs/package/size.py", line 65, in extract_rpm_package
ctx.run(f"rpm2cpio {package_path}
Successful checks

Info

Result Quality gate On disk size On disk size limit On wire size On wire size limit
static_quality_gate_agent_deb_amd64 838.26MiB 847.49MiB 202.35MiB 212.83MiB
static_quality_gate_agent_deb_arm64 827.26MiB 836.66MiB 181.94MiB 192.17MiB
static_quality_gate_agent_rpm_amd64 838.27MiB 858.45MiB 205.75MiB 214.3MiB
static_quality_gate_agent_suse_amd64 838.25MiB 858.45MiB 205.75MiB 214.3MiB
static_quality_gate_agent_suse_arm64 827.26MiB 836.66MiB 184.26MiB 194.46MiB
static_quality_gate_dogstatsd_deb_amd64 39.52MiB 49.7MiB 10.54MiB 20.6MiB
static_quality_gate_dogstatsd_deb_arm64 37.86MiB 48.1MiB 9.12MiB 19.1MiB
static_quality_gate_dogstatsd_rpm_amd64 39.52MiB 49.7MiB 10.55MiB 20.6MiB
static_quality_gate_dogstatsd_suse_amd64 39.52MiB 49.7MiB 10.55MiB 20.6MiB
static_quality_gate_iot_agent_deb_amd64 59.01MiB 69.0MiB 14.83MiB 24.8MiB
static_quality_gate_iot_agent_deb_arm64 56.39MiB 66.4MiB 12.79MiB 22.8MiB
static_quality_gate_iot_agent_rpm_amd64 59.01MiB 69.0MiB 14.85MiB 24.8MiB
static_quality_gate_iot_agent_rpm_arm64 56.39MiB 66.4MiB 12.81MiB 22.8MiB
static_quality_gate_iot_agent_suse_amd64 59.01MiB 69.0MiB 14.85MiB 24.8MiB
static_quality_gate_docker_agent_amd64 922.64MiB 931.7MiB 308.51MiB 318.67MiB
static_quality_gate_docker_agent_arm64 934.97MiB 944.08MiB 292.52MiB 303.0MiB
static_quality_gate_docker_agent_jmx_amd64 1.09GiB 1.1GiB 383.63MiB 393.75MiB
static_quality_gate_docker_agent_jmx_arm64 1.1GiB 1.1GiB 363.61MiB 373.71MiB
static_quality_gate_docker_dogstatsd_amd64 47.67MiB 57.88MiB 18.25MiB 28.29MiB
static_quality_gate_docker_dogstatsd_arm64 46.05MiB 56.27MiB 17.01MiB 27.06MiB
static_quality_gate_docker_cluster_agent_amd64 264.78MiB 277.7MiB 106.28MiB 117.28MiB
static_quality_gate_docker_cluster_agent_arm64 280.82MiB 293.73MiB 101.12MiB 112.12MiB

@dd-mergequeue dd-mergequeue bot merged commit d27ed7d into main Feb 20, 2025
253 of 256 checks passed
@dd-mergequeue dd-mergequeue bot deleted the arbll/installer-script-v2 branch February 20, 2025 17:15
@github-actions github-actions bot added this to the 7.64.0 milestone Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog medium review PR review might take time qa/done QA done before merge and regressions are covered by tests team/fleet-automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants