test(e2e,verify): enhance live API verification and dynamic port binding in E2E runner

- Update verify_counts.py to validate SQLite database records and live Go REST API endpoints directly
- Harden E2E test runner with dynamic free port binding (get_free_port) to prevent port collisions
- Add exact regex matching for dynamic (ƒ) and static (○) route table allocations
- Ignore root build binary artifacts in backend/.gitignore
This commit is contained in:
2026-08-24 20:31:42 +09:00
parent f96f687dd1
commit dadd14feb1
5 changed files with 248 additions and 73 deletions
+3
View File
@@ -1,5 +1,8 @@
# Binaries and build outputs
/bin/
/export-content
/api
/seed
# SQLite databases and WAL journal files
*.db
+2
View File
@@ -21,6 +21,8 @@ seed: build
./$(BIN_DIR)/seed --db $(DB_PATH) --seed-dir seed/data
export-content: build
@echo "⚠️ Notice: Frontend has migrated to real-time dynamic runtime fetching (force-dynamic)."
@echo "export-content is deprecated to prevent re-introducing static content data files."
./$(BIN_DIR)/export-content --db $(DB_PATH) --out-dir ../refer_landing_page/content
fmt:
+9 -1
View File
@@ -50,9 +50,17 @@ func main() {
dbPath := flag.String("db", defaultDB, "Path to SQLite database file")
targetDir := flag.String("out-dir", "../refer_landing_page/content", "Target content directory")
force := flag.Bool("force", false, "Force export content files despite dynamic runtime architecture")
flag.Parse()
log.Printf("Exporting content from SQLite (%s) to TypeScript files in %s...", *dbPath, *targetDir)
if !*force {
log.Printf("⚠️ NOTICE: Frontend architecture has migrated to real-time dynamic runtime fetching (force-dynamic).")
log.Printf("Exporting static TypeScript files to %s is DEPRECATED to prevent re-introducing static fallback leaks.", *targetDir)
log.Printf("If you really need to export fallback files, pass the --force flag.")
return
}
log.Printf("Exporting content from SQLite (%s) to TypeScript files in %s (forced)...", *dbPath, *targetDir)
database, err := db.Connect(*dbPath)
if err != nil {
log.Fatalf("Failed to connect to database: %v", err)