mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:25:53 +01:00
[PR #652] [MERGED] ci: handle UTF-8 failure list encoding (CI-FAILURE-LIST-ENCODING) #692
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#692
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/652
Author: @promise-ssss
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:codex/ci-failure-list-encoding📝 Commits (1)
979e899ci: accept UTF-8 BOM in expected failure lists📊 Changes
2 files changed (+27 additions, -8 deletions)
View changed files
📝
scripts/ci_expected_failures.py(+10 -8)📝
tests/test_ci_expected_failures.py(+17 -0)📄 Description
Claimed in the coordination issue as: CI-FAILURE-LIST-ENCODING (claim)
What and why
ci_expected_failures.pyreads failure lists as UTF-8 with an optional BOM. A BOM used to become part of the first test name and turn an expected failure into a CI error. Invalid UTF-8 now produces a one-line input diagnostic and exit status 2. The regression tests use synthetic lists.Tested
Windows 11 build 26300, Python 3.12.10.
python -I -B tests/test_ci_expected_failures.py— 14 passed. Both new tests failed against the original implementation.python -m compileall -q make_game.py scripts tools tests— passed with a temporary bytecode cache.python -I -B tests/test_text_write_line_endings.py— 3 passed.python -I -B scripts/check_no_game_data.py scripts/ci_expected_failures.py tests/test_ci_expected_failures.pyandgit diff --check— passed.python -I -B scripts/run_semantic_tests.py tests/semantic --jobs 12 --timeout 300— 465 files, 6,105 tests reported, 3 failing files.test_sopc_validationandtest_unary_f16_validationrequirespirv-asandspirv-val, which are missing on this machine.test_mutationsexceeded 300 seconds. A sequential retry also reached its 600-second limit.python -I -B tests/test_tool_stdout_encoding.py— the same baseline assertion fails fortools/exe_sha.pyandtools/pr_conflict_label.py.GPUs tested: n/a
AI-assisted: yes (OpenAI Codex)
Checklist
mainand merges cleanly.docs/design.md, with how it was confirmed. (Not applicable.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.