test: explicitly repin validation to reviewed channel source
This commit is contained in:
1 parent
fa5d0c22a9
commit
cd3a657f9d
10 files changed
+160
-22
No files matched your search
@@ -9,8 +9,9 @@ from pathlib import Path
|
||||
import sys
|
||||
import time
|
||||
import numpy as np
|
||||
from source_provenance import checkout_provenance
|
||||
|
||||
PIN = "d79e3f6f0a424f5bcc3a1a6d610313e49daf97a2"
|
||||
PIN = "47b05bc8abfc957fe876b0c63bdb386e3c6cbaa5"
|
||||
HERE = Path(__file__).resolve().parent
|
||||
CX = np.array([0, 1, -1, 0, 0, 1, -1, 1, -1])
|
||||
CY = np.array([0, 0, 0, 1, -1, 1, -1, -1, 1])
|
||||
@@ -201,7 +202,7 @@ def verify(repo):
|
||||
return manifest
|
||||
|
||||
|
||||
def run_case(c, ctx, output):
|
||||
def run_case(c, ctx, output, provenance):
|
||||
from CelerisLab.body.geometry.circle import CircleGeometry
|
||||
from CelerisLab.body.objects import SimObject
|
||||
from CelerisLab.body.jets import Jet, Sector, Radial
|
||||
@@ -471,6 +472,7 @@ def run_case(c, ctx, output):
|
||||
payload = dict(
|
||||
case=c,
|
||||
source_revision=PIN,
|
||||
**provenance,
|
||||
status="PILOT_DIAGNOSTIC_ONLY",
|
||||
windows=rows,
|
||||
physics_validation_pass=False,
|
||||
@@ -529,7 +531,10 @@ def main():
|
||||
):
|
||||
p.error("Root must select one verified idle GPU via CUDA_VISIBLE_DEVICES")
|
||||
repo = a.repo.resolve()
|
||||
verify(repo)
|
||||
source = verify(repo)
|
||||
provenance = dict(
|
||||
source_experiment=source["experiment"], **checkout_provenance(repo)
|
||||
)
|
||||
sys.path.insert(0, str(repo / "src"))
|
||||
import CelerisLab
|
||||
|
||||
@@ -545,7 +550,7 @@ def main():
|
||||
free, total = cuda.mem_get_info()
|
||||
if free < max(1024, 2 * plan["estimated_peak_device_mib"]) * 1024**2:
|
||||
raise RuntimeError("Insufficient free device memory")
|
||||
run_case(c, ctx, a.output)
|
||||
run_case(c, ctx, a.output, provenance)
|
||||
print(
|
||||
json.dumps(
|
||||
dict(status="COMPLETE_DIAGNOSTIC_ONLY", physics_validation_pass=False)
|
||||
|
||||
Reference in new issue
Block a user