<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/scripts/run_semantic_tests.py, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-25T16:55:46+00:00</updated>
<entry>
<title>run_semantic_tests: terminate process tree on Windows via taskkill and increase sleep margin (SEMANTIC-RUNNER-INTERRUPT)</title>
<updated>2026-11-25T16:55:46+00:00</updated>
<author>
<name>d7ommy</name>
<email>abnalstlll@gmail.com</email>
</author>
<published>2026-11-25T16:55:46+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=30a2a1862c9c21eddcc345985b5d74347a40ad85'/>
<id>urn:sha1:30a2a1862c9c21eddcc345985b5d74347a40ad85</id>
<content type='text'>
- On Windows, terminate child processes using taskkill /F /T /PID to ensure
  launcher processes (e.g. venv python.exe wrappers) terminate all child workers.
- Increase synthetic sleep duration in tests from 5s to 10s and timeout margin to
  eliminate timing flakiness under high machine load.

AI-assisted (Claude Code).
</content>
</entry>
<entry>
<title>run_semantic_tests: stop active subprocesses and cancel queued modules on interrupt (SEMANTIC-RUNNER-INTERRUPT)</title>
<updated>2026-11-25T16:11:41+00:00</updated>
<author>
<name>d7ommy</name>
<email>abnalstlll@gmail.com</email>
</author>
<published>2026-11-25T16:11:41+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=542c046c503af54cf6b29436eff4877f4edb7de4'/>
<id>urn:sha1:542c046c503af54cf6b29436eff4877f4edb7de4</id>
<content type='text'>
Catch KeyboardInterrupt in run_semantic_tests.py, cancelling queued test modules via pool.shutdown(wait=False, cancel_futures=True) and terminating active child subprocesses so that no orphaned zombie processes or queued modules run after Ctrl+C. In serial mode (-j 1), terminate the discover subprocess on interrupt.

Return exit code 130 and output 'interrupted' to stderr without printing a false success summary.

Adds regression and lifecycle tests in tests/test_run_semantic_tests.py.

AI-assisted (Claude Code)
</content>
</entry>
<entry>
<title>semantic tests: count from unittest's result object</title>
<updated>2026-11-24T17:18:48+00:00</updated>
<author>
<name>Shang Li</name>
<email>144836394+Mby159@users.noreply.github.com</email>
</author>
<published>2026-11-24T17:18:48+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=f48c2b2a352394e835ae746024990970f1112c29'/>
<id>urn:sha1:f48c2b2a352394e835ae746024990970f1112c29</id>
<content type='text'>
The count came from a line of the shape "Ran N tests in ..." in the module's
stderr. unittest writes that summary after every test has run, but a module
can write a line of the same shape after it: an atexit handler that runs a
nested runner does exactly that, and the runner counted "Ran 0 tests", so a
module with one passing test looked empty and the run exited 1 with "no
tests ran".

The count is now taken from unittest's own result object. The child program
runs the module through unittest's program, the way "python -m unittest
&lt;module&gt;" does, writes the result to a file and exits with unittest's own
exit codes: 1 when a test failed, 5 when nothing ran at all, 0 otherwise.
Nothing the module writes can change the count any more.

Follow-up to @lixonik's review on #662, which asked for the count to come
from the result rather than from a line of the module's stderr. AI-assisted.</content>
</entry>
<entry>
<title>semantic tests: count from unittest's own summary</title>
<updated>2026-11-24T11:43:31+00:00</updated>
<author>
<name>Shang Li</name>
<email>144836394+Mby159@users.noreply.github.com</email>
</author>
<published>2026-11-24T11:43:31+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=7d184af582458bff84bfe6be65933d671891d993'/>
<id>urn:sha1:7d184af582458bff84bfe6be65933d671891d993</id>
<content type='text'>
A test that runs a nested unittest runner writes that runner's summary to
stderr while the test runs, before unittest writes its own. The count came
from the first "Ran N tests" line in stderr, so a nested summary of "Ran 0
tests" was counted and a passing module looked empty: the runner exited 1
with "no tests ran".

The count is now the last summary in stderr, which is unittest's own: it
writes that summary after every test has run, so nothing a test wrote can
come after it. A summary a test writes to stdout is never counted at all.</content>
</entry>
<entry>
<title>run_semantic_tests: count the tests from unittest, not from the merged output</title>
<updated>2026-11-24T11:45:00+00:00</updated>
<author>
<name>Shang Li</name>
<email>144836394+Mby159@users.noreply.github.com</email>
</author>
<published>2026-11-24T11:45:00+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=23b190b19ed0d5ec26baf08c88610333168ac424'/>
<id>urn:sha1:23b190b19ed0d5ec26baf08c88610333168ac424</id>
<content type='text'>
unittest writes its own summary (Ran N tests in X s) and its NO TESTS RAN to stderr, while a test's own
output goes to stdout. The runner scanned the merged output for the first line of that shape, so a test that
printed one could be counted instead of the summary, and which line won depended on stdout buffering.

Reported by @Dezmonius on #14. AI-assisted.</content>
</entry>
<entry>
<title>run_semantic_tests: a package initializer runs once, and a run with no tests fails</title>
<updated>2026-11-24T08:02:00+00:00</updated>
<author>
<name>ddddddddwp</name>
<email>ddddddddwp@users.noreply.github.com</email>
</author>
<published>2026-11-24T08:02:00+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=66dac0d93870fe9a2d4d808b1d1c56a777468d5b'/>
<id>urn:sha1:66dac0d93870fe9a2d4d808b1d1c56a777468d5b</id>
<content type='text'>
`python -m unittest pkg.__init__` imports pkg and then executes the same file again as
pkg.__init__, so a registration in the initializer happens twice in the -j 2 worker while
discover imports it once. Hand unittest the package name instead; module_path() still
resolves the initializer, so the largest-file-first order is unchanged.

A suite whose only module is an empty package initializer reported "1 files, 0 tests, 0
files failed" and exit 0 in parallel mode, where -j 1 (discover) exits 5. A run where every
job ran no tests now prints "no tests ran" and exits 1; an empty initializer next to real
tests is still fine because those count.

Both new cases in tests/test_run_semantic_tests.py fail against the previous script.
</content>
</entry>
<entry>
<title>SEMANTIC-PACKAGE-TESTS: run package initializers in parallel</title>
<updated>2026-11-24T06:37:28+00:00</updated>
<author>
<name>bobcatchris</name>
<email>bobcatchris@users.noreply.github.com</email>
</author>
<published>2026-11-24T05:59:23+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=b45d7c2d14e5a4fd0cf11e72852d79d62df417a5'/>
<id>urn:sha1:b45d7c2d14e5a4fd0cf11e72852d79d62df417a5</id>
<content type='text'>
unittest discover loads TestCase classes defined in a package's __init__.py regardless of the filename pattern. The parallel runner only selected test*.py files, so a failing package initializer could be skipped while -j 1 reported it. Include package initializers in the parallel module list; an empty initializer with no tests is not a failure. Add regressions for failing initializers and for a pattern that matches no test filenames.

AI-assisted.
</content>
</entry>
<entry>
<title>Reject semantic-test timeouts beyond portable wait limits</title>
<updated>2026-11-24T06:20:42+00:00</updated>
<author>
<name>Cody Smith</name>
<email>cody@protopt.com</email>
</author>
<published>2026-11-24T06:20:42+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=90eb7284feaae3d2e1511ffef0685d95a7dd7525'/>
<id>urn:sha1:90eb7284feaae3d2e1511ffef0685d95a7dd7525</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add optional timeout to semantic test subprocesses</title>
<updated>2026-11-24T05:47:06+00:00</updated>
<author>
<name>Cody Smith</name>
<email>cody@protopt.com</email>
</author>
<published>2026-11-24T05:47:06+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=973593f4a7c14cb70ba9827f2e5e04641294ff20'/>
<id>urn:sha1:973593f4a7c14cb70ba9827f2e5e04641294ff20</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: select semantic test files by glob pattern</title>
<updated>2026-11-23T21:23:58+00:00</updated>
<author>
<name>RageGen</name>
<email>zamorin.daniil@mail.ru</email>
</author>
<published>2026-11-23T21:23:58+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=3746a6ff0be28df43fe17d90f7020b282125ba83'/>
<id>urn:sha1:3746a6ff0be28df43fe17d90f7020b282125ba83</id>
<content type='text'>
</content>
</entry>
</feed>
