Commit graph

41 commits

Author SHA1 Message Date
ThatGuySam
f1cb66c477 fix(build): retry transient sitemap endpoint fetches
The TypeScript helper refactor exposed a separate production risk: builds can fail when the sitemap-endpoints API returns a transient 5xx during Pagefind index generation. Move that fetch into a small helper with retry logic and add a focused prebuild test so this failure mode is caught without waiting on a full deploy.

Constraint: Must keep Pagefind index generation behavior the same when the endpoint is healthy
Rejected: Ignore the failure as external-only | transient 5xx responses can still block deploys and CI repeatedly
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: When external build inputs can fail transiently, add a small retryable helper plus a direct test before relying on full deploy verification
Tested: pnpm exec vitest run test/prebuild/load-sitemap-endpoints.test.ts; pnpm run typecheck; pnpm run test-prebuild
Not-tested: Full production redeploy completion before push
2026-04-04 18:18:23 -05:00
ThatGuySam
c5ec942de0 fix(ci): avoid serializing downloaded sitemap endpoints
Some checks failed
Deploy to Cloudflare Workers with Wrangler / Deploy (push) Has been cancelled
Run Node 24 Checks / build (24.x) (push) Has been cancelled
Keep the Pagefind bootstrap path from rewriting the remote sitemap
payload locally when the static JSON file is absent. GitHub-hosted runs
only need the fetched data in memory, and stringifying the 385 MB payload
was exhausting Node during netlify-build.
2026-03-15 19:33:05 -05:00
ThatGuySam
e1da6eb880 feat(search): add pagefind provider support
Add Pagefind indexing and browser search adapters behind a provider switch.

This lets prebuild generate either Stork or Pagefind search artifacts and lets the existing search UI run against Pagefind while preserving scoped filters, excerpts, and result metadata.
2026-03-15 13:42:07 -05:00
ThatGuySam
fcda9f0a02 chore(node): move repo tooling to node 24
Align local version markers and GitHub Actions with Node 24, switch the default test entrypoint to the maintained Vitest runner, and replace pnpm-incompatible npm helpers in repo scripts.

This also removes the obsolete AVA plus esm path and excludes disabled test fixtures from generic Vitest discovery so CI reflects the supported test surface.
2026-03-15 12:55:25 -05:00
ThatGuySam
9e48862a5f fix(stork): support netlify ubuntu 24 builds
Switch Stork downloads to artifacts that match current runtimes and fix the runtime detection path that Node 22 changed.

This keeps the existing Stork pipeline working on Netlify's Noble image and on Apple Silicon development machines.
2026-03-15 11:57:41 -05:00
ThatGuySam
878f1d8919 Use pnpm for vercel build script 2023-08-12 14:01:33 -05:00
ThatGuySam
72a6f23046 Disable scan-new-apps step 2023-08-12 13:58:14 -05:00
Sam Carlton
8aad6b7945 Only rurnn post-deploy on macos 2023-02-11 17:22:12 -06:00
Sam Carlton
da3cf5c6ab Fix operator 2022-12-17 13:53:04 -06:00
Sam Carlton
74926f1cd4 Fix condition 2022-12-17 13:52:36 -06:00
Sam Carlton
4a7c613dca Turn off scans 2022-12-17 13:51:48 -06:00
Sam Carlton
fe9a2bf4ae Catch fetch errors 2022-12-17 13:50:50 -06:00
Sam Carlton
23cdfef720 Disable on linus again 2022-10-21 13:38:31 -05:00
Sam Carlton
1abbf8ddfe Try getting port at vercel url 2022-10-15 13:56:27 -05:00
Sam Carlton
3e87153fc2 Log VERCEL_URL 2022-10-15 13:50:59 -05:00
Sam Carlton
b555e7411d Log port 2022-10-15 13:37:08 -05:00
Sam Carlton
8bee5ff9d9 Fix misspelling 2022-10-03 16:13:03 -05:00
Sam Carlton
4cd4a9edc6 Use import for execSync 2022-09-04 11:43:05 -05:00
Sam Carlton
19f50c4d64 Run vercel-build programmatically 2022-09-04 11:41:15 -05:00
Sam Carlton
406cdf634d Disable scan-new-apps script on linux 2022-09-04 10:13:57 -05:00
Sam Carlton
b70e2f6e17 Get app test via axios 2022-08-21 10:44:34 -05:00
Sam Carlton
4c39ace22b Log globals and this 2022-08-21 10:33:29 -05:00
Sam Carlton
54de4f4791 Convert vercel-post-deploy into package 2022-08-21 10:24:57 -05:00
Sam Carlton
2d70dd248f Add vercel-post-deploy script 2022-08-21 10:13:04 -05:00
Sam Carlton
7c10c0a704 Try different port 2022-08-21 09:07:42 -05:00
Sam Carlton
b756a53056 Add scan-new-apps script 2022-08-21 08:59:36 -05:00
Sam Carlton
45bfe1c2fa Move parseSitemapXml into helper file 2022-06-11 18:04:36 -05:00
Sam Carlton
3f7a60543b Disable logger 2022-06-07 15:04:35 -05:00
Sam Carlton
17a45a79c2 Download sitemap from api 2022-06-06 21:54:15 -05:00
Sam Carlton
8a5a64c9cc Add bash example 2022-05-10 13:18:59 -05:00
Sam Carlton
b345523e41 Add build-stork-index node script 2022-05-10 13:18:38 -05:00
Sam Carlton
e1168e90c2 Add download-stork-executable script 2022-05-10 13:14:39 -05:00
Sam Carlton
d4b9f7d4f8 Try moving search-index to static directory 2022-05-10 12:40:12 -05:00
Sam Carlton
7084584009 Try moving toml to static directory 2022-05-10 12:21:28 -05:00
Sam Carlton
df7ea9c6a6 Try v1.4.2 2022-05-10 11:56:54 -05:00
Sam Carlton
f72a795eba Fix wrong format for linux 2022-05-09 17:57:35 -05:00
Sam Carlton
91bdfbe20f Try moving stork files to root 2022-05-09 17:53:07 -05:00
Sam Carlton
62cddb2abe Try stork-amazon-linux 2022-05-09 17:46:51 -05:00
Sam Carlton
85f5774702 Update for latest stork build 2022-05-09 17:38:48 -05:00
Sam Carlton
2ec00f2349 Trry running executable via bash 2022-05-09 17:27:42 -05:00
Sam Carlton
5bbbc7f41c Add downloadStorkToml helper and script 2022-05-09 16:13:47 -05:00