[PR #1673] [CLOSED] ci: fix the three repository checks that fail on main #1685

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1673
Author: @xel1uz
Created: 11/25/2026
Status: ❌ Closed

Base: main ← Head: fix/main-consistency-checks


📝 Commits (1)

  • 262c104 ci: fix the three repository checks that fail on main

📊 Changes

3 files changed (+36 additions, -20 deletions)

View changed files

📝 .github/workflows/runtime.yml (+2 -0)
📝 tests/test_runner_calls_all_tests.py (+30 -20)
📝 tools/compute_heap_layout_census.py (+4 -0)

📄 Description

Item ID: CI-MAIN-CONSISTENCY, claimed in #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159480485, done: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159487506). I posted the claim there after opening this PR, because I missed that #1608 had replaced the capped #14.

Claimed as: CI-MAIN-CONSISTENCY - the standard-library job fails on main (42537e7b) for three reasons that have nothing to do with any open PR, so every fork that syncs main and every PR built on it inherits a red CI.

What and why

Three repository-consistency tests fail on main at 42537e7b. They depend on no platform, GPU or Python version:

  1. tests/test_runner_calls_all_tests.py reports tests/test_feature_scan.py: test_out_named_like_the_optional_spirv_index() as a dead test. It is not dead: that file's __main__ runner passes every test_* to run_tests([fn for name, fn in list(globals().items()) ...]). The checker only followed for loops over globals(), so test_feature_scan.py kept a hand-written RUNNER_SKIPS list of each test, and the newest test was never added to it. Any new test in that file would break main the same way.
    Fix: dispatches_tests() now also accepts a list, set or generator comprehension over globals()/locals()/vars() that yields the loop variable straight into a call. The test_feature_scan.py entry in RUNNER_SKIPS is removed. A new bite check confirms that the runner counts as dispatching, and that the same comprehension over a fixed table still reports what it misses. The existing test_a_dropped_call_is_flagged bite check is unchanged and passes.
  2. tests/test_runtime_paths.py: runtime/CMakeLists.txt builds from tools/conformance/native/src (L2089-2091), but .github/workflows/runtime.yml does not list tools/conformance/**. tools/conformance/** is now added to both the push and pull_request path filters, in alphabetical order, so the two lists stay identical.
  3. tests/test_tool_stdout_encoding.py: tools/compute_heap_layout_census.py was the one CLI tool whose __main__ block did not start with sys.stdout.reconfigure(errors="replace"). It now has the same guard as tools/ab_control_flow.py and the rest.

Tested

  • At 42537e7b: python -I tests/test_runner_calls_all_tests.py fails (1 failure). test_runtime_paths.py and test_tool_stdout_encoding.py each fail with the messages above.
  • With this branch: python -I tests/test_runner_calls_all_tests.py gives 4 tests OK, python -I tests/test_runtime_paths.py gives 5 OK, and python -I tests/test_tool_stdout_encoding.py gives 4 OK.
  • python -I tests/test_feature_scan.py: OK (0 failed checks, 0 failed tests). python -I tools/compute_heap_layout_census.py --help prints its usage.
  • git diff --check is clean. python3 -I scripts/check_no_game_data.py on the changed files is clean.

This does not touch the GPU jobs. The cs_imgatomic_ext failure on MoltenVK in Runtime is a separate issue.

GPUs tested: n/a - repository checks only.

AI-assisted: Yes.

Checklist

  • Based on current main (42537e7b) and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption; synthetic inputs only.
  • A new translator rule in the contract table of docs/design.md - not applicable, no translator change.

🤖 Generated with Claude Code


🔄 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/1673 **Author:** [@xel1uz](https://github.com/xel1uz) **Created:** 11/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/main-consistency-checks` --- ### 📝 Commits (1) - [`262c104`](https://github.com/ubiquitarianism/leonida/commit/262c104e80904ffd58d21fa182718b9a8d9f96df) ci: fix the three repository checks that fail on main ### 📊 Changes **3 files changed** (+36 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/runtime.yml` (+2 -0) 📝 `tests/test_runner_calls_all_tests.py` (+30 -20) 📝 `tools/compute_heap_layout_census.py` (+4 -0) </details> ### 📄 Description Item ID: `CI-MAIN-CONSISTENCY`, claimed in #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159480485, done: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159487506). I posted the claim there after opening this PR, because I missed that #1608 had replaced the capped #14. Claimed as: `CI-MAIN-CONSISTENCY` - the standard-library job fails on `main` (42537e7b) for three reasons that have nothing to do with any open PR, so every fork that syncs `main` and every PR built on it inherits a red CI. ### What and why Three repository-consistency tests fail on `main` at 42537e7b. They depend on no platform, GPU or Python version: 1. **`tests/test_runner_calls_all_tests.py`** reports `tests/test_feature_scan.py: test_out_named_like_the_optional_spirv_index()` as a dead test. It is not dead: that file's `__main__` runner passes every `test_*` to `run_tests([fn for name, fn in list(globals().items()) ...])`. The checker only followed `for` loops over `globals()`, so `test_feature_scan.py` kept a hand-written `RUNNER_SKIPS` list of each test, and the newest test was never added to it. Any new test in that file would break `main` the same way. Fix: `dispatches_tests()` now also accepts a list, set or generator comprehension over `globals()`/`locals()`/`vars()` that yields the loop variable straight into a call. The `test_feature_scan.py` entry in `RUNNER_SKIPS` is removed. A new bite check confirms that the runner counts as dispatching, and that the same comprehension over a fixed table still reports what it misses. The existing `test_a_dropped_call_is_flagged` bite check is unchanged and passes. 2. **`tests/test_runtime_paths.py`**: `runtime/CMakeLists.txt` builds from `tools/conformance/native/src` (L2089-2091), but `.github/workflows/runtime.yml` does not list `tools/conformance/**`. `tools/conformance/**` is now added to both the `push` and `pull_request` path filters, in alphabetical order, so the two lists stay identical. 3. **`tests/test_tool_stdout_encoding.py`**: `tools/compute_heap_layout_census.py` was the one CLI tool whose `__main__` block did not start with `sys.stdout.reconfigure(errors="replace")`. It now has the same guard as `tools/ab_control_flow.py` and the rest. ### Tested - At 42537e7b: `python -I tests/test_runner_calls_all_tests.py` fails (1 failure). `test_runtime_paths.py` and `test_tool_stdout_encoding.py` each fail with the messages above. - With this branch: `python -I tests/test_runner_calls_all_tests.py` gives 4 tests OK, `python -I tests/test_runtime_paths.py` gives 5 OK, and `python -I tests/test_tool_stdout_encoding.py` gives 4 OK. - `python -I tests/test_feature_scan.py`: OK (0 failed checks, 0 failed tests). `python -I tools/compute_heap_layout_census.py --help` prints its usage. - `git diff --check` is clean. `python3 -I scripts/check_no_game_data.py` on the changed files is clean. This does not touch the GPU jobs. The `cs_imgatomic_ext` failure on MoltenVK in Runtime is a separate issue. GPUs tested: n/a - repository checks only. AI-assisted: Yes. ### Checklist - [x] Based on current `main` (42537e7b) and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption; synthetic inputs only. - [ ] A new translator rule in the contract table of `docs/design.md` - not applicable, no translator change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:22:06 +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#1685
No description provided.