Skip to content
Open
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
1 change: 1 addition & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ self-hosted-runner:
labels:
- cwlab-ci-isolated
- cwlab-control
- gyeot-ci
9 changes: 9 additions & 0 deletions tests/test_all_self_hosted_runner_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'CWL central OpenCode': set(),
'CWL CI isolated': {'cwlab-ci-isolated'},
'CWL law CI': {'law-ai-agent-ci'},
'CWL Gyeot CI': {'gyeot-ci'},
}


Expand Down Expand Up @@ -81,6 +82,14 @@ def test_static_runner_group_policy_is_explicit_and_fail_closed() -> None:
assert required_static_labels('CWL law CI') == {
'self-hosted', 'linux', 'x64', 'law-ai-agent-ci',
}
assert required_static_labels('CWL Gyeot CI') == {
'self-hosted', 'linux', 'x64', 'gyeot-ci',
}
configured = yaml.safe_load(Path('.github/actionlint.yaml').read_text())
assert 'gyeot-ci' in configured['self-hosted-runner']['labels']
assert {'cwlab-ci-isolated', 'cwlab-control'}.issubset(
configured['self-hosted-runner']['labels']
)
with pytest.raises(AssertionError, match='unsupported static group'):
required_static_labels('CWL ungoverned CI')

Expand Down
Loading