Skip to content

chore(package-split): freeze the utils, compat, assembly and bytecode files - #22133

Open
gnufede wants to merge 2 commits into
mainfrom
gnufede/package-split-utils
Open

gnufede wants to merge 2 commits into
mainfrom
gnufede/package-split-utils

Conversation

@gnufede

@gnufede gnufede commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Description

Part of replacing #22018 with smaller PRs on main. Wave-1 files moving to ddtrace-internal, frozen as they are on main:

utils/{init,cache,inspection,obfuscation,paths}.py, compat.py, assembly.py, bytecode_injection/{init,core}.py (9 entries; hashes identical to #22018's).

#22018 changed none of these files; it only touched utils/formats.py, utils/http.py, utils/time.py and module.py in this area. Handled as follows:

  • module.py and utils/time.py: frozen in the PRs carrying their fixes (fix-shared-loader-get-code, fix-stopwatch-restart).
  • utils/formats.py: the change uses logger_name() from the logger refactor (refactor(logging): make ddtrace.internal.logger a package and normalize moved module names #22122), so it is not on main yet. It is not frozen here; the PR that ports the change should freeze it (removal is the only way to lift a freeze, so freezing now would force an unfreeze later).
  • utils/http.py: import-only change (_USER_ID_KEY from internal.constants); not on the freeze list, so left out.
  • utils.time already has no logger on main.

Testing

N/A.

🤖 Generated with Claude Code

… files

These files move to ddtrace-internal in the package split and are
unchanged by the prep work, so freezing them as they are on main keeps the
ported copies from drifting. module.py and utils/time.py are frozen in
the PRs that fix them; utils/formats.py is frozen with its logger change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gnufede gnufede added the changelog/no-changelog A changelog entry is not required for this PR. label Nov 26, 2026
@cit-pr-commenter-54b7da

Copy link
Copy Markdown

Codeowners resolved as

Resolved from the full PR diff against main 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

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.base -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=101)
ddtrace.llmobs._integrations.bedrock_agents -×-> 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

@gnufede
gnufede marked this pull request as ready for review November 26, 2026 17:16
@gnufede
gnufede requested a review from a team as a code owner November 26, 2026 17:16
@gnufede
gnufede requested review from brettlangdon and removed request for a team November 26, 2026 17:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 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-26T17:18:15.612522Z 2fd0522 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.

@datadog-official datadog-official Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

More details

The nine freeze entries contain hashes matching the reviewed file contents and follow the freeze checker’s expected format.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 2fd0522

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