3 Commits
Author SHA1 Message Date
mvdbeek a87754fb26 Format tool cache test imports with isort
Fixes GALAXY-TEST-394
2026-09-26 22:05:30 +02:00
mvdbeek 0aa7a591b8 Fix typing of tool cache concurrency regression test
Use monkeypatch for the instrumented lock and import the hash helper from its defining module. Preserve the lock and hash assertions without violating the cache attribute types.

Fixes GALAXY-TEST-394
2026-09-26 21:17:34 +02:00
mvdbeek 58cc7d94b8 Synchronize tool cache hash initialization
Hold the cache lock while initializing hashes and read the lazy hashing flag under the same lock when inserting tools. This prevents concurrent dictionary mutation from killing the tool watcher and prevents waiting insertions from missing their initial hashes. Add deterministic concurrency and invalidation regression coverage.

Fixes GALAXY-TEST-394
2026-09-26 19:56:52 +02:00