Fix flaky stats-batch tests and extend Crucible E2E LOTL coverage.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Stop the stats batch timer in unit tests before reading pending coalesced state, teach the Playwright stub agent to emit lotl_tier stats, and prefer server/webroot so phase-8 E2E serves the current frontend build.
This commit is contained in:
@@ -303,7 +303,7 @@ func main() {
|
||||
return configProvider.PublicURL()
|
||||
}, cfg.Port, func() bool {
|
||||
return cfg.ConnectorToken() != ""
|
||||
})
|
||||
}, "v1.0.0")
|
||||
log.Println("Router initialized")
|
||||
|
||||
// Start server
|
||||
@@ -580,10 +580,11 @@ func findProjectRoot() string {
|
||||
// findWebRoot locates the frontend build output directory
|
||||
func findWebRoot() string {
|
||||
candidates := []string{
|
||||
"webroot", // Copied by devrun.bat
|
||||
"web/dist", // Vite build output relative to server/
|
||||
filepath.Join("..", "server", "web", "dist"), // Relative to project root
|
||||
filepath.Join("server", "web", "dist"), // From project root
|
||||
"webroot", // Vite outDir (server/webroot) and devrun.bat copy target
|
||||
filepath.Join("server", "webroot"),
|
||||
"web/dist", // Legacy dist output relative to server/
|
||||
filepath.Join("..", "server", "web", "dist"),
|
||||
filepath.Join("server", "web", "dist"),
|
||||
}
|
||||
|
||||
if cwd, err := os.Getwd(); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user