feat: add mod editing, revision merges and secure game storage
Add immutable revisions, PGVN editor, asset replacement, merge and rebase workflows, authenticated media delivery and reachability GC. Harden the script interpreter, pin unrpyc and remove tracked build metadata. Include current compatibility checks, Naninovel import and regression tests.
This commit is contained in:
1 parent
06ff19ac4a
commit
c8d83b3fe7
65 files changed
+3825
-68
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import asyncio
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
from app.config import get_settings
|
||||
from app.maintenance import acquire, release
|
||||
|
||||
|
||||
@pytest.mark.skipif(os.name == "nt", reason="Production shared flock semantics are POSIX")
|
||||
def test_gc_excludes_active_writers(tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("DATA_DIR", str(tmp_path))
|
||||
get_settings.cache_clear()
|
||||
async def check():
|
||||
writer = acquire()
|
||||
gc = asyncio.create_task(asyncio.to_thread(acquire, True))
|
||||
try:
|
||||
with pytest.raises(asyncio.TimeoutError):
|
||||
await asyncio.wait_for(asyncio.shield(gc), .1)
|
||||
finally:
|
||||
release(writer)
|
||||
maintenance = await asyncio.wait_for(gc, 3)
|
||||
release(maintenance)
|
||||
try:
|
||||
asyncio.run(check())
|
||||
finally:
|
||||
get_settings.cache_clear()
|
||||
Reference in new issue
Block a user