Skip to content

Move vibes under apps/console with smart CI #14144

Closed

Description

@ChiragAgg5k

Goal

Move appwrite/vibes (Console v4 / TanStack) into apps/console inside appwrite/appwrite, and add smart CI so console jobs only run when console paths change (and PHP/server jobs skip pure console PRs).

Current footprint

Vibes today

Appwrite monorepo today

  • No apps/ directory yet. Layout is app/, src/, packages/<name>/, etc. (rfc/monorepo.md covers Utopia packages only).
  • Name collision: packages/console is utopia-php CLI helpers (utopia-php/console), not the web UI. Destination must be apps/console, never packages/console.
  • Self-hosted already consumes vibes image: docker-compose.yml appwrite-console → appwrite/new:*-self-hosted.
  • Smart CI precedent: .github/workflows/ci.yml Packages / Changed job uses git diff --name-only … -- packages/ (not dorny/paths-filter) to build a changed-package matrix. Vibes itself uses workflow-level paths-ignore.

Plan of action

  1. Decide absorb style — Prefer git subtree add (or bin/monorepo-style absorb if extended for apps) from appwrite/vibes into apps/console so history is preserved. Alternative: git filter-repo then merge. Document the chosen command in the PR. (appwrite/appwrite)
  2. Land the tree — Place vibes at apps/console/ (keep its package.json, Bun lockfile, Dockerfile, e2e, src). Do not fold into packages/. Add a short apps/README.md stating apps vs packages.
  3. Tooling paths — Update vibes-internal scripts, Docker build context, and any hardcoded repo paths. Keep image name appwrite/new (and *-self-hosted tags) unless deliberately renaming.
  4. Move workflows into appwrite — Relocate staging/production/e2e/tests (and connect-snippets QA workflows if still needed) under .github/workflows/ with clear names (console-staging.yml, console-e2e.yml, …). Point declarative deploy checkout at this repo; keep bumping assets/<env>/console/default.yaml in application-configuration.
  5. Smart CI (path filters) — Match existing monorepo patterns:
    • Console workflows: on.pull_request.paths / on.push.paths limited to apps/console/**, console workflow files, and shared console secrets/scripts; keep vibes' paths-ignore for markdown/static where useful.
    • Server CI (ci.yml): add an early changes job (same git diff style as Packages / Changed, or dorny/paths-filter if you prefer actions-native) that sets outputs console / server. Gate heavy PHP/docker jobs with if: needs.changes.outputs.server == 'true' (always true on workflow_dispatch / release branches). Console-only PRs should not run the full image/Trivy/E2E server matrix.
    • Optional: a thin console job matrix that runs bun test / lint inside apps/console when console paths change.
  6. Compose / docs — Ensure root docker-compose still runs appwrite/new (build from apps/console in dev if desired). Update CONTRIBUTING / AGENTS with the apps layout.
  7. Cut over vibes repo — After the first green main build + staging bump from appwrite/appwrite: archive appwrite/vibes or replace with a README redirect; disable its deploy workflows so tags are not double-bumped.
  8. Verify — Staging then production console bump from the monorepo; synthetics on appwrite.io/sign-in and authentication stay green (monitoring cloud-api / authentication).

Risks / open questions

  • History size: vibes is a large frontend tree; subtree will enlarge appwrite clone times — confirm team OK with that vs shallow app checkout instructions.
  • Secrets/vars: staging/production workflows need Docker Hub, declarative GitHub App, Sentry, Stripe, fingerprint keys, e2e secrets moved or duplicated onto appwrite/appwrite.
  • Runner labels: vibes uses gcrunner=… labels; confirm identical runners are available to appwrite/appwrite workflows.
  • packages/console confusion: reviewers and codegen must not treat apps/console as a Utopia package (no split.yml entry).
  • Coordination with cloud#6318 (old console cleanup) — new console must stay up while legacy /console redirect is removed.

Done when

  • apps/console exists on appwrite/appwrite main with vibes history (or agreed equivalent)
  • Console staging/production deploy workflows run from appwrite/appwrite and bump application-configuration
  • Path-filtered CI: console-only PRs skip full server CI; server-only PRs skip console e2e/build
  • appwrite/new images still ship; appwrite.io console synthetics green
  • appwrite/vibes archived or clearly redirected; no double deploys

Activity

  1. self-assigned this
    on Oct 5, 2026
  2. added
    product / console
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / console

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions