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] Custom homebrew build #34286

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

Conversation

CelianR
Copy link
Contributor

@CelianR CelianR commented Feb 21, 2025

What does this PR do?

Motivation

Describe how you validated your changes

Possible Drawbacks / Trade-offs

Additional Notes

@CelianR CelianR self-assigned this Feb 21, 2025
@github-actions github-actions bot added team/agent-delivery short review PR is simple enough to be reviewed quickly labels Feb 21, 2025
@CelianR
Copy link
Contributor Author

CelianR commented Feb 21, 2025

/trigger-ci

@dd-devflow
Copy link

dd-devflow bot commented Feb 21, 2025

View all feedbacks in Devflow UI.
2025-02-21 10:34:34 UTC ℹ️ Start processing command /trigger-ci
If you need support, contact us on Slack #devflow!


2025-02-21 10:36:15 UTC 🚨 Devflow

POST https://gitlab.ddbuild.io/api/v4/projects/DataDog/datadog-agent/pipeline: 400 {message: {base: [deploy_packages_dmg-x64-a7 job: undefined need: agent_dmg-x64-a7]}}

Details
child workflow execution error (type: devflow.Devflow_TriggerCiFromPr, workflowID: a9d109c6-0f47-4f53-a913-9c32575b6c4f_26, runID: c60113a8-2117-4440-b4dd-e8b7b785117d, initiatedEventID: 26, startedEventID: 27): child workflow execution error (type: devflow.Devflow_TriggerCi, workflowID: c60113a8-2117-4440-b4dd-e8b7b785117d_14, runID: 35cda71b-7f4d-4540-a1df-ce0b42e12fbe, initiatedEventID: 14, startedEventID: 15): activity error (type: gitlab.GitlabService_CreatePipeline, scheduledEventID: 26, startedEventID: 27, identity: 1@gitlab-worker-557595d6bb-bnvc8@): POST https://gitlab.ddbuild.io/api/v4/projects/DataDog/datadog-agent/pipeline: 400 {message: {base: [deploy_packages_dmg-x64-a7 job: undefined need: agent_dmg-x64-a7]}} (type: ErrorResponse, retryable: true)

If you need support, contact us on Slack #devflow with those details!

@agent-platform-auto-pr
Copy link
Contributor

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

Gitlab CI Configuration Changes

Modified Jobs

.lint_macos_gitlab
  .lint_macos_gitlab:
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      '
+   - python3 -m venv .venv
+   - source .venv/bin/activate
-   - PYTHON_VERSION=$(python3 --version | awk '{print $2}')
-   - VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
-   - VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
-   - echo "Using Python $PYTHON_VERSION..."
-   - "# Check if the virtual environment directory exists\nif [ ! -d \"$VENV_PATH\"\
-     \ ]; then\n  echo \"Creating virtual environment '$VENV_NAME'...\"\n  pyenv virtualenv\
-     \ \"$PYTHON_VERSION\" \"$VENV_NAME\"\nelse\n  echo \"Virtual environment '$VENV_NAME'\
-     \ already exists. Skipping creation.\"\nfi\n"
-   - pyenv activate $VENV_NAME
-   - 'echo "Don''t forget to regularly delete Go unused versions. Here are the installed
-     Go versions and their disk space on the runner:"
- 
-     echo "Go:"
- 
-     du -sh $HOME/.gimme/versions/*
- 
-     echo "To remove a Go version please run:"
- 
-     echo "gimme uninstall <version>"
- 
-     '
-   - 'echo "Don''t forget to regularly delete Python unused versions. Here are the
-     installed Python versions and their disk space on the runner:"
- 
-     echo "Python:"
- 
-     du -sh $(pyenv root)/versions/*
- 
-     echo "To remove a Python version please run:"
- 
-     echo "pyenv uninstall -f <version>"
- 
-     '
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
      --break-system-packages
-   - pyenv rehash
    - inv -e rtloader.make
    - 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
      || exit 101
    - rm -f modcache.tar.xz
    - 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
    - inv -e linter.go --cpus 12 --debug --timeout 60
    stage: lint
.macos_gitlab
  .macos_gitlab:
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      '
+   - python3 -m venv .venv
+   - source .venv/bin/activate
-   - PYTHON_VERSION=$(python3 --version | awk '{print $2}')
-   - VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
-   - VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
-   - echo "Using Python $PYTHON_VERSION..."
-   - "# Check if the virtual environment directory exists\nif [ ! -d \"$VENV_PATH\"\
-     \ ]; then\n  echo \"Creating virtual environment '$VENV_NAME'...\"\n  pyenv virtualenv\
-     \ \"$PYTHON_VERSION\" \"$VENV_NAME\"\nelse\n  echo \"Virtual environment '$VENV_NAME'\
-     \ already exists. Skipping creation.\"\nfi\n"
-   - pyenv activate $VENV_NAME
-   - 'echo "Don''t forget to regularly delete Go unused versions. Here are the installed
-     Go versions and their disk space on the runner:"
- 
-     echo "Go:"
- 
-     du -sh $HOME/.gimme/versions/*
- 
-     echo "To remove a Go version please run:"
- 
-     echo "gimme uninstall <version>"
- 
-     '
-   - 'echo "Don''t forget to regularly delete Python unused versions. Here are the
-     installed Python versions and their disk space on the runner:"
- 
-     echo "Python:"
- 
-     du -sh $(pyenv root)/versions/*
- 
-     echo "To remove a Python version please run:"
- 
-     echo "pyenv uninstall -f <version>"
- 
-     '
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
      --break-system-packages
-   - pyenv rehash
    - inv -e rtloader.make
    - inv -e rtloader.install
    - inv -e install-tools
.tests_macos_gitlab
  .tests_macos_gitlab:
    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
  
      '
+   - python3 -m venv .venv
+   - source .venv/bin/activate
-   - PYTHON_VERSION=$(python3 --version | awk '{print $2}')
-   - VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
-   - VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
-   - echo "Using Python $PYTHON_VERSION..."
-   - "# Check if the virtual environment directory exists\nif [ ! -d \"$VENV_PATH\"\
-     \ ]; then\n  echo \"Creating virtual environment '$VENV_NAME'...\"\n  pyenv virtualenv\
-     \ \"$PYTHON_VERSION\" \"$VENV_NAME\"\nelse\n  echo \"Virtual environment '$VENV_NAME'\
-     \ already exists. Skipping creation.\"\nfi\n"
-   - pyenv activate $VENV_NAME
-   - 'echo "Don''t forget to regularly delete Go unused versions. Here are the installed
-     Go versions and their disk space on the runner:"
- 
-     echo "Go:"
- 
-     du -sh $HOME/.gimme/versions/*
- 
-     echo "To remove a Go version please run:"
- 
-     echo "gimme uninstall <version>"
- 
-     '
-   - 'echo "Don''t forget to regularly delete Python unused versions. Here are the
-     installed Python versions and their disk space on the runner:"
- 
-     echo "Python:"
- 
-     du -sh $(pyenv root)/versions/*
- 
-     echo "To remove a Python version please run:"
- 
-     echo "pyenv uninstall -f <version>"
- 
-     '
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
      --break-system-packages
-   - pyenv rehash
    - inv -e rtloader.make
    - inv -e rtloader.install
    - inv -e install-tools
    needs:
    - go_deps
    - go_tools_deps
    rules:
    - if: $CI_COMMIT_BRANCH == "main"
      variables:
        COVERAGE_CACHE_FLAG: --push-coverage-cache
        FAST_TESTS: 'false'
    - if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
      variables:
        COVERAGE_CACHE_FLAG: ''
        FAST_TESTS: 'false'
    - if: $CI_COMMIT_TAG != null
      variables:
        COVERAGE_CACHE_FLAG: ''
        FAST_TESTS: 'false'
    - if: $CI_PIPELINE_SOURCE == "trigger" || $CI_PIPELINE_SOURCE == "pipeline"
      variables:
        COVERAGE_CACHE_FLAG: ''
        FAST_TESTS: 'false'
    - if: $RUN_UNIT_TESTS == "on"
      variables:
        COVERAGE_CACHE_FLAG: ''
        FAST_TESTS: 'false'
    - variables:
        COVERAGE_CACHE_FLAG: --pull-coverage-cache
        FAST_TESTS: 'true'
    script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache.tar.xz -C $GOPATH/pkg/mod/cache
      || exit 101
    - rm -f modcache.tar.xz
    - 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
    - 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 --race --profile --cpus 12 --save-result-json $TEST_OUTPUT_FILE
      --junit-tar "junit-${CI_JOB_NAME}.tgz" $FAST_TESTS_FLAG --test-washer --coverage
    - inv -e invoke-unit-tests
    stage: source_test
    variables:
      TEST_OUTPUT_FILE: test_output.json
lint_macos_gitlab_amd64
  lint_macos_gitlab_amd64:
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      '
+   - python3 -m venv .venv
+   - source .venv/bin/activate
-   - PYTHON_VERSION=$(python3 --version | awk '{print $2}')
-   - VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
-   - VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
-   - echo "Using Python $PYTHON_VERSION..."
-   - "# Check if the virtual environment directory exists\nif [ ! -d \"$VENV_PATH\"\
-     \ ]; then\n  echo \"Creating virtual environment '$VENV_NAME'...\"\n  pyenv virtualenv\
-     \ \"$PYTHON_VERSION\" \"$VENV_NAME\"\nelse\n  echo \"Virtual environment '$VENV_NAME'\
-     \ already exists. Skipping creation.\"\nfi\n"
-   - pyenv activate $VENV_NAME
-   - 'echo "Don''t forget to regularly delete Go unused versions. Here are the installed
-     Go versions and their disk space on the runner:"
- 
-     echo "Go:"
- 
-     du -sh $HOME/.gimme/versions/*
- 
-     echo "To remove a Go version please run:"
- 
-     echo "gimme uninstall <version>"
- 
-     '
-   - 'echo "Don''t forget to regularly delete Python unused versions. Here are the
-     installed Python versions and their disk space on the runner:"
- 
-     echo "Python:"
- 
-     du -sh $(pyenv root)/versions/*
- 
-     echo "To remove a Python version please run:"
- 
-     echo "pyenv uninstall -f <version>"
- 
-     '
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
      --break-system-packages
-   - pyenv rehash
    - inv -e rtloader.make
    - 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
      || exit 101
    - rm -f modcache.tar.xz
    - 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
    - inv -e linter.go --cpus 12 --debug --timeout 60
    stage: lint
    tags:
    - macos:ventura-amd64
    - specific:true
lint_macos_gitlab_arm64
  lint_macos_gitlab_arm64:
    allow_failure: true
    before_script:
    - 'eval $(gimme $(cat .go-version))
  
      export GOPATH=$GOROOT
  
      '
+   - python3 -m venv .venv
+   - source .venv/bin/activate
-   - PYTHON_VERSION=$(python3 --version | awk '{print $2}')
-   - VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
-   - VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
-   - echo "Using Python $PYTHON_VERSION..."
-   - "# Check if the virtual environment directory exists\nif [ ! -d \"$VENV_PATH\"\
-     \ ]; then\n  echo \"Creating virtual environment '$VENV_NAME'...\"\n  pyenv virtualenv\
-     \ \"$PYTHON_VERSION\" \"$VENV_NAME\"\nelse\n  echo \"Virtual environment '$VENV_NAME'\
-     \ already exists. Skipping creation.\"\nfi\n"
-   - pyenv activate $VENV_NAME
-   - 'echo "Don''t forget to regularly delete Go unused versions. Here are the installed
-     Go versions and their disk space on the runner:"
- 
-     echo "Go:"
- 
-     du -sh $HOME/.gimme/versions/*
- 
-     echo "To remove a Go version please run:"
- 
-     echo "gimme uninstall <version>"
- 
-     '
-   - 'echo "Don''t forget to regularly delete Python unused versions. Here are the
-     installed Python versions and their disk space on the runner:"
- 
-     echo "Python:"
- 
-     du -sh $(pyenv root)/versions/*
- 
-     echo "To remove a Python version please run:"
- 
-     echo "pyenv uninstall -f <version>"
- 
-     '
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
      --break-system-packages
-   - pyenv rehash
    - inv -e rtloader.make
    - 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
      || exit 101
    - rm -f modcache.tar.xz
    - 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
    - inv -e linter.go --cpus 12 --debug --timeout 60
    stage: lint
    tags:
    - macos:ventura-arm64
    - specific:true
tests_macos_gitlab_amd64
  tests_macos_gitlab_amd64:
    after_script:
    - export VAULT_ADDR=https://vault.us1.ddbuild.io
    - vault login -method=aws -no-print
    - PYTHON_VERSION=$(python3 --version | awk '{print $2}')
    - VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
    - VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
    - echo "Using Python $PYTHON_VERSION..."
    - "# Check if the virtual environment directory exists\nif [ ! -d \"$VENV_PATH\"\
      \ ]; then\n  echo \"Creating virtual environment '$VENV_NAME'...\"\n  pyenv virtualenv\
      \ \"$PYTHON_VERSION\" \"$VENV_NAME\"\nelse\n  echo \"Virtual environment '$VENV_NAME'\
      \ already exists. Skipping creation.\"\nfi\n"
    - pyenv activate $VENV_NAME
    - $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
    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
  
      '
+   - python3 -m venv .venv
+   - source .venv/bin/activate
-   - PYTHON_VERSION=$(python3 --version | awk '{print $2}')
-   - VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
-   - VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
-   - echo "Using Python $PYTHON_VERSION..."
-   - "# Check if the virtual environment directory exists\nif [ ! -d \"$VENV_PATH\"\
-     \ ]; then\n  echo \"Creating virtual environment '$VENV_NAME'...\"\n  pyenv virtualenv\
-     \ \"$PYTHON_VERSION\" \"$VENV_NAME\"\nelse\n  echo \"Virtual environment '$VENV_NAME'\
-     \ already exists. Skipping creation.\"\nfi\n"
-   - pyenv activate $VENV_NAME
-   - 'echo "Don''t forget to regularly delete Go unused versions. Here are the installed
-     Go versions and their disk space on the runner:"
- 
-     echo "Go:"
- 
-     du -sh $HOME/.gimme/versions/*
- 
-     echo "To remove a Go version please run:"
- 
-     echo "gimme uninstall <version>"
- 
-     '
-   - 'echo "Don''t forget to regularly delete Python unused versions. Here are the
-     installed Python versions and their disk space on the runner:"
- 
-     echo "Python:"
- 
-     du -sh $(pyenv root)/versions/*
- 
-     echo "To remove a Python version please run:"
- 
-     echo "pyenv uninstall -f <version>"
- 
-     '
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
      --break-system-packages
-   - pyenv rehash
    - inv -e rtloader.make
    - inv -e rtloader.install
    - inv -e install-tools
    needs:
    - go_deps
    - go_tools_deps
    rules:
    - if: $CI_COMMIT_BRANCH == "main"
      variables:
        COVERAGE_CACHE_FLAG: --push-coverage-cache
        FAST_TESTS: 'false'
    - if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
      variables:
        COVERAGE_CACHE_FLAG: ''
        FAST_TESTS: 'false'
    - if: $CI_COMMIT_TAG != null
      variables:
        COVERAGE_CACHE_FLAG: ''
        FAST_TESTS: 'false'
    - if: $CI_PIPELINE_SOURCE == "trigger" || $CI_PIPELINE_SOURCE == "pipeline"
      variables:
        COVERAGE_CACHE_FLAG: ''
        FAST_TESTS: 'false'
    - if: $RUN_UNIT_TESTS == "on"
      variables:
        COVERAGE_CACHE_FLAG: ''
        FAST_TESTS: 'false'
    - variables:
        COVERAGE_CACHE_FLAG: --pull-coverage-cache
        FAST_TESTS: 'true'
    script:
    - mkdir -p $GOPATH/pkg/mod/cache && tar xJf modcache.tar.xz -C $GOPATH/pkg/mod/cache
      || exit 101
    - rm -f modcache.tar.xz
    - 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
    - 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 --race --profile --cpus 12 --save-result-json $TEST_OUTPUT_FILE
      --junit-tar "junit-${CI_JOB_NAME}.tgz" $FAST_TESTS_FLAG --test-washer --coverage
    - inv -e invoke-unit-tests
    stage: source_test
    tags:
    - macos:ventura-amd64
    - specific:true
    variables:
      TEST_OUTPUT_FILE: test_output.json
tests_macos_gitlab_arm64
  tests_macos_gitlab_arm64:
    after_script:
    - export VAULT_ADDR=https://vault.us1.ddbuild.io
    - vault login -method=aws -no-print
    - PYTHON_VERSION=$(python3 --version | awk '{print $2}')
    - VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
    - VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
    - echo "Using Python $PYTHON_VERSION..."
    - "# Check if the virtual environment directory exists\nif [ ! -d \"$VENV_PATH\"\
      \ ]; then\n  echo \"Creating virtual environment '$VENV_NAME'...\"\n  pyenv virtualenv\
      \ \"$PYTHON_VERSION\" \"$VENV_NAME\"\nelse\n  echo \"Virtual environment '$VENV_NAME'\
      \ already exists. Skipping creation.\"\nfi\n"
    - pyenv activate $VENV_NAME
    - $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
  
      '
+   - python3 -m venv .venv
+   - source .venv/bin/activate
-   - PYTHON_VERSION=$(python3 --version | awk '{print $2}')
-   - VENV_NAME="datadog-agent-python-$PYTHON_VERSION"
-   - VENV_PATH="$(pyenv root)/versions/$VENV_NAME"
-   - echo "Using Python $PYTHON_VERSION..."
-   - "# Check if the virtual environment directory exists\nif [ ! -d \"$VENV_PATH\"\
-     \ ]; then\n  echo \"Creating virtual environment '$VENV_NAME'...\"\n  pyenv virtualenv\
-     \ \"$PYTHON_VERSION\" \"$VENV_NAME\"\nelse\n  echo \"Virtual environment '$VENV_NAME'\
-     \ already exists. Skipping creation.\"\nfi\n"
-   - pyenv activate $VENV_NAME
-   - 'echo "Don''t forget to regularly delete Go unused versions. Here are the installed
-     Go versions and their disk space on the runner:"
- 
-     echo "Go:"
- 
-     du -sh $HOME/.gimme/versions/*
- 
-     echo "To remove a Go version please run:"
- 
-     echo "gimme uninstall <version>"
- 
-     '
-   - 'echo "Don''t forget to regularly delete Python unused versions. Here are the
-     installed Python versions and their disk space on the runner:"
- 
-     echo "Python:"
- 
-     du -sh $(pyenv root)/versions/*
- 
-     echo "To remove a Python version please run:"
- 
-     echo "pyenv uninstall -f <version>"
- 
-     '
    - python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt
      --break-system-packages
-   - pyenv rehash
    - inv -e rtloader.make
    - 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
      || exit 101
    - rm -f modcache.tar.xz
    - 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
    - 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 --race --profile --cpus 12 --save-result-json $TEST_OUTPUT_FILE
      --junit-tar "junit-${CI_JOB_NAME}.tgz" $FAST_TESTS_FLAG --test-washer --coverage
    - inv -e invoke-unit-tests
    stage: source_test
    tags:
    - macos:ventura-arm64
    - specific:true
    variables:
      TEST_OUTPUT_FILE: test_output.json

Added Jobs

.cc_debug
.cc_debug:
- echo Verifying libintl
- find . -name "libintl*" || true
.runner_setup_custom_homebrew
.runner_setup_custom_homebrew:
- 'export HOMEBREW_VERSION=4.4.21

  export PKG_CONFIG_VERSION=0.29.2

  export RUBY_VERSION=2.7.4

  export BUNDLER_VERSION=2.3.18

  export PYTHON_VERSION=3.12.6

  export RUST_VERSION=1.74.0

  export RUSTUP_VERSION=1.25.1

  export CMAKE_VERSION=3.30.2

  export GIMME_VERSION=1.5.4

  export GPG_VERSION=1.4.23

  export CODECOV_VERSION=v0.6.1

  export OPENSSL_VERSION=1.1

  '
- "echo Setup env\nmkdir bin\nbinaries=\"curl chmod cp date mkdir readlink dirname\
  \ tar rm mv ls bash make xz true which vault du security touch cat basename go tr\
  \ uname find\"\nfor binary in $binaries; do\n  echo Using $binary\n  ln -s \"$(which\
  \ $binary)\" bin/$binary\ndone\n"
- 'echo Setup homebrew

  mkdir homebrew

  curl -L https://github.com/Homebrew/brew/tarball/$HOMEBREW_VERSION | tar xz --strip-components
  1 -C homebrew

  # Enable custom env

  export OLDPATH="$PATH"

  export PATH="$PWD/bin"

  eval "$(homebrew/bin/brew shellenv)"

  brew update --force

  # TODO A: Necessary?

  chmod -R go-w "$(brew --prefix)/share/zsh"

  brew tap DataDog/datadog-agent-macos-build

  '
- 'echo Install cmake

  brew install DataDog/datadog-agent-macos-build/cmake@$CMAKE_VERSION -f

  brew link --overwrite cmake@$CMAKE_VERSION

  '
- 'echo Install pkg-config

  brew install DataDog/datadog-agent-macos-build/pkg-config@$PKG_CONFIG_VERSION -f

  brew link --overwrite pkg-config@$PKG_CONFIG_VERSION

  '
- 'brew install DataDog/datadog-agent-macos-build/gnupg@$GPG_VERSION -f

  brew link --overwrite gnupg@$GPG_VERSION

  # TODO

  echo GPG debug

  # TODO: clean

  # Adding gpgbin to the PATH to be able to call gpg and gpgv

  export PATH="$PWD/homebrew/Cellar/gnupg@$GPG_VERSION/libexec/gpgbin:$PATH"

  export OLDPATH="$PWD/homebrew/Cellar/gnupg@$GPG_VERSION/libexec/gpgbin:$OLDPATH"

  # ls -l "$PWD/homebrew/Cellar/gnupg@$GPG_VERSION/libexec/gpgbin" || true

  # echo "$PWD/homebrew/Cellar/gnupg@$GPG_VERSION/libexec/gpgbin" || true

  # ls "$PWD/homebrew/Cellar/gnupg@$GPG_VERSION" || true

  which gpg || true

  which gpgv || true

  '
- 'echo Install openssl

  brew install -v DataDog/datadog-agent-macos-build/openssl@$OPENSSL_VERSION -f

  brew link --overwrite openssl@$OPENSSL_VERSION

  '
- 'echo Install ruby

  brew install DataDog/datadog-agent-macos-build/ruby@$RUBY_VERSION -f

  brew link --overwrite ruby@$RUBY_VERSION

  gem install bundler -v $BUNDLER_VERSION -f

  '
- 'echo Install python

  brew install --build-from-source DataDog/datadog-agent-macos-build/python@$PYTHON_VERSION
  -f

  brew link --overwrite python@$PYTHON_VERSION

  '
- 'echo Install rust on arm64

  mkdir -p rust/cargo rust/rustup

  export CARGO_HOME="$PWD/rust/cargo"

  export RUSTUP_HOME="$PWD/rust/rustup"

  # TODO A: amd64 x86_64

  # export ARCH=aarch64

  export ARCH=x86_64

  curl -sSL -o rustup-init https://static.rust-lang.org/rustup/archive/$RUSTUP_VERSION/$ARCH-apple-darwin/rustup-init

  chmod +x ./rustup-init

  ./rustup-init -y --profile minimal --default-toolchain $RUST_VERSION

  rm ./rustup-init

  # TODO: Cleanup

  export PATH="$CARGO_HOME/bin:$RUSTUP_HOME/bin:$PATH"

  export OLDPATH="$CARGO_HOME/bin:$RUSTUP_HOME/bin:$OLDPATH"

  '
- 'echo Install gimme

  brew install DataDog/datadog-agent-macos-build/gimme@$GIMME_VERSION -f

  brew link --overwrite gimme@$GIMME_VERSION

  '
- 'echo Resetting path

  export PATH="$PWD/bin:$OLDPATH"

  which python3

  '
- 'eval $(gimme $(cat .go-version))

  export GOPATH=$GOROOT

  which go

  go version

  '
new-agent_dmg-x64-a7
new-agent_dmg-x64-a7:
  artifacts:
    expire_in: 2 weeks
    paths:
    - /tmp/celian
  needs: []
  script:
  - set -e
  - 'export HOMEBREW_VERSION=4.4.21

    export PKG_CONFIG_VERSION=0.29.2

    export RUBY_VERSION=2.7.4

    export BUNDLER_VERSION=2.3.18

    export PYTHON_VERSION=3.12.6

    export RUST_VERSION=1.74.0

    export RUSTUP_VERSION=1.25.1

    export CMAKE_VERSION=3.30.2

    export GIMME_VERSION=1.5.4

    export GPG_VERSION=1.4.23

    export CODECOV_VERSION=v0.6.1

    export OPENSSL_VERSION=1.1

    '
  - "echo Setup env\nmkdir bin\nbinaries=\"curl chmod cp date mkdir readlink dirname\
    \ tar rm mv ls bash make xz true which vault du security touch cat basename go\
    \ tr uname find\"\nfor binary in $binaries; do\n  echo Using $binary\n  ln -s\
    \ \"$(which $binary)\" bin/$binary\ndone\n"
  - 'echo Setup homebrew

    mkdir homebrew

    curl -L https://github.com/Homebrew/brew/tarball/$HOMEBREW_VERSION | tar xz --strip-components
    1 -C homebrew

    # Enable custom env

    export OLDPATH="$PATH"

    export PATH="$PWD/bin"

    eval "$(homebrew/bin/brew shellenv)"

    brew update --force

    # TODO A: Necessary?

    chmod -R go-w "$(brew --prefix)/share/zsh"

    brew tap DataDog/datadog-agent-macos-build

    '
  - 'echo Install cmake

    brew install DataDog/datadog-agent-macos-build/cmake@$CMAKE_VERSION -f

    brew link --overwrite cmake@$CMAKE_VERSION

    '
  - 'echo Install pkg-config

    brew install DataDog/datadog-agent-macos-build/pkg-config@$PKG_CONFIG_VERSION
    -f

    brew link --overwrite pkg-config@$PKG_CONFIG_VERSION

    '
  - 'brew install DataDog/datadog-agent-macos-build/gnupg@$GPG_VERSION -f

    brew link --overwrite gnupg@$GPG_VERSION

    # TODO

    echo GPG debug

    # TODO: clean

    # Adding gpgbin to the PATH to be able to call gpg and gpgv

    export PATH="$PWD/homebrew/Cellar/gnupg@$GPG_VERSION/libexec/gpgbin:$PATH"

    export OLDPATH="$PWD/homebrew/Cellar/gnupg@$GPG_VERSION/libexec/gpgbin:$OLDPATH"

    # ls -l "$PWD/homebrew/Cellar/gnupg@$GPG_VERSION/libexec/gpgbin" || true

    # echo "$PWD/homebrew/Cellar/gnupg@$GPG_VERSION/libexec/gpgbin" || true

    # ls "$PWD/homebrew/Cellar/gnupg@$GPG_VERSION" || true

    which gpg || true

    which gpgv || true

    '
  - 'echo Install openssl

    brew install -v DataDog/datadog-agent-macos-build/openssl@$OPENSSL_VERSION -f

    brew link --overwrite openssl@$OPENSSL_VERSION

    '
  - 'echo Install ruby

    brew install DataDog/datadog-agent-macos-build/ruby@$RUBY_VERSION -f

    brew link --overwrite ruby@$RUBY_VERSION

    gem install bundler -v $BUNDLER_VERSION -f

    '
  - 'echo Install python

    brew install --build-from-source DataDog/datadog-agent-macos-build/python@$PYTHON_VERSION
    -f

    brew link --overwrite python@$PYTHON_VERSION

    '
  - 'echo Install rust on arm64

    mkdir -p rust/cargo rust/rustup

    export CARGO_HOME="$PWD/rust/cargo"

    export RUSTUP_HOME="$PWD/rust/rustup"

    # TODO A: amd64 x86_64

    # export ARCH=aarch64

    export ARCH=x86_64

    curl -sSL -o rustup-init https://static.rust-lang.org/rustup/archive/$RUSTUP_VERSION/$ARCH-apple-darwin/rustup-init

    chmod +x ./rustup-init

    ./rustup-init -y --profile minimal --default-toolchain $RUST_VERSION

    rm ./rustup-init

    # TODO: Cleanup

    export PATH="$CARGO_HOME/bin:$RUSTUP_HOME/bin:$PATH"

    export OLDPATH="$CARGO_HOME/bin:$RUSTUP_HOME/bin:$OLDPATH"

    '
  - 'echo Install gimme

    brew install DataDog/datadog-agent-macos-build/gimme@$GIMME_VERSION -f

    brew link --overwrite gimme@$GIMME_VERSION

    '
  - 'echo Resetting path

    export PATH="$PWD/bin:$OLDPATH"

    which python3

    '
  - 'eval $(gimme $(cat .go-version))

    export GOPATH=$GOROOT

    which go

    go version

    '
  - echo Verifying libintl
  - find . -name "libintl*" || true
  - 'python3 -m venv .venv

    source .venv/bin/activate

    python3 -m pip install -r requirements.txt -r tasks/libs/requirements-github.txt

    # TODO A: Necessary?

    inv -e rtloader.make

    inv -e rtloader.install

    inv -e install-tools

    '
  - 'echo Starting build script

    bash .gitlab/package_build/build_script.sh

    '
  stage: package_build
  tags:
  - macos:ventura-amd64-test
  - specific:true
  timeout: 6h

Changes Summary

Removed Modified Added Renamed
0 7 3 0

ℹ️ Diff available in the job log.

@agent-platform-auto-pr
Copy link
Contributor

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

[Fast Unit Tests Report]

On pipeline 56723222 (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 21, 2025

Uncompressed package size comparison

Comparison with ancestor 9330bf1d9f51a87e8cb402dc1fa9abb80fe53958

Diff per package
package diff status size ancestor threshold
datadog-agent-x86_64-rpm 0.00MB 878.83MB 878.83MB 0.50MB
datadog-agent-x86_64-suse 0.00MB 878.83MB 878.83MB 0.50MB
datadog-iot-agent-x86_64-rpm 0.00MB 62.09MB 62.09MB 0.50MB
datadog-iot-agent-x86_64-suse 0.00MB 62.09MB 62.09MB 0.50MB
datadog-iot-agent-aarch64-rpm 0.00MB 59.33MB 59.33MB 0.50MB
datadog-dogstatsd-x86_64-rpm 0.00MB 41.48MB 41.48MB 0.50MB
datadog-dogstatsd-x86_64-suse 0.00MB 41.48MB 41.48MB 0.50MB
datadog-agent-amd64-deb 0.00MB 869.07MB 869.07MB 0.50MB
datadog-dogstatsd-amd64-deb 0.00MB 41.40MB 41.40MB 0.50MB
datadog-dogstatsd-arm64-deb 0.00MB 39.66MB 39.66MB 0.50MB
datadog-heroku-agent-amd64-deb 0.00MB 446.32MB 446.32MB 0.50MB
datadog-iot-agent-amd64-deb 0.00MB 62.02MB 62.02MB 0.50MB
datadog-iot-agent-arm64-deb 0.00MB 59.26MB 59.26MB 0.50MB
datadog-agent-aarch64-rpm -0.00MB 868.13MB 868.13MB 0.50MB
datadog-agent-arm64-deb -0.00MB 858.38MB 858.38MB 0.50MB

Decision

✅ Passed

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 21, 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.56MiB 847.49MiB 203.03MiB 212.33MiB
static_quality_gate_agent_deb_arm64 830.49MiB 836.66MiB 183.45MiB 192.5MiB
static_quality_gate_agent_rpm_amd64 840.69MiB 847.82MiB 205.97MiB 215.76MiB
static_quality_gate_agent_rpm_arm64 830.36MiB 836.66MiB 185.33MiB 194.24MiB
static_quality_gate_agent_suse_amd64 840.53MiB 847.82MiB 205.97MiB 215.76MiB
static_quality_gate_agent_suse_arm64 830.32MiB 836.66MiB 185.33MiB 194.24MiB
static_quality_gate_dogstatsd_deb_amd64 39.56MiB 49.7MiB 10.55MiB 20.6MiB
static_quality_gate_dogstatsd_deb_arm64 37.9MiB 48.1MiB 9.13MiB 19.1MiB
static_quality_gate_dogstatsd_rpm_amd64 39.56MiB 49.7MiB 10.56MiB 20.6MiB
static_quality_gate_dogstatsd_suse_amd64 39.56MiB 49.7MiB 10.56MiB 20.6MiB
static_quality_gate_iot_agent_deb_amd64 59.23MiB 69.0MiB 14.88MiB 24.8MiB
static_quality_gate_iot_agent_deb_arm64 56.59MiB 66.4MiB 12.85MiB 22.8MiB
static_quality_gate_iot_agent_rpm_amd64 59.23MiB 69.0MiB 14.9MiB 24.8MiB
static_quality_gate_iot_agent_rpm_arm64 56.59MiB 66.4MiB 12.85MiB 22.8MiB
static_quality_gate_iot_agent_suse_amd64 59.23MiB 69.0MiB 14.9MiB 24.8MiB
static_quality_gate_docker_agent_amd64 924.93MiB 931.7MiB 309.07MiB 318.67MiB
static_quality_gate_docker_agent_arm64 938.0MiB 944.08MiB 294.06MiB 303.0MiB
static_quality_gate_docker_agent_jmx_amd64 1.1GiB 1.1GiB 384.19MiB 393.75MiB
static_quality_gate_docker_agent_jmx_arm64 1.1GiB 1.1GiB 365.15MiB 373.71MiB
static_quality_gate_docker_dogstatsd_amd64 47.7MiB 57.88MiB 18.26MiB 28.29MiB
static_quality_gate_docker_dogstatsd_arm64 46.09MiB 56.27MiB 17.02MiB 27.06MiB
static_quality_gate_docker_cluster_agent_amd64 264.95MiB 274.78MiB 106.33MiB 116.28MiB
static_quality_gate_docker_cluster_agent_arm64 280.92MiB 290.82MiB 101.17MiB 111.12MiB

Copy link

cit-pr-commenter bot commented Feb 21, 2025

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 8633ddac-d471-4ba6-b478-b5bfa60d50d1

Baseline: 9330bf1
Comparison: bda5527
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 +1.01 [+0.94, +1.07] 1 Logs
uds_dogstatsd_to_api_cpu % cpu utilization +0.75 [-0.14, +1.64] 1 Logs
file_to_blackhole_1000ms_latency egress throughput +0.34 [-0.43, +1.12] 1 Logs
file_tree memory utilization +0.19 [+0.14, +0.25] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.05 [-0.74, +0.84] 1 Logs
file_to_blackhole_300ms_latency egress throughput +0.03 [-0.60, +0.65] 1 Logs
file_to_blackhole_0ms_latency egress throughput +0.03 [-0.77, +0.83] 1 Logs
file_to_blackhole_0ms_latency_http1 egress throughput +0.01 [-0.76, +0.79] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.01 [-0.27, +0.28] 1 Logs
file_to_blackhole_100ms_latency egress throughput +0.00 [-0.67, +0.67] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.01, +0.01] 1 Logs
file_to_blackhole_0ms_latency_http2 egress throughput -0.01 [-0.80, +0.78] 1 Logs
quality_gate_idle_all_features memory utilization -0.01 [-0.06, +0.04] 1 Logs bounds checks dashboard
file_to_blackhole_1000ms_latency_linear_load egress throughput -0.23 [-0.70, +0.24] 1 Logs
quality_gate_idle memory utilization -0.58 [-0.62, -0.55] 1 Logs bounds checks dashboard
quality_gate_logs % cpu utilization -1.05 [-4.05, +1.94] 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_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_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.
  • 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.

@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 Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium review PR review might take time team/agent-delivery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant