mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1700] run_semantic_tests: reject nonpositive job counts (SEMANTIC-JOBS-POSITIVE) #1715
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#1715
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/1700
Author: @KoLolX3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/semantic-positive-jobs📝 Commits (1)
7aae8e3Reject 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 0and negative values silently ran the suite serially. Reject nonpositive or noninteger worker counts as usage errors, before loading any tests; keep-j 1for 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, andgit diff --checkGPUs 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.