mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1856] scripts/ci_expected_failures: detect Windows crash codes, dedup annotations, avoid blank stdout #1866
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1866
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1856
Author: @kirigayakazima
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/ci-expected-failures-safety📝 Commits (1)
20764beFix ci_expected_failures crash detection, dedup, and empty stdout📊 Changes
2 files changed (+50 additions, -3 deletions)
View changed files
📝
scripts/ci_expected_failures.py(+7 -3)📝
tests/test_ci_expected_failures.py(+43 -0)📄 Description
Claimed in the coordination issue as: CI-EXPECTED-FAILURES-WINDOWS-CRASH-AND-DEDUP (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163483985)
What and why
failedandexpectedin insertion order insidejudge()inscripts/ci_expected_failures.pyso repeated test names or duplicate workflow arguments do not emit duplicate GitHub Actions workflow commands (::error::,::warning::,::notice::).128 < status <= 255tostatus < 0 or status > 128, catching unsigned Windows NTSTATUS / Win32 crash exit codes (such as0xC0000005/3221225477and0xC00000FD/3221225725) in addition to POSIX signal codes128+N.main()only whenlinesis non-empty so clean runs emit empty stdout instead of a stray blank line.tests/test_ci_expected_failures.pycovering Windows NTSTATUS exit codes, order-preserving deduplication, and cleanmain()stdout output.Tested
python -I tests/test_ci_expected_failures.py -v->Ran 17 tests in 0.054s(OK).upstream/main98c2f777with updated tests copied into detached worktree):Ran 17 tests in 0.059s(FAILED (failures=3)on all 3 new regression tests).python -I tests/test_ci_registration.py(Ran 16 tests in 5.226s,OK),python -I tests/test_text_write_line_endings.py(Ran 3 tests in 13.044s,OK),python -I scripts/check_no_game_data.py(exit 0),python -I -m compileall -q(exit 0),git diff --check(exit 0).GPUs tested: n/a (host CI script and unittest coverage)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.