Skip to content

chore(package-split): freeze the wave 1 files - #22019

Merged
gnufede merged 4 commits into
gnufede/package-split-prepfrom
gnufede/package-split-freeze
Nov 24, 2026
Merged

gnufede merged 4 commits into
gnufede/package-split-prepfrom
gnufede/package-split-freeze

Conversation

@gnufede

@gnufede gnufede commented Nov 23, 2026

Copy link
Copy Markdown
Member

Description

Stacked on #22018 (base gnufede/package-split-prep). This freezes every file of the package split's first wave, so nothing can drift between the port and the bridge. It replaces #21967, #21973 and #21990.

33 files are frozen, with hashes of their content after #22018:

  • Moving whole to ddtrace-internal (DataDog/datadog-apm-python#77): utils/cache.py, utils/paths.py, utils/obfuscation.py, utils/time.py, compat.py, assembly.py, logger.py, settings/__init__.py, settings/env.py, module.py, bytecode_injection/core.py.
  • Partially moving, frozen whole so the ported symbols stay identical:
    • utils/__init__.py (get_argument_value, set_argument_value, ArgumentError);
    • utils/formats.py (asbool);
    • utils/inspection.py (resolved_code_origin);
    • bytecode_injection/__init__.py (HookType, INJECTION_ASSEMBLY).
  • Moving to ddtrace-coverage (DataDog/datadog-apm-python#82): all 18 files under ddtrace/internal/coverage/.

src/native is not frozen here. The native switch is a separate step that waits on the profiling team's agreement on the profiling FFI approach.

The bridge PR, landing after ddtrace-internal 0.4.0 and ddtrace-coverage 0.1.0 are released, replaces these modules with re-exports and removes these entries in the same PR.

Testing

Only frozen-paths.txt changes. All 33 hashes were checked against the committed file contents (the same comparison freeze-check.yml makes).

Risks

Additional Notes

None.

@cit-pr-commenter-54b7da

Copy link
Copy Markdown

Codeowners resolved as

Resolved from the full PR diff against gnufede/package-split-prep using the target branch CODEOWNERS file.
CODEOWNERS team requests not listed below are not required by the current file set.

frozen-paths.txt                                                        @DataDog/apm-core-python

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Dependency direction analysis

⚠️ Existing dependency direction violations

There are 22 dependency direction violations that already exist on the base branch and have not been changed by this PR.

Show existing violations (showing 5 of 22 highest severity)
ddtrace.internal.tracemethods -×-> ddtrace.trace  (internal-core -> product:tracing, score=103)
ddtrace.llmobs._integrations.bedrock_agents -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=101)
ddtrace.llmobs._integrations.base -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=101)
ddtrace.internal.span_bus -×-> ddtrace._trace.span  (internal-core -> product:tracing, score=35)
ddtrace.llmobs._llmobs -×-> ddtrace._trace.span  (product:llmobs -> product:tracing, score=33)

To see all violations, download the layers-base.json and layers-pr.json artifacts from this CI job and run:

uv run --script scripts/import-analysis/layers.py compare layers-base.json layers-pr.json

Freeze every file whose code moves to ddtrace-internal and
ddtrace-coverage in the first wave of the package split, so nothing
drifts between the port and the bridge. Partially moved files
(utils/__init__, utils/formats, utils/inspection,
bytecode_injection/__init__) are frozen whole, which keeps the ported
symbols identical. The bridge PR unfreezes them as it lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gnufede
gnufede force-pushed the gnufede/package-split-prep branch from 4339f64 to fd04a4e Compare November 23, 2026 15:25
@gnufede
gnufede force-pushed the gnufede/package-split-freeze branch from 7cdde39 to 4fdef54 Compare November 23, 2026 15:25
gnufede and others added 2 commits November 24, 2026 07:26
… local/freeze-rewrite

# Conflicts:
#	frozen-paths.txt
main's fixes for logged exceptions on Python 3.9 (#22026) and run_module
hooks (#22027) changed logger.py and module.py, so their frozen hashes
must match the merged content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gnufede gnufede added the changelog/no-changelog A changelog entry is not required for this PR. label Nov 24, 2026
@gnufede
gnufede marked this pull request as ready for review November 24, 2026 16:30
@gnufede
gnufede requested a review from a team as a code owner November 24, 2026 16:30
@gnufede
gnufede requested review from emmettbutler and removed request for a team November 24, 2026 16:30
@gnufede
gnufede merged commit 852f85f into gnufede/package-split-prep Nov 24, 2026
5 checks passed
@gnufede
gnufede deleted the gnufede/package-split-freeze branch November 24, 2026 16:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T16:31:08.550304Z 8dcb474 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Labels

changelog/no-changelog A changelog entry is not required for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant