fix(ci): restore scripts/test.sh — broke when removed in 'cleanup' commit #131
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik_ci_test_sh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why CI is red
The
build-and-publishworkflow onhero_skills/developmenthas been failing every push for ~2 months with:Root cause: commit
ce18f5f("cleanup", 2026-02-16) deletedscripts/test.sh(-74 lines) but did not update the Makefile targettest:(line 47) or the.forgejo/workflows/build.yamlstep that callsmake test. So every CI run since has died at the same step.Fix
Restore the script — long-term prod fix, not a workaround. Two improvements over the deleted version:
SKILLS_DIRsourced frombuildenv.sh(with optional positional override for ad-hoc use) — future renames in buildenv track automatically, no code edits needed.SKILL.mdexists (case-insensitive — acceptsskill.mdtoo)---frontmatter delimitername:anddescription:fields---Output is colourised when stdout is a tty, plain otherwise (clean CI logs). Skills validated in sorted order — output diffs are stable. Exit codes:
0— all pass1— validation failure2— invocation error (missing buildenv.sh, etc.)Validation
All 75 skills under
claude/skills/pass.make testruns in <1s.No Makefile or workflow changes — only the missing script is restored.
Signed-off-by: mik-tf
Squash-merged to
developmentas70e11ef. Branch deleted.Pull request closed