Repository navigation
fix(internal): run fork PR #21428 through CI [DO NOT MERGE] - #21448
taegyunkim wants to merge 4 commits into
Conversation
Dependency direction analysis
|
Codeowners resolved asResolved from the full PR diff against |
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 97a290e | Docs | View more details | Give us feedback! |
BenchmarksBenchmark execution time: 2026-11-09 16:30:26 Comparing candidate commit 97a290e in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 584 metrics, 10 unstable metrics, 1 flaky benchmarks without significant changes.
|
The import hook's chained loader restores the original loader on the module after import, but set it on `module.spec` instead of `module.__spec__`. The AttributeError was swallowed, so `__spec__.loader` kept pointing at the chained loader while `__loader__` was restored. On Python 3.15 this makes traceback formatting emit a DeprecationWarning for file modules imported after ddtrace. Fixes #21425 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oader A wrapped loader can replace `__loader__` / `__spec__.loader` while it executes the module; `importlib.util.LazyLoader` swaps in the eager loader this way. Restoring unconditionally put the LazyLoader back, so the first attribute access re-entered lazy loading through the wrong loader and module attributes were missing on Python 3.12+. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7e6d88a to
97a290e
Compare
## 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 - **Edits are blocked** to these files until the bridge lands. Open PRs that touch them must merge first or rebase afterwards. Earlier we saw `module.py` (#21428, #21448), `coverage/instrumented_mode.py` and `coverage/util.py` (#21405), and older prototype drafts. - **Hash timing.** Hashes are taken from #22018's content. If #22018 changes before merging, they need regenerating. ## Additional Notes None. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Description
This PR exists only to run CI for a fork PR. Do not merge.
Original PR: #21428
Head commit:
97a290e680bcc02806037a30c83729f1085d1c1a, identical to the original PR.