[PR #756] ci: collect all failures in Linux and macOS standard-library jobs, reconfigure runner streams #794

Open
opened 2026-11-26 20:19:04 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/756
Author: @abnalstlll-byte
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: feat/pipeline-ci-resilience


📝 Commits (1)

  • f9af30b ci: collect all failures in Linux and macOS standard-library jobs, reconfigure runner streams

📊 Changes

6 files changed (+42 additions, -3 deletions)

View changed files

📝 .github/workflows/ci.yml (+12 -2)
📝 scripts/run_semantic_tests.py (+2 -1)
📝 scripts/run_wine_tests.py (+5 -0)
📝 tests/test_ci_registration.py (+12 -0)
📝 tests/test_run_semantic_tests.py (+5 -0)
📝 tests/test_run_wine_tests.py (+6 -0)

📄 Description

Summary

  • In .github/workflows/ci.yml, update stdlib-tests-linux and macos-python jobs to collect all failed files in failed+=("$t") and emit ::error file=$t::$t failed before exiting non-zero (mirroring the Windows check job), preventing early-exit from concealing downstream test failures.
  • In macos-python, ensures the background semantic discover job is reliably waited on and its log output printed even when standard-library test files fail.
  • In scripts/run_semantic_tests.py and scripts/run_wine_tests.py, adds sys.stderr.reconfigure(errors="replace") under if __name__ == "__main__": so redirected streams on strict ANSI code pages under python -I handle unencodable characters gracefully without raising UnicodeEncodeError.
  • Adds regression unit tests in tests/test_ci_registration.py (asserting Linux and macOS jobs collect all failures), tests/test_run_semantic_tests.py, and tests/test_run_wine_tests.py.

Verification

  • python -I tests/test_ci_registration.py PASS (17 tests in 12.4s).
  • python -I tests/test_run_wine_tests.py PASS (64 tests in 2.3s).
  • python -I tests/test_run_semantic_tests.py PASS (20 tests in 10.4s).
  • python -I tests/test_runner_calls_all_tests.py PASS (3 tests in 2.3s).
  • python -I scripts/check_no_game_data.py clean (0 matches, 100% clean-room compliant).
  • All modified files verified LF line endings.

AI-assisted.


🔄 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/756 **Author:** [@abnalstlll-byte](https://github.com/abnalstlll-byte) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/pipeline-ci-resilience` --- ### 📝 Commits (1) - [`f9af30b`](https://github.com/ubiquitarianism/leonida/commit/f9af30b85429372daed10312ab1094c4d110708e) ci: collect all failures in Linux and macOS standard-library jobs, reconfigure runner streams ### 📊 Changes **6 files changed** (+42 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+12 -2) 📝 `scripts/run_semantic_tests.py` (+2 -1) 📝 `scripts/run_wine_tests.py` (+5 -0) 📝 `tests/test_ci_registration.py` (+12 -0) 📝 `tests/test_run_semantic_tests.py` (+5 -0) 📝 `tests/test_run_wine_tests.py` (+6 -0) </details> ### 📄 Description ### Summary - In `.github/workflows/ci.yml`, update `stdlib-tests-linux` and `macos-python` jobs to collect all failed files in `failed+=("$t")` and emit `::error file=$t::$t failed` before exiting non-zero (mirroring the Windows `check` job), preventing early-exit from concealing downstream test failures. - In `macos-python`, ensures the background `semantic` discover job is reliably waited on and its log output printed even when standard-library test files fail. - In `scripts/run_semantic_tests.py` and `scripts/run_wine_tests.py`, adds `sys.stderr.reconfigure(errors="replace")` under `if __name__ == "__main__":` so redirected streams on strict ANSI code pages under `python -I` handle unencodable characters gracefully without raising `UnicodeEncodeError`. - Adds regression unit tests in `tests/test_ci_registration.py` (asserting Linux and macOS jobs collect all failures), `tests/test_run_semantic_tests.py`, and `tests/test_run_wine_tests.py`. ### Verification - `python -I tests/test_ci_registration.py` PASS (17 tests in 12.4s). - `python -I tests/test_run_wine_tests.py` PASS (64 tests in 2.3s). - `python -I tests/test_run_semantic_tests.py` PASS (20 tests in 10.4s). - `python -I tests/test_runner_calls_all_tests.py` PASS (3 tests in 2.3s). - `python -I scripts/check_no_game_data.py` clean (0 matches, 100% clean-room compliant). - All modified files verified LF line endings. AI-assisted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#794
No description provided.