Skip to content

Retire the postinstall hooks, rename ci:* scripts to the test:full family - #2712

Merged
chalin merged 9 commits into
docsy:mainfrom
chalin:chalin-m24-ci-rename-2026-0809
Aug 9, 2026
Merged

chalin merged 9 commits into
docsy:mainfrom
chalin:chalin-m24-ci-rename-2026-0809

Conversation

@chalin

@chalin chalin commented Aug 9, 2026 •

Copy link
Copy Markdown
Collaborator
  • Follow-up to Commit npm lockfiles; make installs lock-exact and script-free #2700: retires the repo's own npm install hooks, leaving hugo-extended's reviewed npm rebuild (_install:safe:post) as the only script any install runs. Every install channel now behaves the same with and without --ignore-scripts.
  • Renames the ci:* script family: ci:test → test:full, ci:prepare/ci:post → _test:full:pre/_test:full:post:
    • The chain is a full-test entry point, not CI-only; the freed ci:* names retire.
    • Underscore names are deliberate: real npm pre/post hooks would be suppressed under ignore-scripts.
  • Drops the root and docsy.dev postinstall hooks:
    • Clone/submodule docs, the update guide, and the smoke clone leg invoke npm run install:theme-deps by name (breaking note in the changelog).
    • README clone recipe switches to npm run install:safe: a plain npm install no longer populates theme/node_modules.
  • Hardens the make-site.sh consumer simulation: fully script-suppressed (ignore-scripts=true) with an explicit theme-deps bootstrap on the NPM channel; the Docsy allowScripts allowlist had no remaining purpose.
  • Previews:

chalin added 7 commits August 9, 2026 15:49
- Renames ci:test → test:full, ci:prepare/ci:post → _test:full:pre/_test:full:post: the chain is a local full-test entry point, not CI-only.
- Underscore prefixes are deliberate: real npm pre/post hooks would be suppressed under ignore-scripts.
- The freed ci:* names retire with no aliases.
- Drops the root and docsy.dev postinstall hooks: no Docsy package declares npm lifecycle scripts anymore, so script-suppressed installs behave identically to default installs.
- Clone/submodule docs and the smoke clone leg now invoke the underlying command by name: npm run install:theme-deps.
- make-site.sh consumer simulation goes fully script-suppressed (ignore-scripts=true) with an explicit theme-deps bootstrap for the NPM channel; the docsy allowScripts machinery had no remaining purpose.
- README clone recipe switches to install:safe: a plain npm install no longer populates theme/node_modules.
- Adds the [docsy#2712] refs now that the PR number exists, plus the probe-produced .lycheecache entry.
- Scopes the hooks claim honestly: install hooks, not all lifecycle hooks (theme prepack/postpack and run hooks remain).
- Notes why the make-site engines floor stays at the repo's own 11.16.
- Dedupes the changelog hooks-dropped fact; leans the maintainer-notes test:full sentence and a smoke progress message.
- With the postinstall hook gone, npm install google/docsy no longer self-installs Bootstrap/Font Awesome: the dev/testing recipe gains the explicit install:theme-deps step and a why note (adversarial-review finding).
- Trues up two remaining plain-npm-install remedy messages (smoke assert, extract-method.pl) to the sanctioned commands.
@chalin
chalin marked this pull request as ready for review August 9, 2026 20:59
chalin added 2 commits August 9, 2026 17:08
- Keeps the submodule procedure at the project root (git -C), so the config append and the install:theme-deps step run from the documented cwd (pre-existing defect, surfaced by the renamed step).
- Drops the two stale hasInstallScript lock flags for root and docsy.dev: the manifests no longer declare install hooks; hand-removed since lock-regenerating installs are locked down, mechanically equivalent, and re-proven by CI's npm ci leg.
- Scopes the .npmrc immunity claim to the site's own installs: --prefix re-roots npm's project config, so the nested theme-deps leg is protected by its inline flags, not the .npmrc (adversarial round-3 finding).
- Notes that -l expects an installed checkout; make-site never bootstrapped local-checkout theme deps.
@chalin
chalin merged commit 1b92804 into docsy:main Aug 9, 2026
16 checks passed
@chalin
chalin deleted the chalin-m24-ci-rename-2026-0809 branch August 9, 2026 21:48
chalin added a commit to chalin/docsy that referenced this pull request Aug 12, 2026
Prove from the committed manifests, locks, .npmrc, and workflows alone
that the hardening invariants (docsy#2700, docsy#2702, docsy#2712) still hold: registry
+ integrity coverage, non-registry allowlist, campaign IOC denylist,
install-script inventory with a lock-matching allowScripts pin, locked
script-free install commands, and credential-isolated workflow installs.
Wired into test:full via _test:full:post.
@chalin chalin added this to the 0.17.0 milestone Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant