.pre-commit-config.yaml runs:
- check-yaml and check-merge-conflict;
- tools/validate_records.py (the curation rules) on any commit touching
metadata/ or sources/curation-evidence/;
- tools/linkml_check.sh (the schema) as a manual-stage hook, since it
takes about 40 seconds and needs a things-schemas checkout.
.github/workflows/validate.yml runs the commit hooks over all files in
one job and the schema hook in another. The schema job checks out
things-schemas at cb6c791, the commit orinoco-lite-dev 94c3178 pins,
which is the package revision the downstream sites build with. Actions
are pinned by commit, as in the downstream.
Fault-injected before relying on it:
- a malformed record fails check-yaml and the curation gate;
- a changed date fails the curation gate on its evidence value;
- an unknown slot fails the schema gate.
The last one exposed a silent failure in linkml_check.sh, fixed here.
Under `set -e`, a non-zero exit from linkml-validate ended the script at
the assignment, before it printed which class failed or why. CI would
have reported a bare exit 1. Now it prints the FAIL line and the error,
carries on with the other classes, and exits 1 at the end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R7n7cc51H6cRd4v7oQypjt