Skip to content

[pull] master from rust-lang:master#7

Merged
pull[bot] merged 3 commits into
coleleavitt:masterfrom
rust-lang:master
Jul 20, 2026
Merged

[pull] master from rust-lang:master#7
pull[bot] merged 3 commits into
coleleavitt:masterfrom
rust-lang:master

Conversation

@pull

@pull pull Bot commented Jul 20, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )


Summary by cubic

Fix timing reports to only include units the job queue actually ran and to handle no-work sessions correctly. Removes zero-duration rows and clarifies behavior between --timings and cargo report timings (fixes rust-lang#17212).

  • Bug Fixes

    • Report only units that started; exclude fresh units and those run outside the queue, and drop references to non-started units.
    • --timings: always writes a report; shows an empty dataset (const UNIT_DATA = [];) when nothing ran.
    • cargo report timings: errors on logs with no units with “no timing data found in log”.
    • Added error_if_no_units to prepare_context and updated call sites to set it appropriately.
  • Tests

    • Doctest units are not reported as zero-duration rows.
    • Fresh rebuilds produce an empty dataset instead of zero-duration rows.
    • Idle sessions: cargo report timings errors; --timings still generates an empty report.

Written for commit e09f57a. Summary will update on new commits.

Review in cubic

hirehamir and others added 3 commits July 19, 2026 12:52
report entries

This captures the current behavior of the report.
# What Does This PR Try to Resolve?

Fixes #17212

# How to Test and Review This PR?

The first commit adds tests pinning the current behavior.

The second commit fixes the underlying issues and updates the tests as
needed.
@pull pull Bot locked and limited conversation to collaborators Jul 20, 2026
@pull pull Bot added the ⤵️ pull label Jul 20, 2026
@pull
pull Bot merged commit e09f57a into coleleavitt:master Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timing report for tests has zero-second entries for doc tests

2 participants