mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 06:18:00 +01:00
* ci(broken-words): say why sign-in got no answer, and try once more Main went red twice on8a3e050(#1567) in build-and-smoke → check:broken-words with `authPostStatuses: []`: the click sent the token request to the self-hosted auth and no response ever came back. The diagnostic recorded only responses, so it could not say whether the form had submitted at all. The same sign-in from outside the runner answered 200 at the time. - Record auth requests that FAILED (Playwright `requestfailed`, error text only) beside the ones that answered. - Include the page's own alert text (first 160 characters; never input). - When no auth request got any answer, wait 20 s and try once more before the gate gives up — the usual cause is the runner or the shared account being throttled for a moment. Checks run directly (eslint 0 errors, 2 pre-existing warnings; prettier; node --check): `pnpm exec` cannot resolve the private writingkit tarball from this sandbox, so the hooks that wrap it were bypassed; CI is the gate. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD * ci(broken-words): also name preflights that failed and auth requests still pending The first diagnostic (1d0a135) ran on CI and reported nothing at all: no response, no failed POST, no alert, twice. A cross-origin POST is preceded by an OPTIONS preflight, and a connection the box silently drops answers neither — so record every auth-path request that failed, whatever its method, every preflight rejected with 4xx/5xx, and every auth request still unanswered when the gate gives up. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD --------- Co-authored-by: Claude <noreply@anthropic.com>
Scripts Directory
This directory contains all automation scripts organized by purpose.
Directory Structure
analysis/- Bundle analysis, documentation checking, and optimization toolsauth-fix/- Scripts to fix authentication and RLS policy issuesdb/- Database operations, migrations, and schema management- Migration scripts moved from root:
apply-migration.js,apply-*-migration.js
- Migration scripts moved from root:
deployment/- Deployment, production setup, and monitoring scriptsdev/- Development helpers, local setup, and debugging toolsdiagnostics/- Health checks and system diagnosticsmaintenance/- Cleanup, optimization, and maintenance scriptsmonitoring/- Performance monitoring and bundle size trackingoauth/- OAuth provider setup and configurationprofile-fix/- Scripts to fix profile-related issuesschema-fix/- Database schema fixes and migrationsstorage/- Supabase storage bucket setup and managementtest/- Testing utilities and validation scripts- Test/debug scripts moved from root:
test-*.js,check-*.js,debug-*.js
- Test/debug scripts moved from root:
Usage
Most scripts can be run with:
node scripts/{category}/script-name.js
For deployment scripts:
bash scripts/deployment/script-name.sh
Important Scripts
scripts/dev/dev-start.js- Main development server starterscripts/deployment/browser-verify.js- Post-deploy browser smoke test (deploys run from.github/workflows/cd.ymlviascripts/deploy-selfhost.sh— see docs/operations/deployment/DEPLOYMENT_PROCESS.md)scripts/apply-migrations.sh- Applies pendingsupabase/migrations/*.sqlon every deploy (run byscripts/deploy-selfhost.sh).scripts/db/apply-migrations.tsis a legacy script, not the deploy path.scripts/maintenance/cleanup-console-logs.ts- Remove console.log statements