Require tests for templates/ entries; exempt archive/ (+ archive workflow)#777
Open
Aydin-ab wants to merge 1 commit into
Open
Require tests for templates/ entries; exempt archive/ (+ archive workflow)#777Aydin-ab wants to merge 1 commit into
Aydin-ab wants to merge 1 commit into
Conversation
deb7e93 to
4cb0b24
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Formalizes the
archive/convention from the recent declutter, and the tested vs test-exempt split betweentemplates/andarchive/.Validator (
ci/validate_build_yaml.py)templates/entries require atest— active templates are tested. Omitting it fails with an actionable message ("…move it under archive/ instead; archive/ entries are test-exempt") instead of pydantic's generic "Field required".archive/entries are test-exempt —dir/compute_configmay point underarchive/(config co-located atarchive/.../<name>/configs/),testoptional; thetemplates/-naming conventions are relaxed there.rayappalready treatstestas optional (tests_pathisomitempty), so anarchive/entry publishes viatmpl-publishwith nothing for itstest-templatestage to run — the fast-iteration / urgent-fix path: ship a template update without waiting on the test pipeline by giving it a test-freearchive/entry.Skill docs
workflows/archive-template.md— archive-vs-delete bar, the retire flow (remove/repoint the BUILD.yaml entry →git mvtoarchive/events/<year>-<event>/orarchive/reference/withconfigs/+content/), and the publish-from-archive-without-tests flow.SKILL.mdpointer + the tested/test-exempt invariant; schema note ontest.Testing
validate_build_yaml.py: current BUILD.yaml (55 entries) passes; atemplates/entry with no test is rejected with the archive message; anarchive/entry validates with or without a test.