claude-dev-env 8.46.8 → 8.46.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -28,16 +28,23 @@ sys.path.insert(0, str(scripts_directory))
|
|
|
28
28
|
|
|
29
29
|
from pr_verification.lock import SupervisorLock, SupervisorLockError
|
|
30
30
|
|
|
31
|
+
|
|
32
|
+
def report_outcome(outcome):
|
|
33
|
+
pending_result_path = result_path.with_name(result_path.name + ".pending")
|
|
34
|
+
pending_result_path.write_text(outcome, encoding="utf-8")
|
|
35
|
+
pending_result_path.replace(result_path)
|
|
36
|
+
|
|
37
|
+
|
|
31
38
|
while not start_path.exists():
|
|
32
39
|
time.sleep(0.01)
|
|
33
40
|
|
|
34
41
|
try:
|
|
35
42
|
with SupervisorLock(cache_root):
|
|
36
|
-
|
|
43
|
+
report_outcome("acquired")
|
|
37
44
|
while True:
|
|
38
45
|
time.sleep(1)
|
|
39
46
|
except SupervisorLockError:
|
|
40
|
-
|
|
47
|
+
report_outcome("contended")
|
|
41
48
|
"""
|
|
42
49
|
RESULT_WAIT_SECONDS = 5
|
|
43
50
|
PROCESS_WAIT_SECONDS = 10
|