feat(cli): theme_vars_check manifest completeness + fileset integrity #328

Merged
jmiller merged 1 commits from feat/theme-vars-manifest into main 2026-06-29 16:58:09 +00:00
Owner

Extends theme_vars_check.php manifest validation:

  • Required fields: <name>, <element>, <author>, <creationDate>.
  • <scriptfile> target exists in src/.
  • Fileset integrity — every <filename>/<folder> in <fileset> exists in src/. This catches the "Failed to find source folder" install-failure class at CI time (the exact bug from the missing js/user.js + banners).

No workflow change needed — same invocation. Tested green against a real client repo; red against a repo with a missing script.php and a bogus fileset entry.

Authored-by: Moko Consulting

Extends `theme_vars_check.php` manifest validation: - **Required fields**: `<name>`, `<element>`, `<author>`, `<creationDate>`. - **`<scriptfile>`** target exists in `src/`. - **Fileset integrity** — every `<filename>`/`<folder>` in `<fileset>` exists in `src/`. This catches the *"Failed to find source folder"* install-failure class at CI time (the exact bug from the missing `js/user.js` + `banners`). No workflow change needed — same invocation. Tested green against a real client repo; red against a repo with a missing `script.php` and a bogus fileset entry. Authored-by: Moko Consulting
jmiller added 1 commit 2026-06-29 16:57:52 +00:00
feat(cli): theme_vars_check manifest completeness + fileset integrity
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Failing after 4s
Universal: PR Check / Branch Policy (pull_request) Failing after 2s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 2s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Failing after 2s
Universal: PR Check / Validate PR (pull_request) Failing after 10s
Universal: PR Check / Secret Scan (pull_request) Successful in 21s
Generic: Project CI / Lint & Validate (pull_request) Successful in 30s
Platform: mokocli CI / Gate 1: Code Quality (pull_request) Failing after 1m12s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Successful in 4m36s
Generic: Project CI / Tests (pull_request) Has been cancelled
Platform: mokocli CI / Gate 2: Unit Tests (8.1) (pull_request) Has been cancelled
Platform: mokocli CI / Gate 2: Unit Tests (8.2) (pull_request) Has been cancelled
Platform: mokocli CI / Gate 2: Unit Tests (8.3) (pull_request) Has been cancelled
Platform: mokocli CI / Gate 3: Self-Health Check (pull_request) Has been cancelled
Platform: mokocli CI / Gate 4: Governance (pull_request) Has been cancelled
Platform: mokocli CI / Gate 5: Template Integrity (pull_request) Has been cancelled
Platform: mokocli CI / CI Summary (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report: Scripts Governance (pull_request) Has been cancelled
Generic: Repo Health / Report: Repository Health (pull_request) Has been cancelled
5846ccc3e8
- Verify required manifest fields: <name>, <element>, <author>, <creationDate>.
- Verify <scriptfile> target exists in src/.
- Fileset integrity: every <filename>/<folder> in <fileset> must exist in src/
  — catches the "Failed to find source folder" install failure class at CI time.

Authored-by: Moko Consulting
jmiller merged commit c57a7e4b96 into main 2026-06-29 16:58:09 +00:00
jmiller deleted branch feat/theme-vars-manifest 2026-06-29 16:58:10 +00:00
Sign in to join this conversation.
No Reviewers
No labels
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoCLI#328