@se-studio/site-check 2.20.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/README.md +4 -0
- package/develop-published-gate.mjs +869 -0
- package/dist/check-pages-exist.d.ts.map +1 -1
- package/dist/check-pages-exist.js +2 -1
- package/dist/check-pages-exist.js.map +1 -1
- package/dist/check-rewrites.d.ts.map +1 -1
- package/dist/check-rewrites.js +2 -1
- package/dist/check-rewrites.js.map +1 -1
- package/dist/cli.js +8 -1
- package/dist/cli.js.map +1 -1
- package/dist/collect-markdown-urls.d.ts.map +1 -1
- package/dist/collect-markdown-urls.js +2 -1
- package/dist/collect-markdown-urls.js.map +1 -1
- package/dist/download.d.ts.map +1 -1
- package/dist/download.js +2 -1
- package/dist/download.js.map +1 -1
- package/dist/fetch-timeout.d.ts +9 -0
- package/dist/fetch-timeout.d.ts.map +1 -0
- package/dist/fetch-timeout.js +17 -0
- package/dist/fetch-timeout.js.map +1 -0
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +5 -3
- package/dist/validate.js.map +1 -1
- package/dist/xml-entities.d.ts +3 -0
- package/dist/xml-entities.d.ts.map +1 -0
- package/dist/xml-entities.js +10 -0
- package/dist/xml-entities.js.map +1 -0
- package/docs/develop-published.md +44 -0
- package/package.json +6 -3
- package/templates/develop-published/develop-published-gate.yml +148 -0
- package/templates/develop-published/update-develop-published.yml +58 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.25.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 55c2a3b: develop-published-gate: the develop-vs-production compare is now on demand only. It is off by default and runs only with `--compare` (alias `--prod-compare`). Without it the stage reports exactly `compare: not run (on-demand)` and counts as neither a pass nor a fail (recorded in `--json` as `ok: null, skipped: true`), and `--prod-url` is no longer required. `--compare-timeout-minutes` and `GATE_COMPARE_TIMEOUT_MINUTES` apply only when the compare runs. Every other stage (exact commit, noindex, draft canary, full smoke, content smoke, sitemap slug-guard parity) runs unchanged on every deployment; parity fetches the build's own sitemap and never depended on the compare. The workflow template gains a `workflow_dispatch` boolean input `compare` (default false) that passes `--compare` only for a manual run; the deployment.ready path never does. Manual compare runs are never skipped as already green, have their own concurrency group, and post the same status context with the description noting whether the compare ran. Note for gate consumers: a green `develop-published gate` no longer includes a prod compare unless `--compare` was passed.
|
|
8
|
+
|
|
9
|
+
## 2.24.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 57e556e: develop-published-gate: the spawned prod compare limit is configurable and defaults to 25 minutes again. `--compare-timeout-minutes <n>` sets it, `GATE_COMPARE_TIMEOUT_MINUTES` overrides the default when it is a positive number, and the flag wins. The published gate had hard-coded 10 minutes, which contradicted the 25 minutes in the docs and the earlier changelog and would have killed healthy compares (HSD takes about 20, Pedestal about 30). Also adds `--no-draft-canary` for sites with no draft-only page: the draft-canary stage passes with a `SKIPPED` detail instead of failing for lack of `--draft-canary`. With these, the vendored gate copies (HSD, Eagle, Pedestal, Headwater, Brightline, BLK) can be replaced by the `develop-published-gate` bin.
|
|
14
|
+
|
|
15
|
+
## 2.23.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [53ee13b]
|
|
20
|
+
- @se-studio/core-ui@1.48.5
|
|
21
|
+
|
|
22
|
+
## 2.23.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- 161a183: `develop-published-gate` adds a sitemap-parity stage: any path in the build's sitemap that fails core's impossible-slug guard (`pathnameHasImpossibleCmsSlug`, imported from `@se-studio/core-ui/impossible-cms-slug`) now FAILS the gate instead of passing silently. An unreadable build sitemap also fails. Adds `@se-studio/core-ui` as a dependency.
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [161a183]
|
|
31
|
+
- @se-studio/core-ui@1.48.4
|
|
32
|
+
|
|
33
|
+
## 2.22.1
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- 3a5291b: develop-published-gate and site-check: every compare/sitemap fetch has a 30s timeout (`SITE_CHECK_FETCH_TIMEOUT_MS` overrides it in site-check; a timeout is a transient, retried failure, 3 tries), the spawned compare is killed after 25 minutes and not retried, and the gate workflow template gets a `concurrency` group keyed on the commit so the two READY deployments of one develop-published SHA no longer run the gate twice (a cancelled run posts no status). The gate job also gets `timeout-minutes: 35`, and an early step skips the run (success, no new status) when the newest `develop-published gate` status on the SHA is already `success`; failed, pending or missing statuses still run it. The deployment smoke workflow example in the skills package gets a job `timeout-minutes` too.
|
|
38
|
+
|
|
39
|
+
## 2.22.0
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- c9aa97d: `develop-published-gate`: new `--sitemap-roots <paths>` option (comma-separated or repeated; paths or absolute production URLs) for the sitemap roots the app owns. The prod compare then walks only those roots (an index is followed one level) instead of the full production sitemap index, so URLs another app serves (for example `/earn/*` on point.me) are no longer compared. Without the option nothing changes: the full production sitemap index is compared as before. An unreadable, nested-index or empty root fails the compare.
|
|
44
|
+
|
|
45
|
+
## 2.21.2
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 396c0a4: `develop-published-gate`: the prod compare "sitemap pages exist" now only requires production sitemap URLs that return 200 on production. A URL missing on the build that also 404s/410s on production is reported as a warning ("prod sitemap lists dead URL"), not a gate failure; an indeterminate production answer (5xx, error) still fails. Transient fetch errors ("fetch failed", ECONNRESET, timeouts) are retried up to 3 times with backoff, both for the gate's own requests and for the spawned compare.
|
|
50
|
+
|
|
51
|
+
## 2.21.1
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- 0692edf: develop-published docs and gate workflow template: the gate workflow checks out the promoted commit (not the build commit), and the docs describe how `ignoreCommand` skips builds and why the exact-commit stage accepts an ancestor build.
|
|
56
|
+
|
|
57
|
+
## 2.21.0
|
|
58
|
+
|
|
59
|
+
### Minor Changes
|
|
60
|
+
|
|
61
|
+
- bd04e26: Add `develop-published-gate`, the promote gate for a persistent published-content build of develop (exact commit, noindex, draft canary, full smoke, content smoke, prod compare), plus workflow templates in `templates/develop-published/` and `docs/develop-published.md`. Fix compare mode (`--check-against`) and the markdown URL collector failing on sitemap URLs that contain XML entities (for example `'` in a slug): `<loc>` values are now decoded. In compare mode, `--vercel-bypass` now applies to the `--check-against` (development) requests only; production is public and no longer receives the bypass secret (`-H` headers still apply to both).
|
|
62
|
+
|
|
3
63
|
## 2.20.0
|
|
4
64
|
|
|
5
65
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -257,6 +257,10 @@ Optional per-case HTML checks for release verification (key blocks must render,
|
|
|
257
257
|
|
|
258
258
|
`contentAssert` also accepts an array of blocks, `environments` (run a block only in `local`/`preview`/`production`) and `allowNon2xx` (assert on an expected 404). A top-level `deadLinks` block adds an opt-in dead internal link check per page, and `runStaticSmokeTest` takes `protectionBypass: true` for protected previews. See [docs/smoke-assertions.md](./docs/smoke-assertions.md).
|
|
259
259
|
|
|
260
|
+
### develop-published gate (`develop-published-gate`)
|
|
261
|
+
|
|
262
|
+
Promote gate against a persistent published-content build of develop: exact commit, noindex, draft canary, full smoke, content smoke and sitemap slug-guard parity in one command; the prod compare runs only on demand (`--compare`). Workflow templates are in `templates/develop-published/`. See [docs/develop-published.md](./docs/develop-published.md).
|
|
263
|
+
|
|
260
264
|
### Publish-state check (CDA vs CPA)
|
|
261
265
|
|
|
262
266
|
Before promoting when Contentful entries changed, compare Delivery vs Preview:
|