Answer architecture round 1: 0 🔴, 4 🟡 (0 misread); chunks_to_start and the epic's folder take the resolved paths; branch_summaries and reviewer_breaches wait for item 300
CI / tests (pull_request) Successful in 5m19s
CI / tests (pull_request) Successful in 5m19s
This commit is contained in:
@@ -4,13 +4,12 @@ An entry point holds `starting` on `project_lock` while it lists the windows of
|
||||
"""
|
||||
import contextlib
|
||||
import fcntl
|
||||
from collections.abc import Mapping
|
||||
import pathlib
|
||||
import typing
|
||||
|
||||
from failure import Failure
|
||||
from loop_state.paths import Paths
|
||||
from transcript_archive.project_key import project_key
|
||||
from loop_state.paths import state_folder
|
||||
from agent_cycle import tmux
|
||||
|
||||
# The file an entry point keeps locked with flock while it lists the windows of a project's chunks and starts new ones. Two loops whose chunks finish together then don't start a chunk twice, and do-epic, which holds the same lock, never starts a chunk in a checkout while build-release does.
|
||||
@@ -51,9 +50,9 @@ def claims_folder(state: pathlib.Path) -> pathlib.Path:
|
||||
return state / "claims"
|
||||
|
||||
|
||||
def project_lock(root: str, home: pathlib.Path, env: Mapping[str, str]) -> pathlib.Path:
|
||||
def project_lock(root: str, paths: Paths) -> pathlib.Path:
|
||||
"""The folder of the LOCK that everything starting a chunk in the checkout root holds."""
|
||||
return claims_folder(state_folder(env, home)) / project_key(root, home)
|
||||
return claims_folder(paths.state_folder) / project_key(root, paths.home)
|
||||
|
||||
|
||||
def loop_session(root: str, home: pathlib.Path) -> str:
|
||||
|
||||
Reference in New Issue
Block a user