Skip to content

Commit d3bbe8b

Browse files
committed
수정: 살아 있는 잠금을 새 프로세스가 빼앗지 못하는지 보는 시험이 PC가 바쁠 때 떨어지던 것을 고친다
잠금이 20초였는데 PC가 바쁠 때 새 프로세스가 dartlab을 불러오는 데 20초를 넘겨 잠금이 먼저 끝났고, 새 프로세스가 잠금을 얻어 빼앗긴 것으로 떨어졌다(푸시 전 검사). 잠금을 멈춤 한도(120초)보다 긴 600초로 두어 시험 내내 잠금이 살아 있게 한다. 빼앗으면 떨어지는 것은 그대로다.
1 parent f6468c2 commit d3bbe8b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tests/dataHub/materialization/testStore.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,10 @@ def readRoot(_index: int) -> str:
406406

407407
def testSpawnedProcessCannotStealLiveBuilderLease(tmp_path: Path) -> None:
408408
root = tmp_path / "materialization"
409-
storePolicy = policy(builderLeaseSeconds=20.0)
409+
# 이 시험이 보는 것은 살아 있는 잠금을 새 프로세스가 빼앗지 못하는지다. 잠금이 20초였을 때 PC 가 바빠
410+
# 새 프로세스가 dartlab 을 불러오는 동안 잠금이 끝나 빼앗긴 것으로 떨어졌다(2026-11-28 푸시 전 검사).
411+
# 아래 멈춤 한도(120초)보다 길게 두어 새 프로세스가 끝날 때까지 잠금이 살아 있게 한다.
412+
storePolicy = policy(builderLeaseSeconds=600.0)
410413
exactPins = pins()
411414
store = MaterializationStore(root, policy=storePolicy)
412415
owner = store.claimBuild(exactPins, builderId="main-owner")

0 commit comments

Comments
 (0)