Merged in feature/track-filesize (pull request #200)

track file sizes for all documents in system

* feature complete

needs dev testing
This commit is contained in:
Jay Brown
2026-01-12 17:46:07 +00:00
parent 4ad8168f35
commit ebf47c6013
37 changed files with 1514 additions and 374 deletions
+18 -1
View File
@@ -70,7 +70,24 @@ func CreateFullNetwork(t testing.TB, ctx context.Context, cfg FullDependenciesCo
wg.Wait()
qService, err := queryapi.NewClientWithResponses(apiContainers[QueryAPIName].URI)
// Wait for external readiness before creating the client.
// This addresses the race condition where containers report healthy internally
// but the external port mapping isn't fully ready, causing 404 errors in CI.
err := WaitForExternalReadiness(apiContainers[QueryAPIName].URI, "/health", GetPollingTimeout())
require.NoError(t, err, "QueryAPI not externally reachable")
// Wait for API routes to be registered.
// The health endpoint may return 200 before all routes are registered,
// causing "404 page not found" errors on actual API calls.
err = WaitForAPIRoutes(apiContainers[QueryAPIName].URI, GetPollingTimeout())
require.NoError(t, err, "QueryAPI routes not registered")
// Create API client with bounded HTTP timeout to prevent indefinite hangs
// that were causing CI failures (goroutines blocking until 15-minute global timeout)
qService, err := queryapi.NewClientWithResponses(
apiContainers[QueryAPIName].URI,
queryapi.WithHTTPClient(GetHTTPClient()),
)
require.NoError(t, err)
return Network{