Skip to content

refactor: split out engine to TechEngine (TechAPI = data + site)#3

Merged
Seungpyo1007 merged 1 commit into
mainfrom
feat/dataset-benchmarks-site
Jun 1, 2026
Merged

refactor: split out engine to TechEngine (TechAPI = data + site)#3
Seungpyo1007 merged 1 commit into
mainfrom
feat/dataset-benchmarks-site

Conversation

@Seungpyo1007
Copy link
Copy Markdown
Owner

@Seungpyo1007 Seungpyo1007 commented Jun 1, 2026

What & why

Makes TechAPI and TechEngine non-overlapping. TechAPI = the curated dataset + public site + a lightweight bundled validator, and it deploys its own GitHub Pages homepage (Pages is per-repo). The API server, ingestion crawlers, static-dump generator, coverage checks and full validation live in TechEngine (linked here as a submodule).

Removed (now owned by TechEngine):

  • app/ backend (config, database, main, models, routers, schemas, services), tests/, scripts/ (dump.py, seed.py), docs/ (API design), Dockerfile, docker-compose.yml, .env.example, .dockerignore, pyproject.toml
  • .github/workflows/: refresh-data.yml (dump refresh) + test.yml (backend tests)

Kept / changed:

  • data/, site/, lightweight validator (scripts/validate.pyapp/validate.py)
  • validate-data.yml — self-checks, then chains to TechEngine's full validate-data (reusable) workflow
  • deploy-pages.yml rewritten to build & deploy site/ without the backend — TechAPI owns/deploys its homepage; the static JSON dump it serves is produced by TechEngine and committed under site/public/v1

Dump delivery (the one remaining wire-up)

TechAPI no longer generates the dump (that needs the engine). For live data on the site, TechEngine must commit/refresh the dump into site/public/v1 (and openapi.json) here — then deploy-pages publishes it. Until that's wired, the site deploys and renders with its graceful fallbacks (no live data).

Refs #1

Checklist

  • python -m app.validate passes locally (bundled validator kept)
  • No data records changed (structure-only)
  • TechEngine confirmed to own the removed pieces (backend, dump.py, refresh-data)
  • deploy-pages no longer depends on the removed backend

…deploy

TechAPI is now the curated dataset + public site + a lightweight bundled validator, and deploys its own GitHub Pages homepage. The API server, ingestion crawlers, static-dump generator, coverage checks and full validation live in TechEngine (linked as a submodule).

- remove app/ backend, tests/, scripts/ (dump.py, seed.py), docs/, Dockerfile, docker-compose.yml, .env.example, .dockerignore, pyproject.toml
- remove refresh-data.yml + test.yml (dump refresh and backend tests belong to TechEngine)
- rewrite deploy-pages.yml to build & deploy site/ WITHOUT the backend — Pages is per-repo, so TechAPI deploys its own homepage; the static JSON dump it serves is produced by TechEngine and committed under site/public/v1
- keep data/, site/, the lightweight validator (scripts/validate.py -> app/validate.py) and validate-data.yml (self-check, then chains to TechEngine's full validation)

Refs #1
@Seungpyo1007 Seungpyo1007 force-pushed the feat/dataset-benchmarks-site branch from 26cc866 to de5cb0c Compare June 1, 2026 05:56
@Seungpyo1007 Seungpyo1007 merged commit 2063db8 into main Jun 1, 2026
2 checks passed
@Seungpyo1007 Seungpyo1007 self-assigned this Jun 1, 2026
@Seungpyo1007 Seungpyo1007 added the enhancement New feature or request label Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant