fix: isolate CHRNX local integration state
This commit is contained in:
16 files changed
+536
-65
No files matched your search
@@ -43,7 +43,11 @@ Seed the local `wp-env` site with deterministic review content:
|
||||
|
||||
The script accepts only `localhost` or `127.0.0.1`. It updates records marked
|
||||
with `_chrnx_fixture_key` and leaves unrelated local content alone. Repeated
|
||||
runs reuse the same pages and posts.
|
||||
runs reuse the same pages and posts. Before its first normal seed, it snapshots
|
||||
the exact local values for `sticky_posts`, site title/tagline, front/posts Page
|
||||
settings, permalink structure, the Subscribe Page pointer, and an existing
|
||||
fixture-owned Subscribe Page status. Fixture stickies are merged with unrelated
|
||||
sticky IDs instead of replacing them.
|
||||
|
||||
Use an allowlisted local edge scenario, then restore the default dataset:
|
||||
|
||||
@@ -54,8 +58,14 @@ Use an allowlisted local edge scenario, then restore the default dataset:
|
||||
./scripts/seed-test-content.sh subscribe-unpublished
|
||||
./scripts/seed-test-content.sh subscribe-unavailable
|
||||
./scripts/seed-test-content.sh default
|
||||
./scripts/seed-test-content.sh restore
|
||||
```
|
||||
|
||||
`default` restores the fixture presentation after an edge scenario; it does not
|
||||
discard the pre-fixture snapshot. Run `restore` explicitly to reinstate the
|
||||
captured option values and owned Subscribe status byte-for-byte and remove the
|
||||
snapshot. Fixture pages/posts remain local and reusable.
|
||||
|
||||
Rebuild the responsive portrait derivatives on macOS with `sips`, `cwebp`, and
|
||||
`avifenc`:
|
||||
|
||||
@@ -63,10 +73,18 @@ Rebuild the responsive portrait derivatives on macOS with `sips`, `cwebp`, and
|
||||
./scripts/build-responsive-images.sh
|
||||
```
|
||||
|
||||
For a non-destructive reproducibility check, pass an explicit absolute temporary
|
||||
directory: `./scripts/build-responsive-images.sh "$(mktemp -d)"`. The automated
|
||||
smoke test byte-compares all 35 outputs, validates their formats and dimensions,
|
||||
and enforces 160 KiB per derivative and 1.7 MiB total payload bounds.
|
||||
For a non-destructive reproducibility check, create a named direct child of the
|
||||
system temporary directory and pass its explicit absolute path:
|
||||
|
||||
```sh
|
||||
responsive_output=$(mktemp -d "${TMPDIR:-/tmp}/chrnx-responsive.XXXXXX")
|
||||
./scripts/build-responsive-images.sh "$responsive_output"
|
||||
```
|
||||
|
||||
The rebuild rejects symlinks, nested paths, nonexistent paths, and destinations
|
||||
outside the canonical system temporary directory. The automated smoke test
|
||||
byte-compares all 35 outputs, validates their formats and dimensions, and
|
||||
enforces 160 KiB per derivative and 1.7 MiB total payload bounds.
|
||||
|
||||
The PNG masters remain unchanged. WordPress serves 384 px and 768 px AVIF or
|
||||
WebP sources, with the PNG as a fallback.
|
||||
|
||||
Reference in new issue
Block a user