Skip to content

Retain Python traces for timed-out Windows tests - #2774

Draft
zaniebot wants to merge 3 commits into
mainfrom
zb/retain-python-timeout-traces
Draft

zaniebot wants to merge 3 commits into
mainfrom
zb/retain-python-timeout-traces

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Test commands capture uv's stderr until it exits, so a timeout can hide evidence of where the test stalled. Add an opt-in internal file sink for Python discovery, archive handling, interpreter queries and locks, and upload those traces when Windows tests fail.

@zaniebot
zaniebot deployed to automations October 15, 2026 18:35 — with GitHub Actions Active
@zaniebot
zaniebot deployed to automations October 15, 2026 18:40 — with GitHub Actions Active
Comment thread crates/uv/src/logging.rs
Comment on lines +159 to +161
Ok(tracing_subscriber::fmt::layer()
.with_ansi(false)
.with_timer(uptime())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P3] Reuse the ANSI-stripping field formatter for diagnostic files

with_ansi(false) only disables styling added by tracing; it leaves escape sequences embedded in messages intact. For example, discovery's Error::is_critical logs interpreter errors whose StatusCodeError and UnexpectedResponseError implementations color the [stdout] and [stderr] headings. These sequences will appear in the uploaded diagnostic files. Add .fmt_fields(uv_fields()), as the stderr layer already does, to reuse the existing handling for colored field values.

@astral-automations-bot astral-automations-bot Bot added the internal:ci-flake Related to internal CI flakes label Oct 15, 2026
@zaniebot
zaniebot deployed to automations October 15, 2026 18:57 — with GitHub Actions Active
@codspeed

codspeed Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 69 untouched benchmarks
⏩ 35 skipped benchmarks1


Comparing zb/retain-python-timeout-traces (9ae2735) with main (a03d0cd)

Open in CodSpeed

Footnotes

  1. 35 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/retain-python-timeout-traces branch from 9ae2735 to 268772b Compare October 21, 2026 17:25

This branch was successfully deployed

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

Labels

internal:ci-flake Related to internal CI flakes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant