Skip to content

ci: check every OR branch before excluding MSVC warning flags - #1551

Merged
zackees merged 2 commits into
masterfrom
ci/msvc-flags-or-branches
Oct 20, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/msvc-flags-or-branches

Conversation

@zackees

@zackees zackees commented Oct 20, 2026

Copy link
Copy Markdown
Member

Split from #1464 (cbdfd7a), as a RED test commit then the fix.

ci/msvc_flags.py treated if(NOT MSVC OR ENABLE_WARNINGS) as excluding MSVC, so -W flags behind an OR that MSVC can reach went unflagged. excludes_msvc now requires every OR alternative to exclude MSVC.

Local RED (uv run ci/test_msvc_flags.py on the test commit):

FAIL: test_or_can_enable_flags_for_msvc (condition='NOT MSVC OR ENABLE_WARNINGS')
FAIL: test_or_can_enable_flags_for_msvc (condition='UNIX OR ENABLE_WARNINGS')
Ran 14 tests in 0.171s
FAILED (failures=2)

GREEN: 14 tests OK; ./lint passes. CI tooling only, no ledger line.

@zackees
zackees enabled auto-merge October 20, 2026 20:12
@zackees
zackees added this pull request to the merge queue Oct 20, 2026
Merged via the queue into master with commit 2359a9c Oct 20, 2026
22 checks passed
@zackees
zackees deleted the ci/msvc-flags-or-branches branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant