perf(catalog): share verified cell cache across task execution and UI
This commit is contained in:
1 parent
d10356ee3d
commit
cf671a1d3f
3 files changed
+21
-3
No files matched your search
@@ -138,3 +138,13 @@ WScript.Echo CStr(Failure<>0)
|
||||
If Failure=0 Then WScript.Echo QPTargetCell(Result("meta"))
|
||||
''')
|
||||
assert output.splitlines()==(['True'] if fault else ['False','CELL_A'])
|
||||
|
||||
|
||||
def test_cell_catalog_cache_is_shared_by_project_tasks_but_outside_queue(tmp_path):
|
||||
data=tmp_path/'data'
|
||||
for task in ('first','second'):
|
||||
snapshot=data/'tasks'/task/'quick-run'/'snapshot-job.tsv'
|
||||
snapshot.parent.mkdir(parents=True);snapshot.write_text('snapshot')
|
||||
assert native_helper.cell_catalog_evidence_root(snapshot)==data/'cell-catalog'
|
||||
plain=data/'quick-run'/'snapshot-job.tsv';plain.parent.mkdir();plain.write_text('snapshot')
|
||||
assert native_helper.cell_catalog_evidence_root(plain)==data/'cell-catalog'
|
||||
Reference in new issue
Block a user