[PR #1700] run_semantic_tests: reject nonpositive job counts (SEMANTIC-JOBS-POSITIVE) #1715

Open
opened 2026-11-26 21:18:42 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1700
Author: @KoLolX3
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: fix/semantic-positive-jobs


📝 Commits (1)

  • 7aae8e3 Reject nonpositive semantic runner job counts

📊 Changes

2 files changed (+24 additions, -3 deletions)

View changed files

📝 scripts/run_semantic_tests.py (+13 -3)
📝 tests/test_run_semantic_tests.py (+11 -0)

📄 Description

Claimed in the coordination issue as: SEMANTIC-JOBS-POSITIVE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157357875)

What and why

run_semantic_tests.py -j 0 and negative values silently ran the suite serially. Reject nonpositive or noninteger worker counts as usage errors, before loading any tests; keep -j 1 for serial discovery and document the constraint. A synthetic CLI regression checks that invalid values do not import the test file.

Tested

  • python -I tests/test_run_semantic_tests.py (23 tests)
  • python -I scripts/run_semantic_tests.py tests/semantic (487 files, 6,279 tests, zero files failed)
  • python -I tests/test_text_write_line_endings.py (3 tests)
  • python -m compileall -q make_game.py tools tests, both CLI help commands, python -I scripts/check_no_game_data.py scripts/run_semantic_tests.py tests/test_run_semantic_tests.py, and git diff --check
  • Linux; synthetic tests only.

GPUs tested: n/a

AI-assisted: yes (OpenAI Codex)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • 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/1700 **Author:** [@KoLolX3](https://github.com/KoLolX3) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/semantic-positive-jobs` --- ### 📝 Commits (1) - [`7aae8e3`](https://github.com/ubiquitarianism/leonida/commit/7aae8e3702502d572f6f19ee07093d1efa827b28) Reject nonpositive semantic runner job counts ### 📊 Changes **2 files changed** (+24 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_semantic_tests.py` (+13 -3) 📝 `tests/test_run_semantic_tests.py` (+11 -0) </details> ### 📄 Description Claimed in the coordination issue as: SEMANTIC-JOBS-POSITIVE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157357875) ### What and why `run_semantic_tests.py -j 0` and negative values silently ran the suite serially. Reject nonpositive or noninteger worker counts as usage errors, before loading any tests; keep `-j 1` for serial discovery and document the constraint. A synthetic CLI regression checks that invalid values do not import the test file. ### Tested - `python -I tests/test_run_semantic_tests.py` (23 tests) - `python -I scripts/run_semantic_tests.py tests/semantic` (487 files, 6,279 tests, zero files failed) - `python -I tests/test_text_write_line_endings.py` (3 tests) - `python -m compileall -q make_game.py tools tests`, both CLI help commands, `python -I scripts/check_no_game_data.py scripts/run_semantic_tests.py tests/test_run_semantic_tests.py`, and `git diff --check` - Linux; synthetic tests only. GPUs tested: n/a AI-assisted: yes (OpenAI Codex) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [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>
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#1715
No description provided.