Skip to content

Conversation

@GeorgeHahn
Copy link
Contributor

@GeorgeHahn GeorgeHahn commented Jan 12, 2026

What does this PR do?

Improves the Regression Detector's decision record to make it more readable and actionable:

  • Shows pass/fail message at the top of the report
  • Highlights failed gates and reduces visual clutter from passing gates

Motivation

The previous format displayed all gates in a single list, making it difficult to quickly identify which gates failed. This new format prioritizes failed gates and provides a clearer summary of test results.

Describe how you validated your changes

Ran the regression detector on this PR.

Additional Notes

This change only affects the reporting format and doesn't modify the actual regression detection logic or criteria.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the short review PR is simple enough to be reviewed quickly label Jan 12, 2026
@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Jan 12, 2026

Gitlab CI Configuration Changes

Modified Jobs

.single-machine-performance-run_regression_detector
  .single-machine-performance-run_regression_detector:
    allow_failure: false
    artifacts:
      expire_in: 1 weeks
      paths:
      - submission_metadata
      - outputs/report.md
      - outputs/regression_signal.json
      - outputs/bounds_check_signal.json
      - outputs/junit.xml
      - outputs/report.json
      - outputs/decision_record.md
      when: always
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/docker_x64$CI_IMAGE_DOCKER_X64_SUFFIX:$CI_IMAGE_DOCKER_X64
    retry:
      exit_codes:
      - 42
      max: 2
      when:
      - runner_system_failure
      - stuck_or_timeout_failure
      - unknown_failure
      - api_failure
      - scheduler_failure
      - stale_schedule
      - data_integrity_failure
    rules:
    - if: $E2E_COVERAGE_PIPELINE == "true"
      when: never
    - if: $CI_COMMIT_BRANCH == "main"
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - if: $CI_COMMIT_TAG != null
      when: never
    - when: on_success
    script:
    - "if [[ \"${SAMPLE}\" == \"true\" ]] && (( \"${CI_PIPELINE_ID}\" % 2 != 0 )); then\n\
      \  exit 0\nfi\n"
    - DATADOG_API_KEY="$("$CI_PROJECT_DIR"/tools/ci/fetch_secret.sh "$AGENT_API_KEY_ORG2"
      token)" || exit $?; export DATADOG_API_KEY
    - datadog-ci tag --level job --tags smp_failure_mode:"timeout"
    - mkdir outputs
    - AWS_NAMED_PROFILE="single-machine-performance"
    - "SMP_ACCOUNT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT account_id)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - SMP_ECR_URL=${SMP_ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com
    - "SMP_TEAM_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT \"${SMP_TEAM_NAME}_team_id\"\
      ) || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - "SMP_API=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT $SMP_API_URL)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - "SMP_BOT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT $BOT_LOGIN)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - "SMP_BOT_KEY=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT $BOT_TOKEN)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - aws configure set aws_access_key_id "$SMP_BOT_ID" --profile ${AWS_NAMED_PROFILE}
    - aws configure set aws_secret_access_key "$SMP_BOT_KEY" --profile ${AWS_NAMED_PROFILE}
    - aws configure set region us-west-2 --profile ${AWS_NAMED_PROFILE}
    - "aws --profile single-machine-performance s3 cp s3://smp-cli-releases/${SMP_VERSION}/x86_64-unknown-linux-musl/smp\
      \ smp || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-fetch-cli\"\n  exit $exit_code\n}\n"
    - chmod +x smp
    - source regression_detector.env
    - echo "Baseline SHA is ${BASELINE_SHA}"
    - echo -n "${BASELINE_SHA}" > "${CI_COMMIT_SHA}-baseline_sha"
    - aws s3 cp --profile single-machine-performance --only-show-errors "${CI_COMMIT_SHA}-baseline_sha"
      "s3://${SMP_TEAM_ID}-smp-artifacts/information/"
    - BASELINE_IMAGE=${SMP_ECR_URL}/${SMP_TEAM_ID}-agent:${BASELINE_SHA}-7-full-amd64
    - echo "${BASELINE_SHA} | ${BASELINE_IMAGE}"
    - COMPARISON_IMAGE=${SMP_ECR_URL}/${SMP_TEAM_ID}-agent:${CI_COMMIT_SHA}-7-full-amd64
    - echo "${CI_COMMIT_SHA} | ${COMPARISON_IMAGE}"
    - SMP_TAGS="ci_pipeline_id=${CI_PIPELINE_ID},ci_job_id=${CI_JOB_ID},ci_commit_branch=${CI_COMMIT_BRANCH},purpose=agent_ci"
    - echo "Tags passed through SMP are ${SMP_TAGS}"
    - RUST_LOG="info,aws_config::profile::credentials=error"
    - RUST_LOG_DEBUG="debug,aws_config::profile::credentials=error"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\njob submit \\\n--baseline-image\
      \ ${BASELINE_IMAGE} \\\n--comparison-image ${COMPARISON_IMAGE} \\\n--baseline-sha\
      \ ${BASELINE_SHA} \\\n--comparison-sha ${CI_COMMIT_SHA} \\\n--target-config-dir\
      \ test/regression/ \\\n--submission-metadata submission_metadata \\\n--tags ${SMP_TAGS}\
      \ || {\n  exit_code=$?\n  echo \"smp job submit command failed with code $exit_code\"\
      \n  datadog-ci tag --level job --tags smp_failure_mode:\"job-submission\"\n  exit\
      \ $exit_code\n}\n"
    - SMP_JOB_ID=$(jq -r '.jobId' submission_metadata)
    - echo "SMP Job Id is ${SMP_JOB_ID}"
    - datadog-ci tag --level job --tags smp_job_id:${SMP_JOB_ID}
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\njob status \\\n--wait \\\n--wait-delay-seconds\
      \ 60 \\\n--submission-metadata submission_metadata || {\n  exit_code=$?\n  echo\
      \ \"smp job status command failed with code $exit_code\"\n  datadog-ci tag --level\
      \ job --tags smp_failure_mode:\"job-status\"\n  exit $exit_code\n}\n"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\njob sync \\\n--submission-metadata\
      \ submission_metadata \\\n--output-path outputs || {\n  exit_code=$?\n  echo \"\
      smp job sync command failed with code $exit_code\"\n  datadog-ci tag --level job\
      \ --tags smp_failure_mode:\"job-sync\"\n  exit $exit_code\n}\n"
    - cat outputs/report.md | sed "s/^\$/$(echo -ne '\uFEFF\u00A0\u200B')/g"
    - datadog-ci junit upload --service datadog-agent outputs/junit.xml
    - datadog-ci tag --level job --tags smp_failure_mode:"none"
    - datadog-ci tag --level job --tags smp_optimization_goal:"passed"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\n  job result \\\n  --submission-metadata\
      \ submission_metadata --signal regression-detector || {\n  exit_code=$?\n  echo\
      \ \"smp regression detector has detected a regression\"\n  datadog-ci tag --level\
      \ job --tags smp_optimization_goal:\"failed\"\n}\n"
    - datadog-ci tag --level job --tags smp_bounds_check:"passed"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\n  job result \\\n  --submission-metadata\
      \ submission_metadata --signal bounds-check || {\n  exit_code=$?\n  echo \"smp\
      \ regression detector has detected a failed bounds check\"\n  datadog-ci tag --level\
      \ job --tags smp_bounds_check:\"failed\"\n}\n"
    - datadog-ci tag --level job --tags smp_quality_gates:"failed"
    - "python3 <<'EOF'\nimport json\nimport sys\n\ntry:\n    with open('outputs/report.json')\
      \ as f:\n        data = json.load(f)\nexcept FileNotFoundError:\n    print(\"\
      Machine readable report not found.\")\n    sys.exit(1)\nexcept json.JSONDecodeError\
      \ as e:\n    print(f\"Error parsing JSON report: {e}\")\n    sys.exit(1)\n\nexperiments\
-     \ = data.get('experiments', {})\nfailed = False\ndecision_record = []\n\nfor exp_name,\
?                                               ^ ^  --  -- ----------
+     \ = data.get('experiments', {})\nfailed_gates = []\npassed_gates = []\n\nfor exp_name,\
?                                            ++++++   ^^^^^ ^   ++++
      \ exp_data in experiments.items():\n    if exp_name.startswith('quality_gate_'):\n\
      \        bounds_checks = exp_data.get('bounds_checks', {})\n        for check_name,\
      \ check_data in bounds_checks.items():\n            results = check_data.get('results',\
      \ {})\n            comparison = results.get('comparison', [])\n            num_total\
      \ = len(comparison)\n            failed_replicates = [\n                replicate\
      \ for replicate in comparison if not replicate.get('passed', False)\n        \
      \    ]\n            num_failed = len(failed_replicates)\n            num_passed\
      \ = num_total - num_failed\n            if failed_replicates:\n              \
-     \  decision_record.append(\n                    f\"- **{exp_name}**, bounds check\
?          -- ----------                                 ----          --
+     \  failed_gates.append(\n                    f\"{exp_name}, bounds check {check_name}:\
?        +++++ ++++                                                           ++++++++++++++
+     \ {num_passed}/{num_total} replicas passed. Gate failed.\"\n                )\n\
+     \            else:\n                passed_gates.append(\n                   \
-     \ **{check_name}**: {num_passed}/{num_total} replicas passed. Failed {num_failed}\
-     \ which is > 0. Gate **FAILED**.\"\n                )\n                failed\
-     \ = True\n            else:\n                decision_record.append(\n       \
-     \             f\"- **{exp_name}**, bounds check **{check_name}**: {num_passed}/{num_total}\
?       ------------   ----          --               --            --
+     \ f\"{exp_name}, bounds check {check_name}: {num_passed}/{num_total} replicas\
?                                                                         +++++++++
-     \ replicas passed. Gate passed.\"\n                )\n\nwith open('outputs/decision_record.md',\
-     \ 'w') as f:\n    # Extra newline since this is appended to another report\n \
-     \   f.write('\\n\\n## CI Pass/Fail Decision\\n\\n')\n    if failed:\n        f.write('\u274C\
-     \ **Failed.** Some Quality Gates were violated.\\n\\n')\n        f.write('\\n'.join(decision_record))\n\
-     \    else:\n        f.write('\u2705 **Passed.** All Quality Gates passed.\\n\\\
-     n')\n        f.write('\\n'.join(decision_record))\n\nif failed:\n    print(\"\
+     \ passed. Gate passed.\"\n                )\n\ntotal_gates = len(failed_gates)\
+     \ + len(passed_gates)\nnum_failed_gates = len(failed_gates)\n\nwith open('outputs/decision_record.md',\
+     \ 'w') as f:\n    f.write('# CI Pass/Fail Decision\\n\\n')\n    if failed_gates:\n\
+     \        f.write(f'\u274C Failed. {num_failed_gates}/{total_gates} Quality Gates\
+     \ failed.\\n\\n')\n        for gate in failed_gates:\n            f.write(f'-\
+     \ {gate}\\n')\n        if passed_gates:\n            f.write('\\n<details>\\n<summary>Passing\
+     \ Quality Gates</summary>\\n\\n')\n            for gate in passed_gates:\n   \
+     \             f.write(f'- {gate}\\n')\n            f.write('\\n</details>\\n')\n\
+     \    else:\n        f.write(f'\u2705 {total_gates}/{total_gates} Quality Gates\
+     \ passed.\\n\\n')\n        f.write('<details>\\n<summary>Quality Gate Details</summary>\\\
+     n\\n')\n        for gate in passed_gates:\n            f.write(f'- {gate}\\n')\n\
+     \        f.write('\\n</details>\\n')\n    f.write('\\n')  # Ensure blank line\
+     \ at end for proper markdown concatenation\n\nif failed_gates:\n    print(\"Quality\
-     Quality gate failed, see decision record\")\n    sys.exit(1)\nelse:\n    print(\"\
?     ^^^^^^^
+     \ gate failed, see decision record\")\n    sys.exit(1)\nelse:\n    print(\"Quality\
?     ^                                                                          +++++++
-     Quality gate passed.\")\n    sys.exit(0)\nEOF\n"
?     ^^^^^^^
+     \ gate passed.\")\n    sys.exit(0)\nEOF\n"
?     ^
    - datadog-ci tag --level job --tags smp_quality_gates:"passed"
    stage: functional_test
    tags:
    - arch:amd64
    - specific:true
    timeout: 1h10m
single-machine-performance-metal-runners-regression_detector
  single-machine-performance-metal-runners-regression_detector:
    allow_failure: true
    artifacts:
      expire_in: 1 weeks
      paths:
      - submission_metadata
      - outputs/report.md
      - outputs/regression_signal.json
      - outputs/bounds_check_signal.json
      - outputs/junit.xml
      - outputs/report.json
      - outputs/decision_record.md
      when: always
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/docker_x64$CI_IMAGE_DOCKER_X64_SUFFIX:$CI_IMAGE_DOCKER_X64
    needs:
    - artifacts: true
      job: single_machine_performance-regression_detector-merge_base_check
      optional: true
    - artifacts: false
      job: single_machine_performance-full-amd64-a7
    retry:
      exit_codes:
      - 42
      max: 2
      when:
      - runner_system_failure
      - stuck_or_timeout_failure
      - unknown_failure
      - api_failure
      - scheduler_failure
      - stale_schedule
      - data_integrity_failure
    rules:
    - if: $E2E_COVERAGE_PIPELINE == "true"
      when: never
    - if: $CI_COMMIT_BRANCH == "main"
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - if: $CI_COMMIT_TAG != null
      when: never
    - when: on_success
    script:
    - "if [[ \"${SAMPLE}\" == \"true\" ]] && (( \"${CI_PIPELINE_ID}\" % 2 != 0 )); then\n\
      \  exit 0\nfi\n"
    - DATADOG_API_KEY="$("$CI_PROJECT_DIR"/tools/ci/fetch_secret.sh "$AGENT_API_KEY_ORG2"
      token)" || exit $?; export DATADOG_API_KEY
    - datadog-ci tag --level job --tags smp_failure_mode:"timeout"
    - mkdir outputs
    - AWS_NAMED_PROFILE="single-machine-performance"
    - "SMP_ACCOUNT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT account_id)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - SMP_ECR_URL=${SMP_ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com
    - "SMP_TEAM_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT \"${SMP_TEAM_NAME}_team_id\"\
      ) || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - "SMP_API=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT $SMP_API_URL)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - "SMP_BOT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT $BOT_LOGIN)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - "SMP_BOT_KEY=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT $BOT_TOKEN)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - aws configure set aws_access_key_id "$SMP_BOT_ID" --profile ${AWS_NAMED_PROFILE}
    - aws configure set aws_secret_access_key "$SMP_BOT_KEY" --profile ${AWS_NAMED_PROFILE}
    - aws configure set region us-west-2 --profile ${AWS_NAMED_PROFILE}
    - "aws --profile single-machine-performance s3 cp s3://smp-cli-releases/${SMP_VERSION}/x86_64-unknown-linux-musl/smp\
      \ smp || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-fetch-cli\"\n  exit $exit_code\n}\n"
    - chmod +x smp
    - source regression_detector.env
    - echo "Baseline SHA is ${BASELINE_SHA}"
    - echo -n "${BASELINE_SHA}" > "${CI_COMMIT_SHA}-baseline_sha"
    - aws s3 cp --profile single-machine-performance --only-show-errors "${CI_COMMIT_SHA}-baseline_sha"
      "s3://${SMP_TEAM_ID}-smp-artifacts/information/"
    - BASELINE_IMAGE=${SMP_ECR_URL}/${SMP_TEAM_ID}-agent:${BASELINE_SHA}-7-full-amd64
    - echo "${BASELINE_SHA} | ${BASELINE_IMAGE}"
    - COMPARISON_IMAGE=${SMP_ECR_URL}/${SMP_TEAM_ID}-agent:${CI_COMMIT_SHA}-7-full-amd64
    - echo "${CI_COMMIT_SHA} | ${COMPARISON_IMAGE}"
    - SMP_TAGS="ci_pipeline_id=${CI_PIPELINE_ID},ci_job_id=${CI_JOB_ID},ci_commit_branch=${CI_COMMIT_BRANCH},purpose=agent_ci"
    - echo "Tags passed through SMP are ${SMP_TAGS}"
    - RUST_LOG="info,aws_config::profile::credentials=error"
    - RUST_LOG_DEBUG="debug,aws_config::profile::credentials=error"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\njob submit \\\n--baseline-image\
      \ ${BASELINE_IMAGE} \\\n--comparison-image ${COMPARISON_IMAGE} \\\n--baseline-sha\
      \ ${BASELINE_SHA} \\\n--comparison-sha ${CI_COMMIT_SHA} \\\n--target-config-dir\
      \ test/regression/ \\\n--submission-metadata submission_metadata \\\n--tags ${SMP_TAGS}\
      \ || {\n  exit_code=$?\n  echo \"smp job submit command failed with code $exit_code\"\
      \n  datadog-ci tag --level job --tags smp_failure_mode:\"job-submission\"\n  exit\
      \ $exit_code\n}\n"
    - SMP_JOB_ID=$(jq -r '.jobId' submission_metadata)
    - echo "SMP Job Id is ${SMP_JOB_ID}"
    - datadog-ci tag --level job --tags smp_job_id:${SMP_JOB_ID}
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\njob status \\\n--wait \\\n--wait-delay-seconds\
      \ 60 \\\n--submission-metadata submission_metadata || {\n  exit_code=$?\n  echo\
      \ \"smp job status command failed with code $exit_code\"\n  datadog-ci tag --level\
      \ job --tags smp_failure_mode:\"job-status\"\n  exit $exit_code\n}\n"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\njob sync \\\n--submission-metadata\
      \ submission_metadata \\\n--output-path outputs || {\n  exit_code=$?\n  echo \"\
      smp job sync command failed with code $exit_code\"\n  datadog-ci tag --level job\
      \ --tags smp_failure_mode:\"job-sync\"\n  exit $exit_code\n}\n"
    - cat outputs/report.md | sed "s/^\$/$(echo -ne '\uFEFF\u00A0\u200B')/g"
    - datadog-ci junit upload --service datadog-agent outputs/junit.xml
    - datadog-ci tag --level job --tags smp_failure_mode:"none"
    - datadog-ci tag --level job --tags smp_optimization_goal:"passed"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\n  job result \\\n  --submission-metadata\
      \ submission_metadata --signal regression-detector || {\n  exit_code=$?\n  echo\
      \ \"smp regression detector has detected a regression\"\n  datadog-ci tag --level\
      \ job --tags smp_optimization_goal:\"failed\"\n}\n"
    - datadog-ci tag --level job --tags smp_bounds_check:"passed"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\n  job result \\\n  --submission-metadata\
      \ submission_metadata --signal bounds-check || {\n  exit_code=$?\n  echo \"smp\
      \ regression detector has detected a failed bounds check\"\n  datadog-ci tag --level\
      \ job --tags smp_bounds_check:\"failed\"\n}\n"
    - datadog-ci tag --level job --tags smp_quality_gates:"failed"
    - "python3 <<'EOF'\nimport json\nimport sys\n\ntry:\n    with open('outputs/report.json')\
      \ as f:\n        data = json.load(f)\nexcept FileNotFoundError:\n    print(\"\
      Machine readable report not found.\")\n    sys.exit(1)\nexcept json.JSONDecodeError\
      \ as e:\n    print(f\"Error parsing JSON report: {e}\")\n    sys.exit(1)\n\nexperiments\
-     \ = data.get('experiments', {})\nfailed = False\ndecision_record = []\n\nfor exp_name,\
?                                               ^ ^  --  -- ----------
+     \ = data.get('experiments', {})\nfailed_gates = []\npassed_gates = []\n\nfor exp_name,\
?                                            ++++++   ^^^^^ ^   ++++
      \ exp_data in experiments.items():\n    if exp_name.startswith('quality_gate_'):\n\
      \        bounds_checks = exp_data.get('bounds_checks', {})\n        for check_name,\
      \ check_data in bounds_checks.items():\n            results = check_data.get('results',\
      \ {})\n            comparison = results.get('comparison', [])\n            num_total\
      \ = len(comparison)\n            failed_replicates = [\n                replicate\
      \ for replicate in comparison if not replicate.get('passed', False)\n        \
      \    ]\n            num_failed = len(failed_replicates)\n            num_passed\
      \ = num_total - num_failed\n            if failed_replicates:\n              \
-     \  decision_record.append(\n                    f\"- **{exp_name}**, bounds check\
?          -- ----------                                 ----          --
+     \  failed_gates.append(\n                    f\"{exp_name}, bounds check {check_name}:\
?        +++++ ++++                                                           ++++++++++++++
+     \ {num_passed}/{num_total} replicas passed. Gate failed.\"\n                )\n\
+     \            else:\n                passed_gates.append(\n                   \
-     \ **{check_name}**: {num_passed}/{num_total} replicas passed. Failed {num_failed}\
-     \ which is > 0. Gate **FAILED**.\"\n                )\n                failed\
-     \ = True\n            else:\n                decision_record.append(\n       \
-     \             f\"- **{exp_name}**, bounds check **{check_name}**: {num_passed}/{num_total}\
?       ------------   ----          --               --            --
+     \ f\"{exp_name}, bounds check {check_name}: {num_passed}/{num_total} replicas\
?                                                                         +++++++++
-     \ replicas passed. Gate passed.\"\n                )\n\nwith open('outputs/decision_record.md',\
-     \ 'w') as f:\n    # Extra newline since this is appended to another report\n \
-     \   f.write('\\n\\n## CI Pass/Fail Decision\\n\\n')\n    if failed:\n        f.write('\u274C\
-     \ **Failed.** Some Quality Gates were violated.\\n\\n')\n        f.write('\\n'.join(decision_record))\n\
-     \    else:\n        f.write('\u2705 **Passed.** All Quality Gates passed.\\n\\\
-     n')\n        f.write('\\n'.join(decision_record))\n\nif failed:\n    print(\"\
+     \ passed. Gate passed.\"\n                )\n\ntotal_gates = len(failed_gates)\
+     \ + len(passed_gates)\nnum_failed_gates = len(failed_gates)\n\nwith open('outputs/decision_record.md',\
+     \ 'w') as f:\n    f.write('# CI Pass/Fail Decision\\n\\n')\n    if failed_gates:\n\
+     \        f.write(f'\u274C Failed. {num_failed_gates}/{total_gates} Quality Gates\
+     \ failed.\\n\\n')\n        for gate in failed_gates:\n            f.write(f'-\
+     \ {gate}\\n')\n        if passed_gates:\n            f.write('\\n<details>\\n<summary>Passing\
+     \ Quality Gates</summary>\\n\\n')\n            for gate in passed_gates:\n   \
+     \             f.write(f'- {gate}\\n')\n            f.write('\\n</details>\\n')\n\
+     \    else:\n        f.write(f'\u2705 {total_gates}/{total_gates} Quality Gates\
+     \ passed.\\n\\n')\n        f.write('<details>\\n<summary>Quality Gate Details</summary>\\\
+     n\\n')\n        for gate in passed_gates:\n            f.write(f'- {gate}\\n')\n\
+     \        f.write('\\n</details>\\n')\n    f.write('\\n')  # Ensure blank line\
+     \ at end for proper markdown concatenation\n\nif failed_gates:\n    print(\"Quality\
-     Quality gate failed, see decision record\")\n    sys.exit(1)\nelse:\n    print(\"\
?     ^^^^^^^
+     \ gate failed, see decision record\")\n    sys.exit(1)\nelse:\n    print(\"Quality\
?     ^                                                                          +++++++
-     Quality gate passed.\")\n    sys.exit(0)\nEOF\n"
?     ^^^^^^^
+     \ gate passed.\")\n    sys.exit(0)\nEOF\n"
?     ^
    - datadog-ci tag --level job --tags smp_quality_gates:"passed"
    stage: functional_test
    tags:
    - arch:amd64
    - specific:true
    timeout: 1h10m
    variables:
      BOT_LOGIN: bot_login_metal-runners
      BOT_TOKEN: bot_token_metal-runners
      SAMPLE: 'true'
      SMP_API_URL: metal-runners_api_url
      SMP_TEAM_NAME: metal-runners
      SMP_VERSION: dev-pr3796-e7f7a988
single-machine-performance-regression_detector
  single-machine-performance-regression_detector:
    allow_failure: false
    artifacts:
      expire_in: 1 weeks
      paths:
      - submission_metadata
      - outputs/report.md
      - outputs/regression_signal.json
      - outputs/bounds_check_signal.json
      - outputs/junit.xml
      - outputs/report.json
      - outputs/decision_record.md
      when: always
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/docker_x64$CI_IMAGE_DOCKER_X64_SUFFIX:$CI_IMAGE_DOCKER_X64
    needs:
    - artifacts: true
      job: single_machine_performance-regression_detector-merge_base_check
    - artifacts: false
      job: single_machine_performance-full-amd64-a7
    retry:
      exit_codes:
      - 42
      max: 2
      when:
      - runner_system_failure
      - stuck_or_timeout_failure
      - unknown_failure
      - api_failure
      - scheduler_failure
      - stale_schedule
      - data_integrity_failure
    rules:
    - if: $E2E_COVERAGE_PIPELINE == "true"
      when: never
    - if: $CI_COMMIT_BRANCH == "main"
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - if: $CI_COMMIT_TAG != null
      when: never
    - when: on_success
    script:
    - "if [[ \"${SAMPLE}\" == \"true\" ]] && (( \"${CI_PIPELINE_ID}\" % 2 != 0 )); then\n\
      \  exit 0\nfi\n"
    - DATADOG_API_KEY="$("$CI_PROJECT_DIR"/tools/ci/fetch_secret.sh "$AGENT_API_KEY_ORG2"
      token)" || exit $?; export DATADOG_API_KEY
    - datadog-ci tag --level job --tags smp_failure_mode:"timeout"
    - mkdir outputs
    - AWS_NAMED_PROFILE="single-machine-performance"
    - "SMP_ACCOUNT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT account_id)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - SMP_ECR_URL=${SMP_ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com
    - "SMP_TEAM_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT \"${SMP_TEAM_NAME}_team_id\"\
      ) || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - "SMP_API=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT $SMP_API_URL)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - "SMP_BOT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT $BOT_LOGIN)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - "SMP_BOT_KEY=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $SMP_ACCOUNT $BOT_TOKEN)\
      \ || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-secrets\"\n  exit $exit_code\n}\n"
    - aws configure set aws_access_key_id "$SMP_BOT_ID" --profile ${AWS_NAMED_PROFILE}
    - aws configure set aws_secret_access_key "$SMP_BOT_KEY" --profile ${AWS_NAMED_PROFILE}
    - aws configure set region us-west-2 --profile ${AWS_NAMED_PROFILE}
    - "aws --profile single-machine-performance s3 cp s3://smp-cli-releases/${SMP_VERSION}/x86_64-unknown-linux-musl/smp\
      \ smp || {\n  exit_code=$?\n  datadog-ci tag --level job --tags smp_failure_mode:\"\
      setup-fetch-cli\"\n  exit $exit_code\n}\n"
    - chmod +x smp
    - source regression_detector.env
    - echo "Baseline SHA is ${BASELINE_SHA}"
    - echo -n "${BASELINE_SHA}" > "${CI_COMMIT_SHA}-baseline_sha"
    - aws s3 cp --profile single-machine-performance --only-show-errors "${CI_COMMIT_SHA}-baseline_sha"
      "s3://${SMP_TEAM_ID}-smp-artifacts/information/"
    - BASELINE_IMAGE=${SMP_ECR_URL}/${SMP_TEAM_ID}-agent:${BASELINE_SHA}-7-full-amd64
    - echo "${BASELINE_SHA} | ${BASELINE_IMAGE}"
    - COMPARISON_IMAGE=${SMP_ECR_URL}/${SMP_TEAM_ID}-agent:${CI_COMMIT_SHA}-7-full-amd64
    - echo "${CI_COMMIT_SHA} | ${COMPARISON_IMAGE}"
    - SMP_TAGS="ci_pipeline_id=${CI_PIPELINE_ID},ci_job_id=${CI_JOB_ID},ci_commit_branch=${CI_COMMIT_BRANCH},purpose=agent_ci"
    - echo "Tags passed through SMP are ${SMP_TAGS}"
    - RUST_LOG="info,aws_config::profile::credentials=error"
    - RUST_LOG_DEBUG="debug,aws_config::profile::credentials=error"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\njob submit \\\n--baseline-image\
      \ ${BASELINE_IMAGE} \\\n--comparison-image ${COMPARISON_IMAGE} \\\n--baseline-sha\
      \ ${BASELINE_SHA} \\\n--comparison-sha ${CI_COMMIT_SHA} \\\n--target-config-dir\
      \ test/regression/ \\\n--submission-metadata submission_metadata \\\n--tags ${SMP_TAGS}\
      \ || {\n  exit_code=$?\n  echo \"smp job submit command failed with code $exit_code\"\
      \n  datadog-ci tag --level job --tags smp_failure_mode:\"job-submission\"\n  exit\
      \ $exit_code\n}\n"
    - SMP_JOB_ID=$(jq -r '.jobId' submission_metadata)
    - echo "SMP Job Id is ${SMP_JOB_ID}"
    - datadog-ci tag --level job --tags smp_job_id:${SMP_JOB_ID}
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\njob status \\\n--wait \\\n--wait-delay-seconds\
      \ 60 \\\n--submission-metadata submission_metadata || {\n  exit_code=$?\n  echo\
      \ \"smp job status command failed with code $exit_code\"\n  datadog-ci tag --level\
      \ job --tags smp_failure_mode:\"job-status\"\n  exit $exit_code\n}\n"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\njob sync \\\n--submission-metadata\
      \ submission_metadata \\\n--output-path outputs || {\n  exit_code=$?\n  echo \"\
      smp job sync command failed with code $exit_code\"\n  datadog-ci tag --level job\
      \ --tags smp_failure_mode:\"job-sync\"\n  exit $exit_code\n}\n"
    - cat outputs/report.md | sed "s/^\$/$(echo -ne '\uFEFF\u00A0\u200B')/g"
    - datadog-ci junit upload --service datadog-agent outputs/junit.xml
    - datadog-ci tag --level job --tags smp_failure_mode:"none"
    - datadog-ci tag --level job --tags smp_optimization_goal:"passed"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\n  job result \\\n  --submission-metadata\
      \ submission_metadata --signal regression-detector || {\n  exit_code=$?\n  echo\
      \ \"smp regression detector has detected a regression\"\n  datadog-ci tag --level\
      \ job --tags smp_optimization_goal:\"failed\"\n}\n"
    - datadog-ci tag --level job --tags smp_bounds_check:"passed"
    - "RUST_LOG=\"${RUST_LOG}\" ./smp --team-id ${SMP_TEAM_ID} --api-base ${SMP_API}\
      \ --aws-named-profile ${AWS_NAMED_PROFILE} \\\n  job result \\\n  --submission-metadata\
      \ submission_metadata --signal bounds-check || {\n  exit_code=$?\n  echo \"smp\
      \ regression detector has detected a failed bounds check\"\n  datadog-ci tag --level\
      \ job --tags smp_bounds_check:\"failed\"\n}\n"
    - datadog-ci tag --level job --tags smp_quality_gates:"failed"
    - "python3 <<'EOF'\nimport json\nimport sys\n\ntry:\n    with open('outputs/report.json')\
      \ as f:\n        data = json.load(f)\nexcept FileNotFoundError:\n    print(\"\
      Machine readable report not found.\")\n    sys.exit(1)\nexcept json.JSONDecodeError\
      \ as e:\n    print(f\"Error parsing JSON report: {e}\")\n    sys.exit(1)\n\nexperiments\
-     \ = data.get('experiments', {})\nfailed = False\ndecision_record = []\n\nfor exp_name,\
?                                               ^ ^  --  -- ----------
+     \ = data.get('experiments', {})\nfailed_gates = []\npassed_gates = []\n\nfor exp_name,\
?                                            ++++++   ^^^^^ ^   ++++
      \ exp_data in experiments.items():\n    if exp_name.startswith('quality_gate_'):\n\
      \        bounds_checks = exp_data.get('bounds_checks', {})\n        for check_name,\
      \ check_data in bounds_checks.items():\n            results = check_data.get('results',\
      \ {})\n            comparison = results.get('comparison', [])\n            num_total\
      \ = len(comparison)\n            failed_replicates = [\n                replicate\
      \ for replicate in comparison if not replicate.get('passed', False)\n        \
      \    ]\n            num_failed = len(failed_replicates)\n            num_passed\
      \ = num_total - num_failed\n            if failed_replicates:\n              \
-     \  decision_record.append(\n                    f\"- **{exp_name}**, bounds check\
?          -- ----------                                 ----          --
+     \  failed_gates.append(\n                    f\"{exp_name}, bounds check {check_name}:\
?        +++++ ++++                                                           ++++++++++++++
+     \ {num_passed}/{num_total} replicas passed. Gate failed.\"\n                )\n\
+     \            else:\n                passed_gates.append(\n                   \
-     \ **{check_name}**: {num_passed}/{num_total} replicas passed. Failed {num_failed}\
-     \ which is > 0. Gate **FAILED**.\"\n                )\n                failed\
-     \ = True\n            else:\n                decision_record.append(\n       \
-     \             f\"- **{exp_name}**, bounds check **{check_name}**: {num_passed}/{num_total}\
?       ------------   ----          --               --            --
+     \ f\"{exp_name}, bounds check {check_name}: {num_passed}/{num_total} replicas\
?                                                                         +++++++++
-     \ replicas passed. Gate passed.\"\n                )\n\nwith open('outputs/decision_record.md',\
-     \ 'w') as f:\n    # Extra newline since this is appended to another report\n \
-     \   f.write('\\n\\n## CI Pass/Fail Decision\\n\\n')\n    if failed:\n        f.write('\u274C\
-     \ **Failed.** Some Quality Gates were violated.\\n\\n')\n        f.write('\\n'.join(decision_record))\n\
-     \    else:\n        f.write('\u2705 **Passed.** All Quality Gates passed.\\n\\\
-     n')\n        f.write('\\n'.join(decision_record))\n\nif failed:\n    print(\"\
+     \ passed. Gate passed.\"\n                )\n\ntotal_gates = len(failed_gates)\
+     \ + len(passed_gates)\nnum_failed_gates = len(failed_gates)\n\nwith open('outputs/decision_record.md',\
+     \ 'w') as f:\n    f.write('# CI Pass/Fail Decision\\n\\n')\n    if failed_gates:\n\
+     \        f.write(f'\u274C Failed. {num_failed_gates}/{total_gates} Quality Gates\
+     \ failed.\\n\\n')\n        for gate in failed_gates:\n            f.write(f'-\
+     \ {gate}\\n')\n        if passed_gates:\n            f.write('\\n<details>\\n<summary>Passing\
+     \ Quality Gates</summary>\\n\\n')\n            for gate in passed_gates:\n   \
+     \             f.write(f'- {gate}\\n')\n            f.write('\\n</details>\\n')\n\
+     \    else:\n        f.write(f'\u2705 {total_gates}/{total_gates} Quality Gates\
+     \ passed.\\n\\n')\n        f.write('<details>\\n<summary>Quality Gate Details</summary>\\\
+     n\\n')\n        for gate in passed_gates:\n            f.write(f'- {gate}\\n')\n\
+     \        f.write('\\n</details>\\n')\n    f.write('\\n')  # Ensure blank line\
+     \ at end for proper markdown concatenation\n\nif failed_gates:\n    print(\"Quality\
-     Quality gate failed, see decision record\")\n    sys.exit(1)\nelse:\n    print(\"\
?     ^^^^^^^
+     \ gate failed, see decision record\")\n    sys.exit(1)\nelse:\n    print(\"Quality\
?     ^                                                                          +++++++
-     Quality gate passed.\")\n    sys.exit(0)\nEOF\n"
?     ^^^^^^^
+     \ gate passed.\")\n    sys.exit(0)\nEOF\n"
?     ^
    - datadog-ci tag --level job --tags smp_quality_gates:"passed"
    stage: functional_test
    tags:
    - arch:amd64
    - specific:true
    timeout: 1h10m
    variables:
      BOT_LOGIN: bot_login
      BOT_TOKEN: bot_token
      SMP_API_URL: api_url
      SMP_TEAM_NAME: agent
      SMP_VERSION: v0.25.1
single-machine-performance-regression_detector-pr-comment
  single-machine-performance-regression_detector-pr-comment:
    allow_failure: true
    artifacts:
      expire_in: 1 weeks
      paths:
      - report_as_json_string.txt
      - pr_comment_payload.json
    image:
      entrypoint:
      - ''
      name: 486234852809.dkr.ecr.us-east-1.amazonaws.com/pr-commenter:3-jammy
    needs:
    - job: single-machine-performance-regression_detector
    rules:
    - if: $E2E_COVERAGE_PIPELINE == "true"
      when: never
    - if: $CI_COMMIT_BRANCH == "main"
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - if: $CI_COMMIT_TAG != null
      when: never
    - when: always
    script:
    - "if [[ ! -s \"outputs/report.md\" ]]\nthen\n    echo \"ERROR: Regression Detector\
      \ report not found -- no PR comment posted\"\n    exit 1\nfi\n"
-   - cat outputs/report.md outputs/decision_record.md | sed -z 's/\n/\\n/g' | sed -z
?        ------------------
+   - cat outputs/decision_record.md outputs/report.md | sed -z 's/\n/\\n/g' | sed -z
?                                ++++++++++++++++++
      's/"/\\"/g' > report_as_json_string.txt
    - cat report_as_json_string.txt
    - PR_COMMENT_JSON_PAYLOAD='{"org":"DataDog", "repo":"datadog-agent", "commit":"'"${CI_COMMIT_SHA}"'",
      "header":"Regression Detector", "message":"'"$(cat report_as_json_string.txt)"'"}'
    - printf "%s\n" "PR comment JSON payload:${PR_COMMENT_JSON_PAYLOAD}"
    - printf "%s\n" "${PR_COMMENT_JSON_PAYLOAD}" > pr_comment_payload.json
    - "set +e\nout=$(curl https://pr-commenter.us1.ddbuild.io/internal/cit/pr-comment\
      \ \\\n    -H \"$(authanywhere)\" \\\n    -H \"X-DdOrigin: curl\" \\\n    -X PATCH\
      \ \\\n    -d \"${PR_COMMENT_JSON_PAYLOAD}\")\nexitcode=$?\nset -e\nif [ -n \"\
      ${out}\" ]; then\n  if [ $exitcode -eq 0 ]; then\n    echo $out\n  else\n    echo\
      \ $out >&2\n  fi\nfi\nif [ \"${out}\" != \"${out/invalid request: no pr found\
      \ for this commit}\" ]; then\n  exit 0\nfi\nexit $exitcode\n"
    stage: functional_test
    tags:
    - arch:amd64
    - specific:true
    variables:
      FF_KUBERNETES_HONOR_ENTRYPOINT: false

Changes Summary

Removed Modified Added Renamed
0 4 0 0

ℹ️ Diff available in the job log.

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Jan 12, 2026

Static quality checks

✅ Please find below the results from static quality gates
Comparison made with ancestor a991a9c
📊 Static Quality Gates Dashboard

Successful checks

Info

Quality gate Change Size (prev → curr → max)
agent_deb_amd64 -16.98 KiB (0.00% reduction) 705.336 → 705.319 → 708.410
agent_deb_amd64_fips -16.98 KiB (0.00% reduction) 700.617 → 700.601 → 704.000
agent_heroku_amd64 -16.98 KiB (0.01% reduction) 326.935 → 326.919 → 329.530
agent_msi -17.2 KiB (0.00% reduction) 571.471 → 571.454 → 982.080
agent_rpm_amd64 -16.98 KiB (0.00% reduction) 705.322 → 705.306 → 708.380
agent_rpm_amd64_fips -16.98 KiB (0.00% reduction) 700.604 → 700.587 → 703.990
agent_rpm_arm64 -16.98 KiB (0.00% reduction) 686.906 → 686.890 → 693.520
agent_rpm_arm64_fips -16.98 KiB (0.00% reduction) 682.989 → 682.972 → 688.480
agent_suse_amd64 -16.98 KiB (0.00% reduction) 705.322 → 705.306 → 708.380
agent_suse_amd64_fips -16.98 KiB (0.00% reduction) 700.604 → 700.587 → 703.990
agent_suse_arm64 -16.98 KiB (0.00% reduction) 686.906 → 686.890 → 693.520
agent_suse_arm64_fips -16.98 KiB (0.00% reduction) 682.989 → 682.972 → 688.480
docker_agent_amd64 -16.98 KiB (0.00% reduction) 767.549 → 767.532 → 770.720
docker_agent_arm64 -16.98 KiB (0.00% reduction) 773.692 → 773.676 → 780.200
docker_agent_jmx_amd64 -16.98 KiB (0.00% reduction) 958.427 → 958.411 → 961.600
docker_agent_jmx_arm64 -16.99 KiB (0.00% reduction) 953.290 → 953.274 → 959.800
15 successful checks with minimal change (< 2 KiB)
Quality gate Current Size
docker_cluster_agent_amd64 180.788 MiB
docker_cluster_agent_arm64 196.618 MiB
docker_cws_instrumentation_amd64 7.135 MiB
docker_cws_instrumentation_arm64 6.689 MiB
docker_dogstatsd_amd64 38.808 MiB
docker_dogstatsd_arm64 37.128 MiB
dogstatsd_deb_amd64 30.031 MiB
dogstatsd_deb_arm64 28.176 MiB
dogstatsd_rpm_amd64 30.031 MiB
dogstatsd_suse_amd64 30.031 MiB
iot_agent_deb_amd64 43.037 MiB
iot_agent_deb_arm64 40.155 MiB
iot_agent_deb_armhf 40.736 MiB
iot_agent_rpm_amd64 43.038 MiB
iot_agent_suse_amd64 43.038 MiB
On-wire sizes (compressed)
Quality gate Change Size (prev → curr → max)
agent_deb_amd64 -7.71 KiB (0.00% reduction) 173.354 → 173.347 → 174.490
agent_deb_amd64_fips -25.88 KiB (0.01% reduction) 172.299 → 172.274 → 173.750
agent_heroku_amd64 -17.68 KiB (0.02% reduction) 87.131 → 87.114 → 88.450
agent_msi +4.0 KiB (0.00% increase) 142.906 → 142.910 → 143.020
agent_rpm_amd64 -22.87 KiB (0.01% reduction) 176.128 → 176.105 → 177.660
agent_rpm_amd64_fips -15.99 KiB (0.01% reduction) 175.048 → 175.032 → 176.600
agent_rpm_arm64 -5.62 KiB (0.00% reduction) 159.362 → 159.357 → 161.260
agent_rpm_arm64_fips -25.99 KiB (0.02% reduction) 158.778 → 158.753 → 160.550
agent_suse_amd64 -22.87 KiB (0.01% reduction) 176.128 → 176.105 → 177.660
agent_suse_amd64_fips -15.99 KiB (0.01% reduction) 175.048 → 175.032 → 176.600
agent_suse_arm64 -5.62 KiB (0.00% reduction) 159.362 → 159.357 → 161.260
agent_suse_arm64_fips -25.99 KiB (0.02% reduction) 158.778 → 158.753 → 160.550
docker_agent_amd64 -5.51 KiB (0.00% reduction) 261.082 → 261.077 → 262.450
docker_agent_arm64 -7.1 KiB (0.00% reduction) 250.112 → 250.105 → 252.630
docker_agent_jmx_amd64 +3.01 KiB (0.00% increase) 329.711 → 329.714 → 331.080
docker_agent_jmx_arm64 -14.66 KiB (0.00% reduction) 314.740 → 314.726 → 317.270
docker_cluster_agent_amd64 neutral 63.877 MiB
docker_cluster_agent_arm64 neutral 60.160 MiB
docker_cws_instrumentation_amd64 neutral 2.994 MiB
docker_cws_instrumentation_arm64 neutral 2.726 MiB
docker_dogstatsd_amd64 neutral 15.026 MiB
docker_dogstatsd_arm64 neutral 14.351 MiB
dogstatsd_deb_amd64 neutral 7.945 MiB
dogstatsd_deb_arm64 neutral 6.823 MiB
dogstatsd_rpm_amd64 neutral 7.956 MiB
dogstatsd_suse_amd64 neutral 7.956 MiB
iot_agent_deb_amd64 neutral 11.276 MiB
iot_agent_deb_arm64 -2.67 KiB (0.03% reduction) 9.641 → 9.639 → 10.450
iot_agent_deb_armhf neutral 9.834 MiB
iot_agent_rpm_amd64 neutral 11.293 MiB
iot_agent_suse_amd64 neutral 11.293 MiB

@cit-pr-commenter
Copy link

cit-pr-commenter bot commented Jan 12, 2026

Regression Detector

CI Pass/Fail Decision

✅ 11/11 Quality Gates passed.

Quality Gate Details
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check lost_bytes: 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_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_logs, 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.

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 77d52438-fdd0-4f35-98b9-cc5e36a904f1

Baseline: adfcd28
Comparison: 62c7d4a
Diff

Optimization Goals: ✅ No significant changes detected

Experiments ignored for regressions

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

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +2.13 [-0.82, +5.09] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +2.13 [-0.82, +5.09] 1 Logs
quality_gate_logs % cpu utilization +1.48 [-0.01, +2.96] 1 Logs bounds checks dashboard
ddot_metrics memory utilization +0.92 [+0.69, +1.15] 1 Logs
otlp_ingest_logs memory utilization +0.59 [+0.49, +0.68] 1 Logs
quality_gate_metrics_logs memory utilization +0.52 [+0.32, +0.73] 1 Logs bounds checks dashboard
file_tree memory utilization +0.42 [+0.37, +0.48] 1 Logs
docker_containers_memory memory utilization +0.42 [+0.35, +0.49] 1 Logs
ddot_metrics_sum_cumulativetodelta_exporter memory utilization +0.33 [+0.10, +0.56] 1 Logs
ddot_metrics_sum_cumulative memory utilization +0.29 [+0.13, +0.45] 1 Logs
quality_gate_idle_all_features memory utilization +0.05 [+0.01, +0.09] 1 Logs bounds checks dashboard
quality_gate_idle memory utilization +0.05 [-0.00, +0.10] 1 Logs bounds checks dashboard
file_to_blackhole_1000ms_latency egress throughput +0.03 [-0.40, +0.45] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.00 [-0.12, +0.13] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.08, +0.08] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput +0.00 [-0.13, +0.13] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.04 [-0.46, +0.39] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.04 [-0.09, +0.01] 1 Logs
file_to_blackhole_500ms_latency egress throughput -0.05 [-0.42, +0.33] 1 Logs
otlp_ingest_metrics memory utilization -0.24 [-0.40, -0.09] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization -0.41 [-0.47, -0.36] 1 Logs
tcp_syslog_to_blackhole ingress throughput -0.42 [-0.50, -0.34] 1 Logs
ddot_logs memory utilization -0.70 [-0.76, -0.64] 1 Logs
ddot_metrics_sum_delta memory utilization -0.81 [-1.00, -0.63] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
docker_containers_cpu simple_check_run 10/10
docker_containers_memory memory_usage 10/10
docker_containers_memory simple_check_run 10/10
file_to_blackhole_0ms_latency lost_bytes 10/10
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency lost_bytes 10/10
file_to_blackhole_1000ms_latency 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_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 bounds checks dashboard
quality_gate_logs lost_bytes 10/10 bounds checks dashboard
quality_gate_logs memory_usage 10/10 bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 bounds checks dashboard
quality_gate_metrics_logs lost_bytes 10/10 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 bounds checks dashboard

Explanation

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

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

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

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

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

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

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

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

@GeorgeHahn GeorgeHahn changed the title Gates at the top Show SMP Quality Gate pass/fail at the top of reports Jan 13, 2026
@cit-pr-commenter
Copy link

Regression Detector

CI Pass/Fail Decision

✅ 11/11 Quality Gates passed.

Quality Gate Details
  • 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_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 06c68afa-a878-4053-a532-22eda69d3a41

Baseline: adfcd28
Comparison: 1cb9bee
Diff

Optimization Goals: ✅ No significant changes detected

Experiments ignored for regressions

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

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization -0.85 [-3.82, +2.12] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
ddot_metrics memory utilization +0.54 [+0.33, +0.75] 1 Logs
quality_gate_logs % cpu utilization +0.51 [-0.98, +2.00] 1 Logs bounds checks dashboard
quality_gate_idle memory utilization +0.25 [+0.21, +0.30] 1 Logs bounds checks dashboard
quality_gate_idle_all_features memory utilization +0.08 [+0.04, +0.11] 1 Logs bounds checks dashboard
uds_dogstatsd_to_api ingress throughput +0.00 [-0.12, +0.13] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput +0.00 [-0.13, +0.13] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.07, +0.06] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.02 [-0.06, +0.02] 1 Logs
otlp_ingest_metrics memory utilization -0.03 [-0.18, +0.13] 1 Logs
file_to_blackhole_500ms_latency egress throughput -0.05 [-0.43, +0.33] 1 Logs
file_to_blackhole_1000ms_latency egress throughput -0.05 [-0.47, +0.36] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.06 [-0.48, +0.36] 1 Logs
docker_containers_memory memory utilization -0.07 [-0.14, +0.01] 1 Logs
ddot_metrics_sum_cumulativetodelta_exporter memory utilization -0.12 [-0.35, +0.11] 1 Logs
otlp_ingest_logs memory utilization -0.14 [-0.25, -0.04] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization -0.18 [-0.23, -0.13] 1 Logs
file_tree memory utilization -0.21 [-0.27, -0.16] 1 Logs
tcp_syslog_to_blackhole ingress throughput -0.27 [-0.34, -0.21] 1 Logs
ddot_logs memory utilization -0.28 [-0.34, -0.21] 1 Logs
ddot_metrics_sum_delta memory utilization -0.31 [-0.52, -0.10] 1 Logs
ddot_metrics_sum_cumulative memory utilization -0.43 [-0.60, -0.26] 1 Logs
quality_gate_metrics_logs memory utilization -0.71 [-0.91, -0.50] 1 Logs bounds checks dashboard
docker_containers_cpu % cpu utilization -0.85 [-3.82, +2.12] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
docker_containers_cpu simple_check_run 10/10
docker_containers_memory memory_usage 10/10
docker_containers_memory simple_check_run 10/10
file_to_blackhole_0ms_latency lost_bytes 10/10
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency lost_bytes 10/10
file_to_blackhole_1000ms_latency 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_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 bounds checks dashboard
quality_gate_logs lost_bytes 10/10 bounds checks dashboard
quality_gate_logs memory_usage 10/10 bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 bounds checks dashboard
quality_gate_metrics_logs lost_bytes 10/10 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 bounds checks dashboard

Explanation

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

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

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

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

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

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

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

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

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

Labels

short review PR is simple enough to be reviewed quickly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants