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

New package static quality gates #33878

Merged
merged 11 commits into from
Feb 13, 2025
Merged

Conversation

Pythyu
Copy link
Contributor

@Pythyu Pythyu commented Feb 10, 2025

What does this PR do?

This PR add deb, rpm and suse package static quality gates for datadog-agent, dogstatsd and iot-agent for arm64 and amd64

Motivation

P2 Static Quality Gates

Describe how you validated your changes

Possible Drawbacks / Trade-offs

Additional Notes

Depends on the following datadog-agent-buildimages PR

@github-actions github-actions bot added long review PR is complex, plan time to review it team/agent-delivery labels Feb 10, 2025
@agent-platform-auto-pr
Copy link
Contributor

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

Gitlab CI Configuration Changes

Modified Jobs

variables (configuration)
  variables:
    AGENT_API_KEY_ORG2: agent-api-key-org-2
    AGENT_APP_KEY_ORG2: agent-ci-app-key-org-2
    AGENT_BINARIES_DIR: bin/agent
    AGENT_GITHUB_APP: agent-github-app
    AGENT_QA_E2E: agent-qa-e2e
    API_KEY_ORG2: ci.datadog-agent.datadog_api_key_org2
    ARTIFACT_DOWNLOAD_ATTEMPTS: 2
    ATLASSIAN_WRITE: atlassian-write
    BTFHUB_ARCHIVE_BRANCH: main
    BUCKET_BRANCH: dev
    CHANGELOG_COMMIT_SHA: ci.datadog-agent.gitlab_changelog_commit_sha
    CHOCOLATEY_API_KEY: ci.datadog-agent.chocolatey_api_key
    CI_IMAGE_BTF_GEN: v54965839-ff6db30b
    CI_IMAGE_BTF_GEN_SUFFIX: ''
    CI_IMAGE_DD_AGENT_TESTING: v54965839-ff6db30b
    CI_IMAGE_DD_AGENT_TESTING_SUFFIX: ''
    CI_IMAGE_DEB_ARM64: v54965839-ff6db30b
    CI_IMAGE_DEB_ARM64_SUFFIX: ''
    CI_IMAGE_DEB_ARMHF: v54965839-ff6db30b
    CI_IMAGE_DEB_ARMHF_SUFFIX: ''
    CI_IMAGE_DEB_X64: v54965839-ff6db30b
    CI_IMAGE_DEB_X64_SUFFIX: ''
    CI_IMAGE_DOCKER_ARM64: v54965839-ff6db30b
    CI_IMAGE_DOCKER_ARM64_SUFFIX: ''
    CI_IMAGE_DOCKER_X64: v54965839-ff6db30b
    CI_IMAGE_DOCKER_X64_SUFFIX: ''
    CI_IMAGE_GITLAB_AGENT_DEPLOY: v54965839-ff6db30b
    CI_IMAGE_GITLAB_AGENT_DEPLOY_SUFFIX: ''
    CI_IMAGE_LINUX_GLIBC_2_17_X64: v54965839-ff6db30b
    CI_IMAGE_LINUX_GLIBC_2_17_X64_SUFFIX: ''
    CI_IMAGE_LINUX_GLIBC_2_23_ARM64: v54965839-ff6db30b
    CI_IMAGE_LINUX_GLIBC_2_23_ARM64_SUFFIX: ''
    CI_IMAGE_RPM_ARM64: v54965839-ff6db30b
    CI_IMAGE_RPM_ARM64_SUFFIX: ''
    CI_IMAGE_RPM_ARMHF: v54965839-ff6db30b
    CI_IMAGE_RPM_ARMHF_SUFFIX: ''
    CI_IMAGE_RPM_X64: v54965839-ff6db30b
    CI_IMAGE_RPM_X64_SUFFIX: ''
    CI_IMAGE_SYSTEM_PROBE_ARM64: v54965839-ff6db30b
    CI_IMAGE_SYSTEM_PROBE_ARM64_SUFFIX: ''
    CI_IMAGE_SYSTEM_PROBE_X64: v54965839-ff6db30b
    CI_IMAGE_SYSTEM_PROBE_X64_SUFFIX: ''
    CI_IMAGE_WIN_1809_X64: v54965839-ff6db30b
    CI_IMAGE_WIN_1809_X64_SUFFIX: ''
    CI_IMAGE_WIN_LTSC2022_X64: v54965839-ff6db30b
    CI_IMAGE_WIN_LTSC2022_X64_SUFFIX: ''
    CLANG_LLVM_VER: 12.0.1
    CLUSTER_AGENT_BINARIES_DIR: bin/datadog-cluster-agent
    CLUSTER_AGENT_CLOUDFOUNDRY_BINARIES_DIR: bin/datadog-cluster-agent-cloudfoundry
    CODECOV: codecov
    CODECOV_TOKEN: ci.datadog-agent.codecov_token
    CWS_INSTRUMENTATION_BINARIES_DIR: bin/cws-instrumentation
    DATADOG_AGENT_ARMBUILDIMAGES: v54965839-ff6db30b
    DATADOG_AGENT_ARMBUILDIMAGES_SUFFIX: ''
    DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v54965839-ff6db30b
    DATADOG_AGENT_BTF_GEN_BUILDIMAGES_SUFFIX: ''
-   DATADOG_AGENT_BUILDIMAGES: v54965839-ff6db30b
+   DATADOG_AGENT_BUILDIMAGES: v55677206-ea52e48c
    DATADOG_AGENT_BUILDIMAGES_SUFFIX: ''
    DATADOG_AGENT_EMBEDDED_PATH: /opt/datadog-agent/embedded
    DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v54965839-ff6db30b
    DATADOG_AGENT_SYSPROBE_BUILDIMAGES_SUFFIX: ''
    DATADOG_AGENT_WINBUILDIMAGES: v54965839-ff6db30b
    DATADOG_AGENT_WINBUILDIMAGES_SUFFIX: ''
    DD_AGENT_TESTING_DIR: $CI_PROJECT_DIR/test/new-e2e/tests
    DD_PKG_VERSION: latest
    DEB_GPG_KEY: ci.datadog-agent.deb_signing_private_key_${DEB_GPG_KEY_ID}
    DEB_GPG_KEY_ID: c0962c7d
    DEB_GPG_KEY_NAME: Datadog, Inc. APT key
    DEB_RPM_TESTING_BUCKET_BRANCH: testing
    DEB_S3_BUCKET: apt.datad0g.com
    DEB_SIGNING_PASSPHRASE: ci.datadog-agent.deb_signing_key_passphrase_${DEB_GPG_KEY_ID}
    DEB_TESTING_S3_BUCKET: apttesting.datad0g.com
    DOCKER_REGISTRY_LOGIN: ci.datadog-agent.docker_hub_login
    DOCKER_REGISTRY_PWD: ci.datadog-agent.docker_hub_pwd
    DOCKER_REGISTRY_RO: dockerhub-readonly
    DOCKER_REGISTRY_URL: docker.io
    DOGSTATSD_BINARIES_DIR: bin/dogstatsd
    E2E_AZURE: e2e-azure
    E2E_GCP: e2e-gcp
    EXECUTOR_JOB_SECTION_ATTEMPTS: 2
    FF_KUBERNETES_HONOR_ENTRYPOINT: true
    FF_SCRIPT_SECTIONS: 1
    FF_TIMESTAMPS: true
    GENERAL_ARTIFACTS_CACHE_BUCKET_URL: https://dd-agent-omnibus.s3.amazonaws.com
    GET_SOURCES_ATTEMPTS: 2
    GITLAB_TOKEN: gitlab-token
    GO_TEST_SKIP_FLAKE: 'true'
    INSTALLER_TESTING_S3_BUCKET: installtesting.datad0g.com
    INSTALL_SCRIPT_API_KEY_ORG2: install-script-api-key-org-2
    INTEGRATION_WHEELS_CACHE_BUCKET: dd-agent-omnibus
    KERNEL_MATRIX_TESTING_ARM_AMI_ID: ami-0b5f838a19d37fc61
    KERNEL_MATRIX_TESTING_X86_AMI_ID: ami-05b3973acf5422348
    KITCHEN_INFRASTRUCTURE_FLAKES_RETRY: 2
    MACOS_GITHUB_APP_1: macos-github-app-one
    MACOS_GITHUB_APP_2: macos-github-app-two
    MACOS_S3_BUCKET: dd-agent-macostesting
    OMNIBUS_BASE_DIR: /omnibus
    OMNIBUS_GIT_CACHE_DIR: /tmp/omnibus-git-cache
    OMNIBUS_PACKAGE_DIR: $CI_PROJECT_DIR/omnibus/pkg/
    OMNIBUS_PACKAGE_DIR_SUSE: $CI_PROJECT_DIR/omnibus/suse/pkg
    PROCESS_S3_BUCKET: datad0g-process-agent
    RELEASE_VERSION_6: nightly
    RELEASE_VERSION_7: nightly-a7
    RESTORE_CACHE_ATTEMPTS: 2
    RPM_GPG_KEY: ci.datadog-agent.rpm_signing_private_key_${RPM_GPG_KEY_ID}
    RPM_GPG_KEY_ID: b01082d3
    RPM_GPG_KEY_NAME: Datadog, Inc. RPM key
    RPM_S3_BUCKET: yum.datad0g.com
    RPM_SIGNING_PASSPHRASE: ci.datadog-agent.rpm_signing_key_passphrase_${RPM_GPG_KEY_ID}
    RPM_TESTING_S3_BUCKET: yumtesting.datad0g.com
    RUN_E2E_TESTS: auto
    RUN_KMT_TESTS: auto
    RUN_UNIT_TESTS: auto
    S3_ARTIFACTS_URI: s3://dd-ci-artefacts-build-stable/$CI_PROJECT_NAME/$CI_PIPELINE_ID
    S3_CP_CMD: aws s3 cp $S3_CP_OPTIONS
    S3_CP_OPTIONS: --no-progress --region us-east-1 --sse AES256
    S3_DD_AGENT_OMNIBUS_BTFS_URI: s3://dd-agent-omnibus/btfs
    S3_DD_AGENT_OMNIBUS_JAVA_URI: s3://dd-agent-omnibus/openjdk
    S3_DD_AGENT_OMNIBUS_LLVM_URI: s3://dd-agent-omnibus/llvm
    S3_DSD6_URI: s3://dsd6-staging
    S3_OMNIBUS_CACHE_BUCKET: dd-ci-datadog-agent-omnibus-cache-build-stable
    S3_OMNIBUS_GIT_CACHE_BUCKET: dd-ci-datadog-agent-omnibus-git-cache-build-stable
    S3_PERMANENT_ARTIFACTS_URI: s3://dd-ci-persistent-artefacts-build-stable/$CI_PROJECT_NAME
    S3_PROJECT_ARTIFACTS_URI: s3://dd-ci-artefacts-build-stable/$CI_PROJECT_NAME
    S3_RELEASE_ARTIFACTS_URI: s3://dd-release-artifacts/$CI_PROJECT_NAME/$CI_PIPELINE_ID
    S3_RELEASE_INSTALLER_ARTIFACTS_URI: s3://dd-release-artifacts/datadog-installer/$CI_PIPELINE_ID
    S3_SBOM_STORAGE_URI: s3://sbom-root-us1-ddbuild-io/$CI_PROJECT_NAME/$CI_PIPELINE_ID
    SLACK_AGENT: slack-agent-ci
    SMP_ACCOUNT: smp
    STATIC_BINARIES_DIR: bin/static
    SYSTEM_PROBE_BINARIES_DIR: bin/system-probe
    USE_S3_CACHING: --omnibus-s3-cache
    VCPKG_BLOB_SAS_URL: ci.datadog-agent-buildimages.vcpkg_blob_sas_url
    WINDOWS_BUILDS_S3_BUCKET: $WIN_S3_BUCKET/builds
    WINDOWS_POWERSHELL_DIR: $CI_PROJECT_DIR/signed_scripts
    WINDOWS_TESTING_S3_BUCKET_A6: pipelines/A6/$CI_PIPELINE_ID
    WINDOWS_TESTING_S3_BUCKET_A7: pipelines/A7/$CI_PIPELINE_ID
    WINGET_PAT: ci.datadog-agent.winget_pat
    WIN_S3_BUCKET: dd-agent-mstesting
static_quality_gates
  static_quality_gates:
    allow_failure: true
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/docker_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
    needs:
    - artifacts: true
      job: agent_deb-x64-a7
+   - artifacts: true
+     job: agent_deb-arm64-a7
+   - artifacts: true
+     job: agent_rpm-x64-a7
+   - artifacts: true
+     job: agent_rpm-arm64-a7
+   - artifacts: true
+     job: agent_suse-x64-a7
+   - artifacts: true
+     job: agent_suse-arm64-a7
    - artifacts: true
      job: docker_build_agent7
    - artifacts: true
      job: docker_build_agent7_arm64
    - artifacts: true
      job: docker_build_agent7_jmx
    - artifacts: true
      job: docker_build_agent7_jmx_arm64
    - artifacts: true
      job: docker_build_cluster_agent_amd64
    - artifacts: true
      job: docker_build_cluster_agent_arm64
+   - artifacts: true
+     job: docker_build_dogstatsd_amd64
+   - artifacts: true
+     job: docker_build_dogstatsd_arm64
+   - artifacts: true
+     job: dogstatsd_deb-x64
+   - artifacts: true
+     job: dogstatsd_deb-arm64
+   - artifacts: true
+     job: dogstatsd_rpm-x64
+   - artifacts: true
+     job: dogstatsd_suse-x64
+   - artifacts: true
+     job: iot_agent_deb-x64
+   - artifacts: true
+     job: iot_agent_deb-arm64
+   - artifacts: true
+     job: iot_agent_rpm-x64
+   - artifacts: true
+     job: iot_agent_rpm-arm64
+   - artifacts: true
+     job: iot_agent_suse-x64
    rules:
    - if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
      when: never
    - if: $CI_COMMIT_TAG != null
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - when: on_success
    script:
    - DOCKER_LOGIN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $DOCKER_REGISTRY_RO user)
      || exit $?
    - $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $DOCKER_REGISTRY_RO token | crane auth
      login --username "$DOCKER_LOGIN" --password-stdin "$DOCKER_REGISTRY_URL"
    - EXIT="${PIPESTATUS[0]}"; if [ $EXIT -ne 0 ]; then echo "Unable to locate credentials
      needs gitlab runner restart"; exit $EXIT; fi
    - DATADOG_API_KEY="$("$CI_PROJECT_DIR"/tools/ci/fetch_secret.sh "$AGENT_API_KEY_ORG2"
      token)" || exit $?; export DATADOG_API_KEY
    - export DD_API_KEY="$DATADOG_API_KEY"
    - GITHUB_KEY_B64=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_GITHUB_APP key_b64)
      || exit $?; export GITHUB_KEY_B64
    - GITHUB_APP_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_GITHUB_APP app_id)
      || exit $?; export GITHUB_APP_ID
    - GITHUB_INSTALLATION_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_GITHUB_APP
      installation_id) || exit $?; export GITHUB_INSTALLATION_ID
    - echo "Using agent GitHub App"
    - inv quality-gates.parse-and-trigger-gates
    stage: functional_test
    tags:
    - arch:amd64

Changes Summary

Removed Modified Added Renamed
0 2 0 0

ℹ️ Diff available in the job log.

@Pythyu Pythyu added changelog/no-changelog qa/no-code-change No code change in Agent code requiring validation labels Feb 10, 2025
@agent-platform-auto-pr
Copy link
Contributor

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

[Fast Unit Tests Report]

On pipeline 55705476 (CI Visibility). The following jobs did not run any unit tests:

Jobs:
  • tests_deb-arm64-py3
  • tests_deb-x64-py3
  • tests_flavor_dogstatsd_deb-x64
  • tests_flavor_heroku_deb-x64
  • tests_flavor_iot_deb-x64
  • tests_rpm-arm64-py3
  • tests_rpm-x64-py3
  • tests_windows-x64

If you modified Go files and expected unit tests to run in these jobs, please double check the job logs. If you think tests should have been executed reach out to #agent-devx-help

@agent-platform-auto-pr
Copy link
Contributor

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

Uncompressed package size comparison

Comparison with ancestor 60a8883df322de46879d7f5ab799058fcc4b57b7

Diff per package
package diff status size ancestor threshold
datadog-agent-arm64-deb 0.00MB 857.38MB 857.38MB 0.50MB
datadog-agent-x86_64-rpm 0.00MB 878.72MB 878.72MB 0.50MB
datadog-agent-x86_64-suse 0.00MB 878.72MB 878.72MB 0.50MB
datadog-agent-aarch64-rpm 0.00MB 867.13MB 867.13MB 0.50MB
datadog-agent-amd64-deb 0.00MB 868.95MB 868.95MB 0.50MB
datadog-dogstatsd-amd64-deb 0.00MB 59.11MB 59.11MB 0.50MB
datadog-heroku-agent-amd64-deb 0.00MB 441.15MB 441.15MB 0.50MB
datadog-iot-agent-amd64-deb 0.00MB 86.39MB 86.39MB 0.50MB
datadog-iot-agent-arm64-deb 0.00MB 82.66MB 82.66MB 0.50MB
datadog-dogstatsd-x86_64-rpm -0.00MB 59.19MB 59.19MB 0.50MB
datadog-dogstatsd-x86_64-suse -0.00MB 59.19MB 59.19MB 0.50MB
datadog-iot-agent-x86_64-rpm -0.00MB 86.46MB 86.46MB 0.50MB
datadog-iot-agent-x86_64-suse -0.00MB 86.46MB 86.46MB 0.50MB
datadog-iot-agent-aarch64-rpm -0.00MB 82.73MB 82.73MB 0.50MB
datadog-dogstatsd-arm64-deb -0.00MB 56.58MB 56.58MB 0.50MB

Decision

✅ Passed

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 10, 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 840.45MiB 858.45MiB 203.57MiB 214.3MiB
static_quality_gate_agent_deb_arm64 829.48MiB 858.45MiB 184.04MiB 214.3MiB
static_quality_gate_agent_rpm_amd64 840.47MiB 858.45MiB 206.42MiB 214.3MiB
static_quality_gate_agent_rpm_arm64 829.38MiB 858.45MiB 185.03MiB 214.3MiB
static_quality_gate_agent_suse_amd64 840.5MiB 858.45MiB 206.42MiB 214.3MiB
static_quality_gate_agent_suse_arm64 829.48MiB 858.45MiB 185.03MiB 214.3MiB
static_quality_gate_dogstatsd_deb_amd64 56.45MiB 858.45MiB 22.48MiB 214.3MiB
static_quality_gate_dogstatsd_deb_arm64 54.03MiB 858.45MiB 20.29MiB 214.3MiB
static_quality_gate_dogstatsd_rpm_amd64 56.45MiB 858.45MiB 22.49MiB 214.3MiB
static_quality_gate_dogstatsd_suse_amd64 56.45MiB 858.45MiB 22.49MiB 214.3MiB
static_quality_gate_iot_agent_deb_amd64 82.46MiB 858.45MiB 31.02MiB 214.3MiB
static_quality_gate_iot_agent_deb_arm64 78.91MiB 858.45MiB 28.02MiB 214.3MiB
static_quality_gate_iot_agent_rpm_amd64 82.46MiB 858.45MiB 31.04MiB 214.3MiB
static_quality_gate_iot_agent_rpm_arm64 78.91MiB 858.45MiB 28.04MiB 214.3MiB
static_quality_gate_iot_agent_suse_amd64 82.46MiB 858.45MiB 31.04MiB 214.3MiB
static_quality_gate_docker_agent_amd64 924.85MiB 942.69MiB 309.87MiB 321.56MiB
static_quality_gate_docker_agent_arm64 937.14MiB 952.69MiB 293.76MiB 351.22MiB
static_quality_gate_docker_agent_jmx_amd64 1.1GiB 1.11GiB 384.94MiB 395.8MiB
static_quality_gate_docker_agent_jmx_arm64 1.1GiB 1.11GiB 364.84MiB 375.5MiB
static_quality_gate_docker_dogstatsd_amd64 47.9MiB 57.88MiB 18.3MiB 28.29MiB
static_quality_gate_docker_dogstatsd_arm64 46.29MiB 56.27MiB 17.07MiB 27.06MiB
static_quality_gate_docker_cluster_agent_amd64 267.76MiB 277.7MiB 107.32MiB 117.28MiB
static_quality_gate_docker_cluster_agent_arm64 283.79MiB 293.73MiB 102.14MiB 112.12MiB

Copy link

cit-pr-commenter bot commented Feb 10, 2025

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 1d811b4-2268-4a35-86cc-a28e6131ae04

Baseline: 60a8883
Comparison: 66ed7d7
Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
tcp_syslog_to_blackhole ingress throughput +0.52 [+0.43, +0.60] 1 Logs
quality_gate_idle_all_features memory utilization +0.46 [+0.40, +0.52] 1 Logs bounds checks dashboard
file_to_blackhole_1000ms_latency egress throughput +0.11 [-0.66, +0.88] 1 Logs
uds_dogstatsd_to_api_cpu % cpu utilization +0.08 [-0.78, +0.94] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.07 [-0.71, +0.86] 1 Logs
file_to_blackhole_0ms_latency egress throughput +0.05 [-0.79, +0.89] 1 Logs
file_to_blackhole_1000ms_latency_linear_load egress throughput +0.04 [-0.43, +0.51] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.01, +0.01] 1 Logs
file_to_blackhole_0ms_latency_http1 egress throughput -0.01 [-0.88, +0.87] 1 Logs
file_to_blackhole_300ms_latency egress throughput -0.01 [-0.65, +0.64] 1 Logs
uds_dogstatsd_to_api ingress throughput -0.01 [-0.29, +0.26] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.01 [-0.65, +0.62] 1 Logs
file_to_blackhole_0ms_latency_http2 egress throughput -0.04 [-0.90, +0.83] 1 Logs
file_tree memory utilization -0.05 [-0.12, +0.02] 1 Logs
quality_gate_idle memory utilization -0.39 [-0.42, -0.35] 1 Logs bounds checks dashboard
quality_gate_logs % cpu utilization -1.41 [-4.42, +1.60] 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_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, 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_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.

@Pythyu Pythyu marked this pull request as ready for review February 12, 2025 06:12
@Pythyu Pythyu requested review from a team as code owners February 12, 2025 06:12
.gitlab-ci.yml Outdated Show resolved Hide resolved
Copy link
Member

@FlorentClarret FlorentClarret left a comment

Choose a reason for hiding this comment

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

👍 Left some questions and comments but overall LGTM, I'll approve once we have the right build image!

tasks/static_quality_gates/lib/gates_lib.py Outdated Show resolved Hide resolved
f"[WARN] gate {gate} doesn't have the {metric_name} metric registered ! skipping metric...",
"orange",
)
)
Copy link
Member

Choose a reason for hiding this comment

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

Looks way better that way!

Comment on lines +34 to +37
- job: docker_build_dogstatsd_amd64
artifacts: true
- job: docker_build_dogstatsd_arm64
artifacts: true
Copy link
Member

Choose a reason for hiding this comment

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

I don't see the static_quality_gates_docker*.py files for these two in the PR, I guess they were already there before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea I forgot to add the dependency on the previous PR. To be fair, the explicit dependency isn't needed because dogstatsd is way smaller than other flavors - even without waiting for it specifically it will be merged before the job start being executed.

@@ -9,6 +9,16 @@ static_quality_gates:
needs:
- job: agent_deb-x64-a7
Copy link
Member

Choose a reason for hiding this comment

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

NIT: artifacts: true` is the default so we could have omitted it everywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch 👍 I'll remove them in my follow-up PR with other quality gates

@Pythyu
Copy link
Contributor Author

Pythyu commented Feb 13, 2025

/merge

@dd-devflow
Copy link

dd-devflow bot commented Feb 13, 2025

View all feedbacks in Devflow UI.
2025-02-13 09:05:33 UTC ℹ️ Start processing command /merge


2025-02-13 09:05:36 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 33m.


2025-02-13 09:32:46 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue dd-mergequeue bot merged commit 9969044 into main Feb 13, 2025
233 checks passed
@dd-mergequeue dd-mergequeue bot deleted the pythyu/package_static_quality_gates branch February 13, 2025 09:32
@github-actions github-actions bot added this to the 7.64.0 milestone Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog long review PR is complex, plan time to review it qa/no-code-change No code change in Agent code requiring validation team/agent-delivery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants