← Back to Pull requests

Remove omnibus/config/software/python3.rb #61031

Closed
unknown closed this pull request without merging on Nov 24, 2026 23:58 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 16:09 UTC
Author

What does this PR do?


Remove unneeded python spec in legacy omnibus

  • Lift python3 dependency up to the omnibus scripts that depend on it.

  • no license from rb, pick it up with bazel

  • - Capture the license we have been using from the omnibus cache
    - [ABLD-604] Follow format to be adopted in https://github.com/DataDog/datadog-agent/pull/59924
    - add the missing license declaration for cpython
    - clarify why the actual upstream license text (in html) is not what we want.

    Motivation

  • omnibus deprecation blocker
  • Describe how you validated your changes


  • CI

  • Check that the correct license would be in the package.

  • $ bazel build //packages/agent/macos:license_files
    $ more <redact>/Caches/bazel/<redact>/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/packages/agent/macos/LICENSES/cpython-Python-2.0
    Python License (Python-2.0)
    [OSI Approved License]
    Python License, Version 2 (Python-2.0)
    
    PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
    --------------------------------------------
    ...
    

  • Check the packge metadata

  • $ bazel cquery --output=build @cpython//:package_metadata
    <redact>/Caches/bazel/<redact>/external/+http_archive+cpython/BUILD.bazel:27:17
    _package_metadata(
      name = "package_metadata",
      generator_name = "package_metadata",
      generator_function = "package_metadata",
      generator_location = "<redact>/external/+http_archive+cpython/BUILD.bazel:27:17",
      package_metadata = [],
      attributes = ["@cpython//:license"],
      purl = "pkg:generic/cpython@3.13.18?download_url=https:%2F%2Fpython.org%2Fftp%2Fpython%2F3.13.18%2FPython-3.13.18.tgz",
    )
    $ bazel build @cpython//:license
    $ cat <redact>/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/external/+http_archive+cpython/license.package-attribute.json
    {"kind":"bazel-contrib.supply-chain.attribute.license","label":"@@+http_archive+cpython//:license","license_kinds":[{"identifier":"@rules_license+//licenses/spdx:Python-2.0","name":"Python-2.0"}],"text":"third_party/licenses/text/Python-2.0"}
    

  • verify different in opt/datadog-agent/version-manifest.json. Compare file from .deb before and after. Missing the deleted omnibus script. Note, this hints that the file is sort of meaningless. We have been doing this gradually for a year and no one noticed.

  • Created https://datadoghq.atlassian.net/browse/ABLD-607 to resolve that.
    $ diff opt*/datadog-agent/version-manifest.json
    14,23d13
    <     "python3": {
    <       "locked_version": "3.13.15",
    <       "locked_source": null,
    <       "source_type": "project_local",
    <       "described_version": "3.13.15",
    <       "license": "Python-2.0",
    <       "dependencies": [
    <
    <       ]
    <     },
    31c21
    <         "python3"
    ---
    >
    51d40
    <         "python3",
    

  • verify python license in MSI (codex finding).

  • - Capture windows .zip file from build pipeline. datadog-agent-7.87.0-devel.git.1140.de780e1.pipeline.155794176-1-x86_64.zip
    $ unzip -v datadog-agent-7.87.0-devel.git.1140.de780e1.pipeline.155794176-1-x86_64.zip | grep Python-2
        9560  Defl:N     2882  70% 11-23-2026 16:54 fd01ffe9  LICENSES/python3-Python-2.0
    

    Additional Notes

    [ABLD-604]: https://datadoghq.atlassian.net/browse/ABLD-604

    Diff: 405 lines (+303 / -102) across 5 files Reviewer: chouquette Review duration: 6228m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.68) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 405 lines diff across 5 files
    0.68
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.359
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Real PR Conversation Timeline
    1 comments
    "Review active on #61031"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.0% (HIGH) · Higher = larger blast radius
    68.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 26.9% · Safe to merge
    26.9%