con-site-specific-annex/tools
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Claude c8195b1073
ci: run both record gates on every pull request, and as pre-commit hooks
.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
2026-10-14 16:48:03 +00:00
..
linkml_check.sh ci: run both record gates on every pull request, and as pre-commit hooks 2026-10-14 16:48:03 +00:00
pre-commit fix(metadata): merge current site into PR 11 enrichment 2026-10-13 10:17:06 -04:00
summarize.py tools: summarize the store; collaborator orgs; drop a duplicate it found 2026-10-10 21:42:08 -04:00
validate_records.py fix(metadata): merge current site into PR 11 enrichment 2026-10-13 10:17:06 -04:00