Skip to content

Fix benchmark diff scraping for path-qualified markers#3609

Merged
Lukasa merged 2 commits into
apple:mainfrom
fallintoplace:benchmark-diff-marker-scrape
Jun 22, 2026
Merged

Fix benchmark diff scraping for path-qualified markers#3609
Lukasa merged 2 commits into
apple:mainfrom
fallintoplace:benchmark-diff-marker-scrape

Conversation

@fallintoplace

@fallintoplace fallintoplace commented May 26, 2026

Copy link
Copy Markdown
Contributor

Motivation

scripts/check_benchmark_thresholds.sh started printing path-qualified diff markers in #3602 so multi-package benchmark runs can identify which package produced each diff.

dev/thresholds-from-benchmark-output.sh still scrapes the old exact marker line, which means local threshold updates from CI logs can miss the diff entirely once the new marker format appears.

Changes

Relax the scraper to match the stable === BEGIN DIFF prefix instead of the old exact line, preserving compatibility with both the original marker and the newer path-qualified form.

Validation

  • bash -n dev/thresholds-from-benchmark-output.sh
  • Verified the scrape pipeline against both === BEGIN DIFF === and === BEGIN DIFF (Benchmarks) === sample log lines

@fallintoplace
fallintoplace marked this pull request as ready for review May 26, 2026 22:21

@Lukasa Lukasa 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.

Nice change, thanks!

@Lukasa Lukasa added the semver/none No version bump required. label Jun 22, 2026
@Lukasa
Lukasa enabled auto-merge (squash) June 22, 2026 12:49
@Lukasa
Lukasa merged commit a863732 into apple:main Jun 22, 2026
49 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants