[PR #652] [MERGED] ci: handle UTF-8 failure list encoding (CI-FAILURE-LIST-ENCODING) #692

Closed
opened 2026-11-26 20:18:43 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 979e899 ci: 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.py reads 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.py and git 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_validation and test_unary_f16_validation require spirv-as and spirv-val, which are missing on this machine. test_mutations exceeded 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 for tools/exe_sha.py and tools/pr_conflict_label.py.

GPUs tested: n/a

AI-assisted: yes (OpenAI Codex)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • A new translator rule is in the contract table of 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/652 **Author:** [@promise-ssss](https://github.com/promise-ssss) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `codex/ci-failure-list-encoding` --- ### 📝 Commits (1) - [`979e899`](https://github.com/ubiquitarianism/leonida/commit/979e899e652a38ac7dfb6b16e80107cd56dc05f4) ci: accept UTF-8 BOM in expected failure lists ### 📊 Changes **2 files changed** (+27 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `scripts/ci_expected_failures.py` (+10 -8) 📝 `tests/test_ci_expected_failures.py` (+17 -0) </details> ### 📄 Description Claimed in the coordination issue as: CI-FAILURE-LIST-ENCODING ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128875413)) ### What and why `ci_expected_failures.py` reads 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.py` and `git 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_validation` and `test_unary_f16_validation` require `spirv-as` and `spirv-val`, which are missing on this machine. `test_mutations` exceeded 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 for `tools/exe_sha.py` and `tools/pr_conflict_label.py`. GPUs tested: n/a AI-assisted: yes (OpenAI Codex) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:43 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
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
starred/leonida#692
No description provided.