forked from Keelrleek/Harbor
Logbook clarity: game-code headline, CST times, one size unit, tier table from the progress map with a game column, Decomp view counts game functions, ship's log without repeated or cut titles, newest milestone in the banner; whole-program check builds a clean snapshot of main
This commit is contained in:
1 parent
783c46da56
commit
b8dab67871
4 files changed
+39
-23
No files matched your search
@@ -205,12 +205,12 @@ def _paths(project, job):
|
||||
return paths
|
||||
|
||||
|
||||
def _argv(project, job, out):
|
||||
def _argv(project, job, out, decomp=None):
|
||||
need = configured(project, job)
|
||||
if job == "match":
|
||||
script = Path(need["script"])
|
||||
return [sys.executable, "-B", str(script), "check", "--build", "--decomp",
|
||||
str(Path(project.logbook["decomp"])), "--json", str(out)], script.parent
|
||||
str(Path(decomp or project.logbook["decomp"])), "--json", str(out)], script.parent
|
||||
command = [str(c) for c in need["command"]]
|
||||
return command + ["--readable", "--jobs", "4", "--json", str(out)], Path(command[-1]).parent
|
||||
|
||||
@@ -260,7 +260,12 @@ def _complete(project, state, run, now, returncode=None):
|
||||
|
||||
def run_job(project, state, job, head, now, reason=""):
|
||||
paths = _paths(project, job)
|
||||
argv, cwd = _argv(project, job, paths["partial"])
|
||||
decomp = None
|
||||
if job == "match" and project.logbook.get("results_snapshot") and head:
|
||||
# a clean checkout of exactly `head`: the live checkout is the lander's and changes under a running build
|
||||
from .logbook_auto import snapshot_at
|
||||
decomp = snapshot_at({"snapshot": project.logbook["results_snapshot"]}, project.logbook["decomp"], head)
|
||||
argv, cwd = _argv(project, job, paths["partial"], decomp)
|
||||
for stale in [paths["partial"]] + ([paths["text_partial"]] if job == "behaviour" else []):
|
||||
if stale.exists():
|
||||
stale.write_bytes(b"") # a leftover of an interrupted run is never taken for this one
|
||||
|
||||
Reference in new issue
Block a user