Files
civitai__civitai/.gitignore
T
Zachary Lowden cca249e517 ci(lighthouse): report-only Lighthouse CI on PR previews (Tekton) (#2516)
* ci(lighthouse): report-only Lighthouse CI on PR previews (Tekton)

Adds the civitai-side config for a new report-only `lighthouse` task in the
datapacket-talos pr-preview pipeline. On each preview build it runs Lighthouse
(5 runs, desktop, median-aggregated) against the deployed preview at
pr-<N>.civitaic.com and posts a report-only PR comment with perf/a11y scores +
LCP/CLS/TBT/INP and a public report link.

- lighthouserc.json: 3 routes (/ /models /generate), numberOfRuns 5, desktop
  preset, --no-sandbox, temporary-public-storage upload. All assertions are
  `warn` (report-only) — promotion path documented (deterministic CLS/byte
  budgets to `error` first, noisy timing metrics last, after a soak).
- tests/lighthouse-mint-cookie.cjs: mints the gate-passing ci-smoke-gold
  NextAuth session cookie (same next-auth/jwt encode + NEXTAUTH_SECRET as
  tests/preview-auth.setup.ts) and injects it into collect.settings.extraHeaders
  -> lighthouserc.runtime.json, so headless Chrome clears the preview-auth
  middleware /login gate instead of measuring the login page.

Report-only first; structured to flip to gating later.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* ci: retrigger preview for lighthouse upload fix

* ci: retrigger preview for lighthouse manifest fix

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 17:09:46 -05:00

141 lines
2.0 KiB
Plaintext

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
node_modules
/.pnp
.pnp.js
# testing
/coverage
# database
/prisma/db.sqlite
/prisma/db.sqlite-journal
# Generated slim schema - edit schema.full.prisma instead
prisma/schema.prisma
# next.js
/.next/
/out/
# Auto-generated by `next dev`/`next build`; its import path flips between
# .next/dev/types and .next/types depending on the last command run, so
# tracking it just creates churn. Next regenerates it on every run.
next-env.d.ts
# ladle
.ladle/stubs/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env
.env*
!.env-example
!.env.example
# vercel
.vercel
# typescript
*.tsbuildinfo
# docker volumes
/postgres*
/redis
/minio
# browser automation (local session/profile data)
.browser/sessions/
.browser/profiles/
.browser/storage/
/clickhouse*
/undefined
/.docker
/prisma_pit
# Meilisearch
/meilisearch
/data.ms/
# WebStorm
.idea
*.http
# SEO
/public/sitemap*.xml
/public/robots.txt
ca-certificate.crt
# IDE
*~
src/pages/api/admin/*.json
trace/trace.json
trace/types.json
# Local files
/src/local
.todo
/analyze
# Playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/tests/auth/*.json
src/pages/api/dev-local/*
/.playwright-mcp/
# Ladle (local dev artifacts)
.ladle/stubs/
# LLM
/.serena/
docs/working/
docs/incidents/
.claude/*.local.*
.claude/skills/cloudflare/.port-tmp-path
local/
.eslintcache
nul
scripts/local-dev/
.direnv
# Claude agent temp directories
tmpclaude-*-cwd
.claude/skills/flipt/.env
.claude/skills/freshdesk/.env
# Ralph agent
scripts/ralph/prd.json
scripts/ralph/progress.txt
# Claude temp files
tmpclaude-*
/.claude/worktrees
# Bundled SharedWorker scripts (generated by pnpm build:workers)
/public/workers/
# Turborepo local task cache
.turbo/
# Lighthouse CI — runtime config (cookie-injected) + report output, never committed
lighthouserc.runtime.json
.lighthouseci/