Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .claude/hooks/session-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,13 @@ marked_root() {
holds_an_organ() {
[ -d "$1/PyAutoBrain" ] || [ -d "$1/PyAutoMind" ] || [ -d "$1/PyAutoCortex" ] \
|| [ -d "$1/PyAutoMemory" ] || [ -d "$1/PyAutoEyes" ] || [ -d "$1/PyAutoHeart" ] \
|| [ -d "$1/PyAutoHands" ] || [ -d "$1/PyAutoNerves" ] || [ -d "$1/PyAutoGut" ] \
|| [ -d "$1/PyAutoHands" ] || [ -d "$1/PyAutoPulse" ] || [ -d "$1/PyAutoNerves" ] \
|| [ -d "$1/PyAutoGut" ] \
|| [ -d "$1/organs/PyAutoBrain" ] || [ -d "$1/organs/PyAutoMind" ] \
|| [ -d "$1/organs/PyAutoCortex" ] || [ -d "$1/organs/PyAutoMemory" ] \
|| [ -d "$1/organs/PyAutoEyes" ] || [ -d "$1/organs/PyAutoHeart" ] \
|| [ -d "$1/organs/PyAutoHands" ] || [ -d "$1/organs/PyAutoNerves" ] \
|| [ -d "$1/organs/PyAutoGut" ]
|| [ -d "$1/organs/PyAutoHands" ] || [ -d "$1/organs/PyAutoPulse" ] \
|| [ -d "$1/organs/PyAutoNerves" ] || [ -d "$1/organs/PyAutoGut" ]
}

# Assigns WORKSPACE_ROOT and WORKSPACE_ROOT_REASON rather than printing: one
Expand Down
2 changes: 2 additions & 0 deletions config/repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ repos:
owner: PyAutoLabs
- name: PyAutoHeart
owner: PyAutoLabs
- name: PyAutoPulse
owner: PyAutoLabs

# Required gating workflows per group, keyed by the GitHub Actions workflow
# *name* (the `name:` field, e.g. "Smoke Tests"), matched against
Expand Down
1 change: 1 addition & 0 deletions heart/_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"PyAutoEyes",
"PyAutoHeart",
"PyAutoHands",
"PyAutoPulse",
"PyAutoNerves",
"PyAutoGut",
)
Expand Down
3 changes: 2 additions & 1 deletion heart/_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ else
if [ -d "$PYAUTO_ROOT/PyAutoMind" ] || [ -d "$PYAUTO_ROOT/PyAutoCortex" ] \
|| [ -d "$PYAUTO_ROOT/PyAutoMemory" ] || [ -d "$PYAUTO_ROOT/PyAutoEyes" ] \
|| [ -d "$PYAUTO_ROOT/PyAutoHeart" ] || [ -d "$PYAUTO_ROOT/PyAutoHands" ] \
|| [ -d "$PYAUTO_ROOT/PyAutoNerves" ] || [ -d "$PYAUTO_ROOT/PyAutoGut" ]; then
|| [ -d "$PYAUTO_ROOT/PyAutoPulse" ] || [ -d "$PYAUTO_ROOT/PyAutoNerves" ] \
|| [ -d "$PYAUTO_ROOT/PyAutoGut" ]; then
PYAUTO_ROOT_REASON="beside this checkout (no PyAutoBrain in reach)"
else
PYAUTO_ROOT_REASON="unverified (no sibling organ beside this checkout) (no PyAutoBrain in reach)"
Expand Down
7 changes: 4 additions & 3 deletions tests/test_repo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ def test_thresholds_have_expected_fields(config):
assert thresholds["script_timing"]["baseline_window"] >= 3


def test_26_repos_polled(config):
def test_27_repos_polled(config):
"""Sanity check the polled count — bumps need a deliberate update.
(25 since the CTI resurrection added PyAutoCTI + autocti_workspace +
autocti_workspace_test to the polled registry; 26 since the Eyes organ
joined the organism group, PyAutoMind#437.)"""
joined the organism group, PyAutoMind#437; 27 since the Pulse organ
joined it, PyAutoMind#463.)"""
total = sum(len(v) for v in config["repos"].values())
assert total == 26, f"expected 26 polled repos, got {total}"
assert total == 27, f"expected 27 polled repos, got {total}"


def test_cti_polled_but_not_release_gating(config):
Expand Down
Loading