[PR #2136] [CLOSED] setup: reject conflicting --calibrate options (#2036) #3875

Closed
opened 2026-11-07 15:31:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2136
Author: @nekomario28
Created: 10/12/2026
Status: ❌ Closed

Base: main ← Head: fix/calibrate-cli-conflict-2036


📝 Commits (1)

  • 47e623a setup: reject conflicting calibration options (#2036)

📊 Changes

2 files changed (+35 additions, -0 deletions)

View changed files

📝 setup.py (+4 -0)
➕ tools/test_setup_calibrate_cli.py (+31 -0)

📄 Description

Fixes #2036.

Summary

Reject incompatible --calibrate options instead of silently performing ordinary setup.

Changes

  • Reject --calibrate combined with --model, --family, --setup, or --check.
  • Show a clear argparse error and exit status 2 before setup side effects.
  • Add regression tests covering all four conflicting combinations.

Standalone calibration and the separately delegated SYCL setup path are unchanged.

Validation

  • Ubuntu / Python 3.12: 16/16 regression tests passed.
  • Tested file contents match this PR branch.
  • No GPU hardware testing was performed.

GitHub Actions: https://github.com/nekomario28/Strata/actions/runs/38272872006


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2136 **Author:** [@nekomario28](https://github.com/nekomario28) **Created:** 10/12/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/calibrate-cli-conflict-2036` --- ### 📝 Commits (1) - [`47e623a`](https://github.com/Niko1221/Strata/commit/47e623a9aa714214ea1ee8b91bb361aabb4763fb) setup: reject conflicting calibration options (#2036) ### 📊 Changes **2 files changed** (+35 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+4 -0) ➕ `tools/test_setup_calibrate_cli.py` (+31 -0) </details> ### 📄 Description Fixes #2036. ## Summary Reject incompatible `--calibrate` options instead of silently performing ordinary setup. ## Changes - Reject `--calibrate` combined with `--model`, `--family`, `--setup`, or `--check`. - Show a clear argparse error and exit status 2 before setup side effects. - Add regression tests covering all four conflicting combinations. Standalone calibration and the separately delegated SYCL setup path are unchanged. ## Validation - Ubuntu / Python 3.12: **16/16 regression tests passed**. - Tested file contents match this PR branch. - No GPU hardware testing was performed. GitHub Actions: https://github.com/nekomario28/Strata/actions/runs/38272872006 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:31:22 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3875
No description provided.