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
15 changes: 12 additions & 3 deletions .github/workflows/self-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,26 @@ jobs:
- name: Install pyflakes
run: python -m pip install --disable-pip-version-check pyflakes

# Each self-test's output is kept, so the trace below can look up the
# labels the requirements name without running every self-test again.
- name: Run every self-test
working-directory: solid-ai-benchmark
run: |
set -e
set -eo pipefail
outputs="$RUNNER_TEMP/self-tests"
mkdir -p "$outputs"
for module in harness generate_arm score judge report archive reuse \
security control/control; do
progress security control/control trace; do
echo "::group::$module"
python "tests/efficacy/$module.py" --self-test
python "tests/efficacy/$module.py" --self-test \
| tee "$outputs/$(basename "$module").txt"
echo "::endgroup::"
done

- name: Trace the requirements to the self-tests
working-directory: solid-ai-benchmark
run: python tests/efficacy/trace.py --outputs "$RUNNER_TEMP/self-tests"

- name: Pyflakes
working-directory: solid-ai-benchmark
run: python -m pyflakes tests
6 changes: 6 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ py tests/efficacy/reuse.py --self-test
py tests/efficacy/progress.py --self-test
py tests/efficacy/security.py --self-test
py tests/efficacy/control/control.py --self-test
py tests/efficacy/trace.py --self-test
py tests/efficacy/trace.py
py -m pyflakes tests
```

`trace.py` runs every self-test and fails on a rule in
[`docs/requirements.md`](docs/requirements.md) whose checks no self-test
prints. A new rule gets a row there, and a new check its label.

A self-test makes no model call and runs no trial. Running a trial or a
judging spends a plan's limit, so ask first.

Expand Down
Loading
Loading