feat: full GCP deployment pipeline for backend + frontend#23
Merged
GeorgePearse merged 3 commits intomainfrom Mar 29, 2026
Merged
feat: full GCP deployment pipeline for backend + frontend#23GeorgePearse merged 3 commits intomainfrom
GeorgePearse merged 3 commits intomainfrom
Conversation
- Add Rust backend API endpoints (individuals, generations, lineage) - Add Liquibase migration 008 (code/language/text_feedback on individuals) - Rewrite frontend api.ts to call Rust backend REST API - Containerize frontend (Dockerfile + nginx reverse proxy) - Add Terraform for frontend Cloud Run service - Add CI/CD pipeline for both backend and frontend - Add frontend service to docker-compose.yml - Clean up stale files (ClickHouse docs, debug scripts, plots) - Fix pre-existing TS build errors Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 29340437 | Triggered | Generic Password | 28cc37b | scripts/export_ddl.sh | View secret |
| 29340438 | Triggered | Username Password | 28cc37b | docker-compose.yml | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Also add .factory/settings.json for Factory plugins config. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Ignores example env files, Terraform variable interpolations, and test fixtures that use ephemeral local database containers. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the GCP deployment story by adding frontend deployment alongside the existing backend infrastructure.
Changes
Rust Backend API (new endpoints):
GET /api/runs/:id- single run detailsGET /api/runs/:id/individuals- all individuals for a runGET /api/runs/:id/generations- generation summariesGET /api/runs/:id/generations/:gen- single generation detailGET /api/runs/:id/lineage- code lineage edgesFrontend:
api.tsfrom Express/SQLite to Rust backend REST APIVITE_API_URLenv var for configurable API base (defaults to/api)Terraform:
cloud_run_frontend.tf- second Cloud Run service for frontendfrontend_imagevariable +frontend_urloutput/api/*to backend viaBACKEND_URLenv varCI/CD (
deploy.yml):build-and-push-frontendjobdeploy-frontendjob (depends on backend deploy for URL)genesis/webui/frontend/**Database:
code,language,text_feedbacktoindividualstabledocker-compose:
frontendservice on port 3000Architecture
Future direction: Git notes for interleaving free text with code
A natural evolution of the storage model would be to use git notes (
git notes add) to attach rich metadata directly to code commits, replacing or complementing the Postgresindividualstable for code + feedback storage.How it would work:
Each individual's code gets committed to a per-run branch (e.g.
runs/<run_id>). Then git notes namespaces layer on the metadata without polluting the commit history:Why this is interesting for Genesis:
git log --notes=feedback --notes=reasoninginterleaves the LLM's thought process, evaluator feedback, and the actual code diffs in a single linear history.git diff,git log --graph,git blameall work on the evolution tree. The lineage graph is the git DAG. Merge commits could represent crossover operations.git push origin 'refs/notes/*'replicates all annotations.Possible hybrid model:
🤖 Generated with Claude Code