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

Test build image python 3.12.6 updates #29963

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Kyle-Neale
Copy link
Contributor

What does this PR do?

Motivation

Describe how to test/QA your changes

Possible Drawbacks / Trade-offs

Additional Notes

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Oct 8, 2024

Gitlab CI Configuration Changes

Modified Jobs

variables (configuration)
  variables:
    AGENT_BINARIES_DIR: bin/agent
    AGENT_GITHUB_APP: agent-github-app
    AGENT_GITHUB_APP_ID: ci.datadog-agent.platform-github-app-id
    AGENT_GITHUB_INSTALLATION_ID: ci.datadog-agent.platform-github-app-installation-id
    AGENT_GITHUB_KEY: ci.datadog-agent.platform-github-app-key
    AGENT_QA_PROFILE: ci.datadog-agent.agent-qa-profile
    API_KEY_DDDEV: ci.datadog-agent.datadog_api_key
    API_KEY_ORG2: ci.datadog-agent.datadog_api_key_org2
    APP_KEY_ORG2: ci.datadog-agent.datadog_app_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
    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_TOKEN: ci.datadog-agent.codecov_token
    CWS_INSTRUMENTATION_BINARIES_DIR: bin/cws-instrumentation
-   DATADOG_AGENT_ARMBUILDIMAGES: v45979046-89a73a40
?                                   ^  -  ^^^^^^^^ -
+   DATADOG_AGENT_ARMBUILDIMAGES: v46323913-1aa70414
?                                   ^^^^ ++++++   ^
-   DATADOG_AGENT_ARMBUILDIMAGES_SUFFIX: ''
?                                        ^^
+   DATADOG_AGENT_ARMBUILDIMAGES_SUFFIX: _test_only
?                                        ^^^^^^^^^^
-   DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v45979046-89a73a40
?                                        ^  -  ^^^^^^^^ -
+   DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v46323913-1aa70414
?                                        ^^^^ ++++++   ^
-   DATADOG_AGENT_BTF_GEN_BUILDIMAGES_SUFFIX: ''
?                                             ^^
+   DATADOG_AGENT_BTF_GEN_BUILDIMAGES_SUFFIX: _test_only
?                                             ^^^^^^^^^^
-   DATADOG_AGENT_BUILDIMAGES: v45979046-89a73a40
?                                ^  -  ^^^^^^^^ -
+   DATADOG_AGENT_BUILDIMAGES: v46323913-1aa70414
?                                ^^^^ ++++++   ^
-   DATADOG_AGENT_BUILDIMAGES_SUFFIX: ''
?                                     ^^
+   DATADOG_AGENT_BUILDIMAGES_SUFFIX: _test_only
?                                     ^^^^^^^^^^
    DATADOG_AGENT_EMBEDDED_PATH: /opt/datadog-agent/embedded
-   DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v45979046-89a73a40
?                                         ^  -  ^^^^^^^^ -
+   DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v46323913-1aa70414
?                                         ^^^^ ++++++   ^
-   DATADOG_AGENT_SYSPROBE_BUILDIMAGES_SUFFIX: ''
?                                              ^^
+   DATADOG_AGENT_SYSPROBE_BUILDIMAGES_SUFFIX: _test_only
?                                              ^^^^^^^^^^
-   DATADOG_AGENT_WINBUILDIMAGES: v45979046-89a73a40
?                                   ^  -  ^^^^^^^^ -
+   DATADOG_AGENT_WINBUILDIMAGES: v46323913-1aa70414
?                                   ^^^^ ++++++   ^
-   DATADOG_AGENT_WINBUILDIMAGES_SUFFIX: ''
?                                        ^^
+   DATADOG_AGENT_WINBUILDIMAGES_SUFFIX: _test_only
?                                        ^^^^^^^^^^
    DD_AGENT_TESTING_DIR: $CI_PROJECT_DIR/test/kitchen
    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_TESTS_API_KEY: ci.datadog-agent.e2e_tests_api_key
    E2E_TESTS_APP_KEY: ci.datadog-agent.e2e_tests_app_key
    E2E_TESTS_AZURE_CLIENT_ID: ci.datadog-agent.e2e_tests_azure_client_id
    E2E_TESTS_AZURE_CLIENT_SECRET: ci.datadog-agent.e2e_tests_azure_client_secret
    E2E_TESTS_AZURE_SUBSCRIPTION_ID: ci.datadog-agent.e2e_tests_azure_subscription_id
    E2E_TESTS_AZURE_TENANT_ID: ci.datadog-agent.e2e_tests_azure_tenant_id
    E2E_TESTS_GCP_CREDENTIALS: ci.datadog-agent.e2e_tests_gcp_credentials
    E2E_TESTS_RC_KEY: ci.datadog-agent.e2e_tests_rc_key
    EXECUTOR_JOB_SECTION_ATTEMPTS: 2
    FF_KUBERNETES_HONOR_ENTRYPOINT: true
    FF_SCRIPT_SECTIONS: 1
    GENERAL_ARTIFACTS_CACHE_BUCKET_URL: https://dd-agent-omnibus.s3.amazonaws.com
    GET_SOURCES_ATTEMPTS: 2
    GITHUB_PR_COMMENTER_APP_KEY: pr-commenter.github_app_key
    GITHUB_PR_COMMENTER_INSTALLATION_ID: pr-commenter.github_installation_id
    GITHUB_PR_COMMENTER_INTEGRATION_ID: pr-commenter.github_integration_id
    GITLAB_FULL_API_TOKEN: ci.datadog-agent.gitlab_full_api_token
    GITLAB_READ_API_TOKEN: ci.datadog-agent.gitlab_read_api_token
    GITLAB_SCHEDULER_TOKEN: ci.datadog-agent.gitlab_pipelines_scheduler_token
    GO_TEST_SKIP_FLAKE: 'true'
    INSTALL_SCRIPT_API_KEY: ci.agent-linux-install-script.datadog_api_key_2
    INTEGRATION_WHEELS_CACHE_BUCKET: dd-agent-omnibus
    JIRA_READ_API_TOKEN: ci.datadog-agent.jira_read_api_token
    KERNEL_MATRIX_TESTING_ARM_AMI_ID: ami-02fbd245475d6a63d
    KERNEL_MATRIX_TESTING_X86_AMI_ID: ami-013ea43cbe85107c0
    KITCHEN_AZURE_CLIENT_ID: ci.datadog-agent.azure_kitchen_client_id
    KITCHEN_AZURE_CLIENT_SECRET: ci.datadog-agent.azure_kitchen_client_secret
    KITCHEN_AZURE_SUBSCRIPTION_ID: ci.datadog-agent.azure_kitchen_subscription_id
    KITCHEN_AZURE_TENANT_ID: ci.datadog-agent.azure_kitchen_tenant_id
    KITCHEN_EC2_SSH_KEY: ci.datadog-agent.aws_ec2_kitchen_ssh_key
    KITCHEN_INFRASTRUCTURE_FLAKES_RETRY: 2
    MACOS_GITHUB_APP_1: macos-github-app-one
    MACOS_GITHUB_APP_2: macos-github-app-two
    MACOS_GITHUB_APP_ID: ci.datadog-agent.macos_github_app_id
    MACOS_GITHUB_APP_ID_2: ci.datadog-agent.macos_github_app_id_2
    MACOS_GITHUB_INSTALLATION_ID: ci.datadog-agent.macos_github_installation_id
    MACOS_GITHUB_INSTALLATION_ID_2: ci.datadog-agent.macos_github_installation_id_2
    MACOS_GITHUB_KEY: ci.datadog-agent.macos_github_key_b64
    MACOS_GITHUB_KEY_2: ci.datadog-agent.macos_github_key_b64_2
    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_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_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_CI_TOKEN: ci.datadog-agent.slack_agent_ci_token
    SMP_ACCOUNT_ID: ci.datadog-agent.single-machine-performance-account-id
    SMP_AGENT_TEAM_ID: ci.datadog-agent.single-machine-performance-agent-team-id
    SMP_API: ci.datadog-agent.single-machine-performance-api
    SMP_BOT_ACCESS_KEY: ci.datadog-agent.single-machine-performance-bot-access-key
    SMP_BOT_ACCESS_KEY_ID: ci.datadog-agent.single-machine-performance-bot-access-key-id
    SSH_KEY: ci.datadog-agent.ssh_key
    SSH_KEY_RSA: ci.datadog-agent.ssh_key_rsa
    SSH_PUBLIC_KEY_RSA: ci.datadog-agent.ssh_public_key_rsa
    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
.lint_macos_gitlab
  .lint_macos_gitlab:
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      echo "Don''t forget to regularly delete unused versions. Here are the installed
      versions and their memory usage on the runner:"
  
      du -sh $HOME/.gimme/versions/*
  
      '
    - "PYTHON_REPO_VERSION=$(cat .python-version)\nPYTHON_VERSION=$(python3 --version\
-     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\nif [ \"$PYTHON_REPO_VERSION\" !=\
-     \ \"$PYTHON_VERSION\" ]; then\n  echo \"Python version $PYTHON_VERSION is different\
-     \ from $PYTHON_REPO_VERSION in .python-version. Cleaning the environment.\"\n\
-     \  pyenv uninstall -f datadog-agent\n  echo \"Installing Python $PYTHON_REPO_VERSION...\"\
-     \n  pyenv virtualenv 3.11.8 datadog-agent\n  pyenv activate datadog-agent\nelse\n\
-     \  echo \"Python current version $PYTHON_VERSION is the same as .python-version.\
+     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\necho \"Python version in .python-version:\
+     \ $PYTHON_REPO_VERSION\"\necho \"Python current version: $PYTHON_VERSION\"\nif\
+     \ [ \"$PYTHON_REPO_VERSION\" != \"$PYTHON_VERSION\" ]; then\n  echo \"Python version\
+     \ $PYTHON_VERSION is different from $PYTHON_REPO_VERSION in .python-version. Cleaning\
+     \ the environment.\"\n  pyenv uninstall -f datadog-agent\n  echo \"Installing\
+     \ Python $PYTHON_REPO_VERSION...\"\n  pyenv virtualenv 3.12.6 datadog-agent\n\
+     \  pyenv activate datadog-agent\nelse\n  echo \"Python current version $PYTHON_VERSION\
-     \ Keeping the existing environment.\"\nfi\n"
+     \ is the same as .python-version. Keeping the existing environment.\"\nfi\n"
?      ++++++++++++++++++++++++++++++++
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
    - pyenv rehash
    - inv -e rtloader.make --python-runtimes $PYTHON_RUNTIMES
    - inv -e rtloader.install
    - inv -e install-tools
    needs:
    - go_deps
    - go_tools_deps
    script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache.tar.xz
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache_tools.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache_tools.tar.xz
    - inv -e linter.go --cpus 12 --timeout 60
    stage: lint
    variables:
      PYTHON_RUNTIMES: '3'
.macos_gitlab
  .macos_gitlab:
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      echo "Don''t forget to regularly delete unused versions. Here are the installed
      versions and their memory usage on the runner:"
  
      du -sh $HOME/.gimme/versions/*
  
      '
    - "PYTHON_REPO_VERSION=$(cat .python-version)\nPYTHON_VERSION=$(python3 --version\
-     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\nif [ \"$PYTHON_REPO_VERSION\" !=\
-     \ \"$PYTHON_VERSION\" ]; then\n  echo \"Python version $PYTHON_VERSION is different\
-     \ from $PYTHON_REPO_VERSION in .python-version. Cleaning the environment.\"\n\
-     \  pyenv uninstall -f datadog-agent\n  echo \"Installing Python $PYTHON_REPO_VERSION...\"\
-     \n  pyenv virtualenv 3.11.8 datadog-agent\n  pyenv activate datadog-agent\nelse\n\
-     \  echo \"Python current version $PYTHON_VERSION is the same as .python-version.\
+     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\necho \"Python version in .python-version:\
+     \ $PYTHON_REPO_VERSION\"\necho \"Python current version: $PYTHON_VERSION\"\nif\
+     \ [ \"$PYTHON_REPO_VERSION\" != \"$PYTHON_VERSION\" ]; then\n  echo \"Python version\
+     \ $PYTHON_VERSION is different from $PYTHON_REPO_VERSION in .python-version. Cleaning\
+     \ the environment.\"\n  pyenv uninstall -f datadog-agent\n  echo \"Installing\
+     \ Python $PYTHON_REPO_VERSION...\"\n  pyenv virtualenv 3.12.6 datadog-agent\n\
+     \  pyenv activate datadog-agent\nelse\n  echo \"Python current version $PYTHON_VERSION\
-     \ Keeping the existing environment.\"\nfi\n"
+     \ is the same as .python-version. Keeping the existing environment.\"\nfi\n"
?      ++++++++++++++++++++++++++++++++
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
    - pyenv rehash
    - inv -e rtloader.make --python-runtimes $PYTHON_RUNTIMES
    - inv -e rtloader.install
    - inv -e install-tools
    variables:
      PYTHON_RUNTIMES: '3'
.tests_macos_gitlab
  .tests_macos_gitlab:
    allow_failure: true
    artifacts:
      expire_in: 2 weeks
      paths:
      - $TEST_OUTPUT_FILE
      - junit-*.tgz
      reports:
        annotations:
        - $EXTERNAL_LINKS_PATH
        junit: '**/junit-out-*.xml'
      when: always
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      echo "Don''t forget to regularly delete unused versions. Here are the installed
      versions and their memory usage on the runner:"
  
      du -sh $HOME/.gimme/versions/*
  
      '
    - "PYTHON_REPO_VERSION=$(cat .python-version)\nPYTHON_VERSION=$(python3 --version\
-     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\nif [ \"$PYTHON_REPO_VERSION\" !=\
-     \ \"$PYTHON_VERSION\" ]; then\n  echo \"Python version $PYTHON_VERSION is different\
-     \ from $PYTHON_REPO_VERSION in .python-version. Cleaning the environment.\"\n\
-     \  pyenv uninstall -f datadog-agent\n  echo \"Installing Python $PYTHON_REPO_VERSION...\"\
-     \n  pyenv virtualenv 3.11.8 datadog-agent\n  pyenv activate datadog-agent\nelse\n\
-     \  echo \"Python current version $PYTHON_VERSION is the same as .python-version.\
+     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\necho \"Python version in .python-version:\
+     \ $PYTHON_REPO_VERSION\"\necho \"Python current version: $PYTHON_VERSION\"\nif\
+     \ [ \"$PYTHON_REPO_VERSION\" != \"$PYTHON_VERSION\" ]; then\n  echo \"Python version\
+     \ $PYTHON_VERSION is different from $PYTHON_REPO_VERSION in .python-version. Cleaning\
+     \ the environment.\"\n  pyenv uninstall -f datadog-agent\n  echo \"Installing\
+     \ Python $PYTHON_REPO_VERSION...\"\n  pyenv virtualenv 3.12.6 datadog-agent\n\
+     \  pyenv activate datadog-agent\nelse\n  echo \"Python current version $PYTHON_VERSION\
-     \ Keeping the existing environment.\"\nfi\n"
+     \ is the same as .python-version. Keeping the existing environment.\"\nfi\n"
?      ++++++++++++++++++++++++++++++++
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
    - pyenv rehash
    - inv -e rtloader.make --python-runtimes $PYTHON_RUNTIMES
    - inv -e rtloader.install
    - inv -e install-tools
    needs:
    - go_deps
    - 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.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache.tar.xz
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache_tools.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache_tools.tar.xz
    - inv -e gitlab.generate-ci-visibility-links --output=$EXTERNAL_LINKS_PATH
    - FAST_TESTS_FLAG=""
    - if [[ "$FAST_TESTS" == "true" ]]; then FAST_TESTS_FLAG="--only-impacted-packages";
      fi
    - inv -e test --rerun-fails=2 --python-runtimes $PYTHON_RUNTIMES --race --profile
      --cpus 12 --save-result-json $TEST_OUTPUT_FILE --junit-tar "junit-${CI_JOB_NAME}.tgz"
      $FAST_TESTS_FLAG --test-washer
    - inv -e invoke-unit-tests
    stage: source_test
    variables:
      PYTHON_RUNTIMES: '3'
      TEST_OUTPUT_FILE: test_output.json
lint_macos_gitlab_amd64
  lint_macos_gitlab_amd64:
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      echo "Don''t forget to regularly delete unused versions. Here are the installed
      versions and their memory usage on the runner:"
  
      du -sh $HOME/.gimme/versions/*
  
      '
    - "PYTHON_REPO_VERSION=$(cat .python-version)\nPYTHON_VERSION=$(python3 --version\
-     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\nif [ \"$PYTHON_REPO_VERSION\" !=\
-     \ \"$PYTHON_VERSION\" ]; then\n  echo \"Python version $PYTHON_VERSION is different\
-     \ from $PYTHON_REPO_VERSION in .python-version. Cleaning the environment.\"\n\
-     \  pyenv uninstall -f datadog-agent\n  echo \"Installing Python $PYTHON_REPO_VERSION...\"\
-     \n  pyenv virtualenv 3.11.8 datadog-agent\n  pyenv activate datadog-agent\nelse\n\
-     \  echo \"Python current version $PYTHON_VERSION is the same as .python-version.\
+     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\necho \"Python version in .python-version:\
+     \ $PYTHON_REPO_VERSION\"\necho \"Python current version: $PYTHON_VERSION\"\nif\
+     \ [ \"$PYTHON_REPO_VERSION\" != \"$PYTHON_VERSION\" ]; then\n  echo \"Python version\
+     \ $PYTHON_VERSION is different from $PYTHON_REPO_VERSION in .python-version. Cleaning\
+     \ the environment.\"\n  pyenv uninstall -f datadog-agent\n  echo \"Installing\
+     \ Python $PYTHON_REPO_VERSION...\"\n  pyenv virtualenv 3.12.6 datadog-agent\n\
+     \  pyenv activate datadog-agent\nelse\n  echo \"Python current version $PYTHON_VERSION\
-     \ Keeping the existing environment.\"\nfi\n"
+     \ is the same as .python-version. Keeping the existing environment.\"\nfi\n"
?      ++++++++++++++++++++++++++++++++
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
    - pyenv rehash
    - inv -e rtloader.make --python-runtimes $PYTHON_RUNTIMES
    - inv -e rtloader.install
    - inv -e install-tools
    needs:
    - go_deps
    - 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.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache.tar.xz
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache_tools.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache_tools.tar.xz
    - inv -e linter.go --cpus 12 --timeout 60
    stage: lint
    tags:
    - macos:monterey-amd64
    - specific:true
    variables:
      PYTHON_RUNTIMES: '3'
lint_macos_gitlab_arm64
  lint_macos_gitlab_arm64:
    allow_failure: true
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      echo "Don''t forget to regularly delete unused versions. Here are the installed
      versions and their memory usage on the runner:"
  
      du -sh $HOME/.gimme/versions/*
  
      '
    - "PYTHON_REPO_VERSION=$(cat .python-version)\nPYTHON_VERSION=$(python3 --version\
-     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\nif [ \"$PYTHON_REPO_VERSION\" !=\
-     \ \"$PYTHON_VERSION\" ]; then\n  echo \"Python version $PYTHON_VERSION is different\
-     \ from $PYTHON_REPO_VERSION in .python-version. Cleaning the environment.\"\n\
-     \  pyenv uninstall -f datadog-agent\n  echo \"Installing Python $PYTHON_REPO_VERSION...\"\
-     \n  pyenv virtualenv 3.11.8 datadog-agent\n  pyenv activate datadog-agent\nelse\n\
-     \  echo \"Python current version $PYTHON_VERSION is the same as .python-version.\
+     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\necho \"Python version in .python-version:\
+     \ $PYTHON_REPO_VERSION\"\necho \"Python current version: $PYTHON_VERSION\"\nif\
+     \ [ \"$PYTHON_REPO_VERSION\" != \"$PYTHON_VERSION\" ]; then\n  echo \"Python version\
+     \ $PYTHON_VERSION is different from $PYTHON_REPO_VERSION in .python-version. Cleaning\
+     \ the environment.\"\n  pyenv uninstall -f datadog-agent\n  echo \"Installing\
+     \ Python $PYTHON_REPO_VERSION...\"\n  pyenv virtualenv 3.12.6 datadog-agent\n\
+     \  pyenv activate datadog-agent\nelse\n  echo \"Python current version $PYTHON_VERSION\
-     \ Keeping the existing environment.\"\nfi\n"
+     \ is the same as .python-version. Keeping the existing environment.\"\nfi\n"
?      ++++++++++++++++++++++++++++++++
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
    - pyenv rehash
    - inv -e rtloader.make --python-runtimes $PYTHON_RUNTIMES
    - inv -e rtloader.install
    - inv -e install-tools
    needs:
    - go_deps
    - go_tools_deps
    rules:
    - if: $CI_COMMIT_BRANCH == "main"
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - allow_failure: true
      when: manual
    script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache.tar.xz
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache_tools.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache_tools.tar.xz
    - inv -e linter.go --cpus 12 --timeout 60
    stage: lint
    tags:
    - macos:monterey-arm64
    - specific:true
    variables:
      PYTHON_RUNTIMES: '3'
tests_macos_gitlab_amd64
  tests_macos_gitlab_amd64:
    after_script:
    - $CI_PROJECT_DIR/tools/ci/junit_upload.sh
    - CODECOV_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $CODECOV_TOKEN) || exit
      $?; export CODECOV_TOKEN
    - inv -e coverage.upload-to-codecov $COVERAGE_CACHE_FLAG || true
    allow_failure: true
    artifacts:
      expire_in: 2 weeks
      paths:
      - $TEST_OUTPUT_FILE
      - junit-*.tgz
      reports:
        annotations:
        - $EXTERNAL_LINKS_PATH
        junit:
        - '**/junit-out-*.xml'
      when: always
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      echo "Don''t forget to regularly delete unused versions. Here are the installed
      versions and their memory usage on the runner:"
  
      du -sh $HOME/.gimme/versions/*
  
      '
    - "PYTHON_REPO_VERSION=$(cat .python-version)\nPYTHON_VERSION=$(python3 --version\
-     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\nif [ \"$PYTHON_REPO_VERSION\" !=\
-     \ \"$PYTHON_VERSION\" ]; then\n  echo \"Python version $PYTHON_VERSION is different\
-     \ from $PYTHON_REPO_VERSION in .python-version. Cleaning the environment.\"\n\
-     \  pyenv uninstall -f datadog-agent\n  echo \"Installing Python $PYTHON_REPO_VERSION...\"\
-     \n  pyenv virtualenv 3.11.8 datadog-agent\n  pyenv activate datadog-agent\nelse\n\
-     \  echo \"Python current version $PYTHON_VERSION is the same as .python-version.\
+     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\necho \"Python version in .python-version:\
+     \ $PYTHON_REPO_VERSION\"\necho \"Python current version: $PYTHON_VERSION\"\nif\
+     \ [ \"$PYTHON_REPO_VERSION\" != \"$PYTHON_VERSION\" ]; then\n  echo \"Python version\
+     \ $PYTHON_VERSION is different from $PYTHON_REPO_VERSION in .python-version. Cleaning\
+     \ the environment.\"\n  pyenv uninstall -f datadog-agent\n  echo \"Installing\
+     \ Python $PYTHON_REPO_VERSION...\"\n  pyenv virtualenv 3.12.6 datadog-agent\n\
+     \  pyenv activate datadog-agent\nelse\n  echo \"Python current version $PYTHON_VERSION\
-     \ Keeping the existing environment.\"\nfi\n"
+     \ is the same as .python-version. Keeping the existing environment.\"\nfi\n"
?      ++++++++++++++++++++++++++++++++
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
    - pyenv rehash
    - inv -e rtloader.make --python-runtimes $PYTHON_RUNTIMES
    - inv -e rtloader.install
    - inv -e install-tools
    needs:
    - go_deps
    - 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.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache.tar.xz
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache_tools.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache_tools.tar.xz
    - inv -e gitlab.generate-ci-visibility-links --output=$EXTERNAL_LINKS_PATH
    - FAST_TESTS_FLAG=""
    - if [[ "$FAST_TESTS" == "true" ]]; then FAST_TESTS_FLAG="--only-impacted-packages";
      fi
    - inv -e test --rerun-fails=2 --python-runtimes $PYTHON_RUNTIMES --race --profile
      --cpus 12 --save-result-json $TEST_OUTPUT_FILE --junit-tar "junit-${CI_JOB_NAME}.tgz"
      $FAST_TESTS_FLAG --test-washer
    - inv -e invoke-unit-tests
    stage: source_test
    tags:
    - macos:monterey-amd64
    - specific:true
    variables:
      PYTHON_RUNTIMES: '3'
      TEST_OUTPUT_FILE: test_output.json
tests_macos_gitlab_arm64
  tests_macos_gitlab_arm64:
    after_script:
    - $CI_PROJECT_DIR/tools/ci/junit_upload.sh
    - CODECOV_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $CODECOV_TOKEN) || exit
      $?; export CODECOV_TOKEN
    - inv -e coverage.upload-to-codecov $COVERAGE_CACHE_FLAG || true
    allow_failure: true
    artifacts:
      expire_in: 2 weeks
      paths:
      - $TEST_OUTPUT_FILE
      - junit-*.tgz
      reports:
        annotations:
        - $EXTERNAL_LINKS_PATH
        junit:
        - '**/junit-out-*.xml'
      when: always
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      echo "Don''t forget to regularly delete unused versions. Here are the installed
      versions and their memory usage on the runner:"
  
      du -sh $HOME/.gimme/versions/*
  
      '
    - "PYTHON_REPO_VERSION=$(cat .python-version)\nPYTHON_VERSION=$(python3 --version\
-     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\nif [ \"$PYTHON_REPO_VERSION\" !=\
-     \ \"$PYTHON_VERSION\" ]; then\n  echo \"Python version $PYTHON_VERSION is different\
-     \ from $PYTHON_REPO_VERSION in .python-version. Cleaning the environment.\"\n\
-     \  pyenv uninstall -f datadog-agent\n  echo \"Installing Python $PYTHON_REPO_VERSION...\"\
-     \n  pyenv virtualenv 3.11.8 datadog-agent\n  pyenv activate datadog-agent\nelse\n\
-     \  echo \"Python current version $PYTHON_VERSION is the same as .python-version.\
+     \ | awk '{print $2}' | sed 's/\\.[0-9]*$//')\necho \"Python version in .python-version:\
+     \ $PYTHON_REPO_VERSION\"\necho \"Python current version: $PYTHON_VERSION\"\nif\
+     \ [ \"$PYTHON_REPO_VERSION\" != \"$PYTHON_VERSION\" ]; then\n  echo \"Python version\
+     \ $PYTHON_VERSION is different from $PYTHON_REPO_VERSION in .python-version. Cleaning\
+     \ the environment.\"\n  pyenv uninstall -f datadog-agent\n  echo \"Installing\
+     \ Python $PYTHON_REPO_VERSION...\"\n  pyenv virtualenv 3.12.6 datadog-agent\n\
+     \  pyenv activate datadog-agent\nelse\n  echo \"Python current version $PYTHON_VERSION\
-     \ Keeping the existing environment.\"\nfi\n"
+     \ is the same as .python-version. Keeping the existing environment.\"\nfi\n"
?      ++++++++++++++++++++++++++++++++
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
    - pyenv rehash
    - inv -e rtloader.make --python-runtimes $PYTHON_RUNTIMES
    - inv -e rtloader.install
    - inv -e install-tools
    needs:
    - go_deps
    - go_tools_deps
    rules:
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - allow_failure: true
      when: manual
    script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache.tar.xz
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache_tools.tar.xz -C $GOPATH/pkg/mod/cache
    - rm -f modcache_tools.tar.xz
    - inv -e gitlab.generate-ci-visibility-links --output=$EXTERNAL_LINKS_PATH
    - FAST_TESTS_FLAG=""
    - if [[ "$FAST_TESTS" == "true" ]]; then FAST_TESTS_FLAG="--only-impacted-packages";
      fi
    - inv -e test --rerun-fails=2 --python-runtimes $PYTHON_RUNTIMES --race --profile
      --cpus 12 --save-result-json $TEST_OUTPUT_FILE --junit-tar "junit-${CI_JOB_NAME}.tgz"
      $FAST_TESTS_FLAG --test-washer
    - inv -e invoke-unit-tests
    stage: source_test
    tags:
    - macos:monterey-arm64
    - specific:true
    variables:
      PYTHON_RUNTIMES: '3'
      TEST_OUTPUT_FILE: test_output.json

Changes Summary

Removed Modified Added Renamed
0 8 0 0

ℹ️ Diff available in the job log.

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Oct 8, 2024

[Fast Unit Tests Report]

On pipeline 46338817 (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

Copy link

cit-pr-commenter bot commented Oct 10, 2024

Regression Detector

Regression Detector Results

Run ID: b969dec8-5c76-412f-bfdc-87fa2dd5a87a Metrics dashboard Target profiles

Baseline: 16abca8
Comparison: 0fde749

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

No significant changes in experiment optimization goals

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

There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
pycheck_lots_of_tags % cpu utilization +2.01 [-0.50, +4.52] 1 Logs
file_tree memory utilization +1.41 [+1.26, +1.55] 1 Logs
basic_py_check % cpu utilization +0.64 [-1.99, +3.28] 1 Logs
otel_to_otel_logs ingress throughput +0.54 [-0.27, +1.35] 1 Logs
idle memory utilization +0.15 [+0.09, +0.20] 1 Logs
file_to_blackhole_1000ms_latency egress throughput +0.14 [-0.36, +0.64] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.00 [-0.12, +0.12] 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.23, +0.21] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.01 [-0.35, +0.33] 1 Logs
file_to_blackhole_300ms_latency egress throughput -0.02 [-0.21, +0.16] 1 Logs
file_to_blackhole_500ms_latency egress throughput -0.17 [-0.42, +0.08] 1 Logs
idle_all_features memory utilization -0.41 [-0.52, -0.30] 1 Logs
tcp_syslog_to_blackhole ingress throughput -0.61 [-0.68, -0.54] 1 Logs
uds_dogstatsd_to_api_cpu % cpu utilization -1.67 [-2.38, -0.95] 1 Logs

Bounds Checks

perf experiment bounds_check_name replicates_passed
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency memory_usage 10/10
file_to_blackhole_100ms_latency memory_usage 10/10
file_to_blackhole_300ms_latency memory_usage 10/10
file_to_blackhole_500ms_latency memory_usage 10/10
idle memory_usage 10/10

Explanation

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".

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.

1 participant