Skip to content

[upstream #1103] Scripts: require peak commit measurements for smoke comparisons - #55

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1103
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1103

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

I fixed the PR checker accepting a memory comparison when either smoke run has no usable peak commit. Missing, empty and n/a measurements parsed as None, so the 125% memory-growth check was skipped.

What is in it

  • Require a numeric peak-commit measurement from both matched smoke runs before accepting the comparison. The existing growth threshold is unchanged.
  • Cover missing measurements on either side and the 125% boundary; update the existing minimal smoke fixture.
  • Clarify the measurement requirement in CONTRIBUTING.md.
  • This also rejects an incomplete baseline that crashed before recording memory; it does not manufacture a comparison from unavailable measurements. Separate from Scripts: require numeric crash and device removal counts xcl-dev/xcl#635, which handles crash/device-removal counters.

Tested

  • macOS Darwin 24.6.0, arm64; Python 3.15.2. No GPU used.

  • Before the fix, python3 -B -m unittest discover -s scripts -p test_pr_check_memory.py -v exposed 8 accepted invalid subcases.

  • After the fix, python3 -B -m unittest discover -s scripts -p 'test_pr_check*.py' -v: 11 passed, 0 failed, 0 skipped.

  • Windows 11 Pro ARM64 10.0.26100.1742 in UTM, Python 3.14.0 ARM64; no GPU used. Exact source archive 49b30dc1f2333361a94ff739912b2d6a78dbe04c: C:\xcl-tests\python\python.exe -B -m unittest discover -s scripts -p "test_pr_check*.py" -v: 11 passed, 0 failed, 0 skipped.

Not tested

  • Live GitHub Actions execution of the modified checker, and the Rust/GPU suite. No runtime code changes.

AI use

  • I used omp (openai-codex/gpt-6-astra) to identify the gap, write the checker change and regressions, run the Python tests, and prepare this description.

Mirror of xcl-dev#1103 (auto-synced, do not edit).

An absent or n/a peak commit parsed as None and skipped the memory
comparison, so incomplete smoke reports passed the documented limit.

Require a measurement from both matching runs. Keep the existing growth
threshold, update the minimal smoke fixture and document the requirement.

Eight invalid subcases were accepted before the fix. The focused checker
suite now passes: 11 tests, 0 failures, 0 skipped on macOS/Python 3.15.2.

Assisted-by: omp (openai-codex/gpt-6-astra)
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1103 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1103 branch November 25, 2026 00:12
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.

2 participants