Skip to content

ci: fix Node 22 deploy + remove Supabase knowledge-search#749

Merged
ss-o merged 3 commits into
nextfrom
feature-zsh10-ci-supabase
May 25, 2026
Merged

ci: fix Node 22 deploy + remove Supabase knowledge-search#749
ss-o merged 3 commits into
nextfrom
feature-zsh10-ci-supabase

Conversation

@ss-o
Copy link
Copy Markdown
Member

@ss-o ss-o commented May 25, 2026

Summary

Recovers wiki CI and removes the unused Supabase knowledge-search experiment. Tracked in Linear ZSH-10.

  • CI fix (Node 22): wrangler@4 dropped Node 20 support, which broke Deploy Wiki and r2-sync. Bumped setup-node to 22 in pages-deployment.yml, r2-sync.yml, and ci-perf.yml, and engines.node to >=22.
  • Supabase removal: the knowledge-search feature had no live frontend consumer — site search is Algolia DocSearch and src/theme/SearchBar.tsx only tweaks aria attributes. Its indexer workflow was also failing on main. Removed supabase/, scripts/knowledge-search/, the knowledge-search-index.yml workflow, the openai + postgres deps and their package scripts, regenerated pnpm-lock.yaml, and dropped the stale AGENTS.md reference.

Follow-ups (not in this PR)

  • Revoke external secrets SUPABASE_URL / SUPABASE_DB_URL / SUPABASE_SECRET_KEY / SB_SECRET_KEY / OPENAI_API_KEY (if unused elsewhere) and decommission the Supabase project.
  • Remove the runbooks/supabase-knowledge-search.md runbook in z-shell/.github (separate repo).
  • Deploy Wiki / Knowledge Search Index run on mainmain stays red until this is promoted. next and main have diverged (main is ahead by 8 hotfix commits), so the promotion needs reconciliation (see ZSH-10 T3).

Test plan

  • CI green on this PR (Trunk, CodeQL)
  • After promotion to main: Deploy Wiki succeeds on Node 22
  • Site search (Algolia) unaffected

ss-o added 2 commits May 25, 2026 17:55
Wrangler 4 dropped Node 20 support, which broke the Deploy Wiki and r2-sync workflows. Bump setup-node to 22 across the wrangler and CI workflows.
The Supabase-backed semantic search had no live frontend consumer (site search is Algolia DocSearch; SearchBar.tsx only tweaks aria attributes), and its indexer workflow was failing on main. Remove the supabase/ project, scripts/knowledge-search/, the indexer workflow, the openai and postgres dependencies, and the stale AGENTS.md reference.
Copilot AI review requested due to automatic review settings May 25, 2026 17:02
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 25, 2026

Deploying zsh with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3f4057c
Status: ✅  Deploy successful!
Preview URL: https://a98197b9.zsh.pages.dev
Branch Preview URL: https://feature-zsh10-ci-supabase.zsh.pages.dev

View logs

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 25, 2026

Size Change: 0 B

Total Size: 6.59 MB

ℹ️ View Unchanged
Filename Size
.docusaurus/globalData.json 13.7 kB
build/404.html 10.9 kB
build/assets/css/styles.********.css 154 kB
build/assets/js/0a6cf40a.********.js 36.9 kB
build/assets/js/0fd216e9.********.js 9.43 kB
build/assets/js/1a4e3797.********.js 82.6 kB
build/assets/js/1b355a49.********.js 8.52 kB
build/assets/js/1c9dc0d9.********.js 23.1 kB
build/assets/js/1df93b7f.********.js 16.7 kB
build/assets/js/1f391b9e.********.js 2.99 kB
build/assets/js/2e789afb.********.js 74.9 kB
build/assets/js/3a9ef7ca.********.js 439 B
build/assets/js/3dd168bd.********.js 17.4 kB
build/assets/js/3fc333ae.********.js 31 kB
build/assets/js/4edc808e.********.js 5.29 kB
build/assets/js/5c2e370e.********.js 487 B
build/assets/js/5e95c892.********.js 338 B
build/assets/js/6be15ea1.********.js 9.37 kB
build/assets/js/7aa168bf.********.js 6.38 kB
build/assets/js/7b9e4520.********.js 11.4 kB
build/assets/js/7bf4542e.********.js 18.4 kB
build/assets/js/7c5c12ac.********.js 9.68 kB
build/assets/js/7db88304.********.js 15.5 kB
build/assets/js/7efa72d3.********.js 7.22 kB
build/assets/js/09a4fe5a.********.js 64.8 kB
build/assets/js/9b0b65a6.********.js 11.2 kB
build/assets/js/12cfd228.********.js 7.17 kB
build/assets/js/14eb3368.********.js 10.6 kB
build/assets/js/40c845af.********.js 31.4 kB
build/assets/js/47a5fc0a.********.js 174 B
build/assets/js/55b84506.********.js 12.3 kB
build/assets/js/56bcdb4b.********.js 10.3 kB
build/assets/js/57a8643e.********.js 14.3 kB
build/assets/js/0058b4c6.********.js 4.26 kB
build/assets/js/62b83c0f.********.js 8.01 kB
build/assets/js/66fe25d9.********.js 7.21 kB
build/assets/js/073fbc7c.********.js 15.8 kB
build/assets/js/78a4fd52.********.js 4.94 kB
build/assets/js/93c7665c.********.js 5.99 kB
build/assets/js/167d542a.********.js 12 kB
build/assets/js/175b49cb.********.js 39.4 kB
build/assets/js/221b35f7.********.js 17.9 kB
build/assets/js/263b985f.********.js 37 kB
build/assets/js/446e416b.********.js 9.56 kB
build/assets/js/573f7f56.********.js 3.29 kB
build/assets/js/621db11d.********.js 19.6 kB
build/assets/js/635ad0e8.********.js 490 B
build/assets/js/814f3328.********.js 151 B
build/assets/js/945b49d0.********.js 14.3 kB
build/assets/js/991ed628.********.js 17.1 kB
build/assets/js/1448.********.js 101 B
build/assets/js/2137bacb.********.js 8.88 kB
build/assets/js/3044.********.js 451 B
build/assets/js/3894e54f.********.js 21.9 kB
build/assets/js/4180.********.js 10.3 kB
build/assets/js/5665.********.js 101 B
build/assets/js/5883.********.js 15 kB
build/assets/js/6091.********.js 175 kB
build/assets/js/7917.********.js 27.4 kB
build/assets/js/8406.********.js 938 B
build/assets/js/8525.********.js 1.27 kB
build/assets/js/8721.********.js 443 kB
build/assets/js/8894.********.js 102 B
build/assets/js/8975.********.js 5.79 kB
build/assets/js/9170.********.js 1.05 kB
build/assets/js/36994c47.********.js 171 B
build/assets/js/98822c48.********.js 12.9 kB
build/assets/js/4382960e.********.js 9.82 kB
build/assets/js/8357758b.********.js 19.7 kB
build/assets/js/8449122f.********.js 56.4 kB
build/assets/js/17896441.********.js 1.79 kB
build/assets/js/35475145.********.js 451 B
build/assets/js/39724810.********.js 14 kB
build/assets/js/70442256.********.js 36 kB
build/assets/js/a7bd4aaa.********.js 687 B
build/assets/js/a21c20db.********.js 45 kB
build/assets/js/a821d7a1.********.js 14.9 kB
build/assets/js/a94703ab.********.js 11.4 kB
build/assets/js/a7456010.********.js 173 B
build/assets/js/aba21aa0.********.js 172 B
build/assets/js/acecf23e.********.js 193 B
build/assets/js/b14e0f74.********.js 15.8 kB
build/assets/js/b28a5f0c.********.js 21 kB
build/assets/js/b4616e61.********.js 18.6 kB
build/assets/js/bc6be8dd.********.js 438 B
build/assets/js/bc7db166.********.js 22.8 kB
build/assets/js/c7b90d82.********.js 23.1 kB
build/assets/js/c141421f.********.js 172 B
build/assets/js/cf55cfec.********.js 458 B
build/assets/js/d5c68bbd.********.js 42.6 kB
build/assets/js/d40a1e80.********.js 9.99 kB
build/assets/js/d48f62ac.********.js 8.66 kB
build/assets/js/d66fa391.********.js 32.4 kB
build/assets/js/d2436a2b.********.js 8.59 kB
build/assets/js/db8d5f16.********.js 11.6 kB
build/assets/js/e9ebadb9.********.js 12.5 kB
build/assets/js/e9814e3e.********.js 7.48 kB
build/assets/js/e76149f9.********.js 9.75 kB
build/assets/js/e0719818.********.js 174 B
build/assets/js/ea82e367.********.js 13.7 kB
build/assets/js/eb7ebca6.********.js 30.5 kB
build/assets/js/ebed0d07.********.js 5.35 kB
build/assets/js/ec281f2e.********.js 15.8 kB
build/assets/js/eecb7248.********.js 2.94 kB
build/assets/js/ef8b811a.********.js 313 B
build/assets/js/f7eabd91.********.js 8.77 kB
build/assets/js/f077d5db.********.js 33.4 kB
build/assets/js/f1028ce8.********.js 465 B
build/assets/js/f13553a8.********.js 436 B
build/assets/js/f53487f0.********.js 12.6 kB
build/assets/js/fd2064b2.********.js 11.5 kB
build/assets/js/fedb50c8.********.js 44.7 kB
build/assets/js/main.********.js 518 kB
build/assets/js/runtime~main.********.js 8.21 kB
build/blog/authors.html 11.5 kB
build/community.html 21.8 kB
build/community/category/-collection.html 22.7 kB
build/community/category/-gallery-of-invocations.html 17.5 kB
build/community/contributing.html 24.4 kB
build/community/contributing/contributing_docs.html 38.3 kB
build/community/contributing/contributing_to_zi.html 31.8 kB
build/community/contributing/getting_started.html 33.6 kB
build/community/contributing/project_management.html 36.8 kB
build/community/contributors.html 26.5 kB
build/community/gallery/collection.html 24 kB
build/community/gallery/collection/completions.html 76.3 kB
build/community/gallery/collection/plugins.html 84.1 kB
build/community/gallery/collection/programs.html 188 kB
build/community/gallery/collection/services.html 24.7 kB
build/community/gallery/collection/snippets.html 24.4 kB
build/community/gallery/collection/themes.html 63.4 kB
build/community/zsh_handbook.html 159 kB
build/community/zsh_plugin_standard.html 108 kB
build/community/zunit.html 28.4 kB
build/community/zunit/zunit-assertions.html 60.8 kB
build/community/zunit/zunit-ci.html 43.4 kB
build/community/zunit/zunit-configuration.html 31.6 kB
build/community/zunit/zunit-installation.html 33 kB
build/community/zunit/zunit-running-tests.html 29.8 kB
build/community/zunit/zunit-test-syntax.html 43.7 kB
build/docs.html 20.8 kB
build/docs/category/-getting-started.html 17.9 kB
build/docs/category/-guides.html 18.9 kB
build/docs/category/️-syntax.html 20.1 kB
build/docs/code.html 20.3 kB
build/docs/getting_started/installation.html 62 kB
build/docs/getting_started/migration.html 87.5 kB
build/docs/getting_started/overview.html 85.8 kB
build/docs/guides/benchmark.html 56.8 kB
build/docs/guides/commands.html 97.5 kB
build/docs/guides/customization.html 85.8 kB
build/docs/guides/syntax/bindkey.html 38.4 kB
build/docs/guides/syntax/for.html 70.4 kB
build/docs/guides/syntax/ice-modifiers.html 47.9 kB
build/docs/guides/syntax/standard.html 140 kB
build/ecosystem.html 20.7 kB
build/ecosystem/annexes/bin-gem-node.html 114 kB
build/ecosystem/annexes/default-ice.html 31 kB
build/ecosystem/annexes/eval.html 37.8 kB
build/ecosystem/annexes/linkbin.html 31.6 kB
build/ecosystem/annexes/meta-plugins.html 38.9 kB
build/ecosystem/annexes/overview.html 63.5 kB
build/ecosystem/annexes/patch-dl.html 27.6 kB
build/ecosystem/annexes/readurl.html 40.1 kB
build/ecosystem/annexes/rust.html 42.3 kB
build/ecosystem/annexes/submods.html 24.3 kB
build/ecosystem/annexes/unscope.html 40.7 kB
build/ecosystem/category/-annexes.html 24.3 kB
build/ecosystem/category/-packages.html 17.3 kB
build/ecosystem/category/️-plugins.html 29.6 kB
build/ecosystem/packages/synopsis.html 35.2 kB
build/ecosystem/packages/usage.html 73.1 kB
build/ecosystem/plugins/diff-so-fancy.html 39.7 kB
build/ecosystem/plugins/f-sy-h.html 118 kB
build/ecosystem/plugins/h-s-mw.html 52.3 kB
build/ecosystem/plugins/zbrowse.html 27.7 kB
build/ecosystem/plugins/zconvey.html 32.1 kB
build/ecosystem/plugins/zi-console.html 35.2 kB
build/ecosystem/plugins/zprompts.html 29.5 kB
build/ecosystem/plugins/zsh_lint.html 25 kB
build/ecosystem/plugins/zsh-cmd-architect.html 36.9 kB
build/ecosystem/plugins/zsh-editing-workbench.html 32.5 kB
build/ecosystem/plugins/zsh-modules.html 38.7 kB
build/ecosystem/plugins/zsh-navigation-tools.html 76.3 kB
build/ecosystem/plugins/zsh-select.html 39.9 kB
build/ecosystem/plugins/zsh-unique-id.html 31.6 kB
build/ecosystem/plugins/zui.html 174 kB
build/ecosystem/plugins/zzcomplete.html 29.1 kB
build/index.html 21.5 kB
build/legal/CODE_OF_CONDUCT.html 20.6 kB
build/legal/PRIVACY.html 32.7 kB
build/search.html 16.2 kB

compressed-size-action

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Restores CI/deploy compatibility with wrangler@4 by moving CI Node runtimes to Node 22, and removes the unused Supabase “knowledge-search” indexing experiment (Edge Function, migrations, scripts, workflow, and deps) to simplify the repo.

Changes:

  • Bumped CI/deploy workflows to run on Node 22 and updated package.json engines.node to >=22.
  • Removed Supabase knowledge-search implementation (Supabase project files, indexer/query scripts + tests, and the indexing workflow).
  • Removed openai and postgres dependencies and regenerated pnpm-lock.yaml.

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
supabase/migrations/20260521000000_create_docs_search.sql Removes Supabase migration for docs_search vector schema (feature deletion).
supabase/functions/knowledge-search/index.ts Removes Supabase Edge Function for semantic search (feature deletion).
supabase/config.toml Removes Supabase local config (feature deletion).
supabase/.gitignore Removes Supabase-specific ignores (feature deletion).
scripts/knowledge-search/query.test.mjs Removes knowledge-search query script tests (feature deletion).
scripts/knowledge-search/query.mjs Removes knowledge-search query script (feature deletion).
scripts/knowledge-search/embed-docs.test.mjs Removes indexer script tests (feature deletion).
scripts/knowledge-search/embed-docs.mjs Removes indexer script (feature deletion).
scripts/knowledge-search/collect-docs.test.mjs Removes doc collector tests (feature deletion).
scripts/knowledge-search/collect-docs.mjs Removes doc collector/chunker logic (feature deletion).
pnpm-lock.yaml Drops openai/postgres lock entries after feature removal.
package.json Removes knowledge-search scripts/deps and raises Node engine requirement to >=22.
AGENTS.md Removes the specific runbook reference related to the removed feature.
.github/workflows/r2-sync.yml Updates workflow runtime to Node 22 for wrangler compatibility.
.github/workflows/pages-deployment.yml Updates deploy workflow runtime to Node 22 for wrangler compatibility.
.github/workflows/knowledge-search-index.yml Deletes the knowledge-search indexing workflow.
.github/workflows/ci-perf.yml Updates perf CI workflow runtime to Node 22.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread package.json
Follow-up to the wrangler@4 Node bump: the Trunk Check composite action still installed deps under Node 20, mismatching engines.node >=22. Bump it and update the AGENTS.md prerequisite.
@ss-o ss-o merged commit febf770 into next May 25, 2026
8 checks passed
@ss-o ss-o deleted the feature-zsh10-ci-supabase branch May 25, 2026 17:11
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.

2 participants