Skip to content

feat(python): add alloc gate scenarios for 3.14/3.15 migration (PROF-15511) - #170

Draft
vlad-scherbich wants to merge 2 commits into
vlad/python-cpu-gate-scenariosfrom
vlad/python-alloc-gate-scenarios
Draft

feat(python): add alloc gate scenarios for 3.14/3.15 migration (PROF-15511)#170
vlad-scherbich wants to merge 2 commits into
vlad/python-cpu-gate-scenariosfrom
vlad/python-alloc-gate-scenarios

Conversation

@vlad-scherbich

@vlad-scherbich vlad-scherbich commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Prev: #169 | Next: #171

Motivation

Allocation profiling (alloc-space, alloc-samples) must produce consistent profiles across 3.14 and 3.15 — a key migration check for the memory collector and stack unwinder interaction.

Summary

Adds paired python_alloc_3.14/3.15 scenarios:

  • Reuses python_basic_memory_3.11 allocation workload
  • Stack and lock collectors disabled to isolate alloc signals
  • Asserts alloc-space and alloc-samples in expected profiles
  • Both 3.15 runs wheel-only via DDTRACE_INSTALL_URL

Gate grows 8 → 10 scenarios.

Test plan

  • go test -run TestSchemaValidation
  • ruff check on scenario sources
  • Downstream gate with DDTRACE_INSTALL_URL

@vlad-scherbich
vlad-scherbich force-pushed the vlad/python-alloc-gate-scenarios branch from c8d1687 to 551bc6b Compare July 27, 2026 19:20
@vlad-scherbich
vlad-scherbich force-pushed the vlad/python-alloc-gate-scenarios branch from 551bc6b to c486a46 Compare July 27, 2026 19:33
@vlad-scherbich
vlad-scherbich force-pushed the vlad/python-alloc-gate-scenarios branch from c486a46 to ea82843 Compare July 27, 2026 19:38
@vlad-scherbich
vlad-scherbich force-pushed the vlad/python-alloc-gate-scenarios branch from ea82843 to 4c68fa7 Compare July 27, 2026 21:41
@vlad-scherbich
vlad-scherbich force-pushed the vlad/python-alloc-gate-scenarios branch from 4c68fa7 to fc29e5a Compare July 27, 2026 21:45
@vlad-scherbich
vlad-scherbich force-pushed the vlad/python-alloc-gate-scenarios branch from fc29e5a to f59c64e Compare July 27, 2026 22:01
@vlad-scherbich
vlad-scherbich force-pushed the vlad/python-alloc-gate-scenarios branch from f59c64e to 43654d5 Compare July 27, 2026 22:05
@vlad-scherbich vlad-scherbich changed the title feat(python): add alloc gate scenarios for 3.14/3.15 migration feat(python): add alloc gate scenarios for 3.14/3.15 migration (PROF-15511) Jul 27, 2026
@vlad-scherbich
vlad-scherbich force-pushed the vlad/python-alloc-gate-scenarios branch from 43654d5 to bb334c5 Compare July 27, 2026 22:29
Add paired python_alloc scenarios asserting alloc-space and alloc-samples
with thread-name labels, reusing the python_basic_memory workload. Gate
grows from 12 to 14 scenarios.
Python 3.14 alloc profiles use Target.method stack frames and numeric thread
IDs, so drop MainThread label assertions and update stack regexes.
@vlad-scherbich
vlad-scherbich force-pushed the vlad/python-alloc-gate-scenarios branch from 86ac60a to 7773030 Compare July 28, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant