Repository navigation
Description
What happened
TestAdminNodeConfigurationTransactions in internal/nodepool/admin_configuration_test.go fails on main when it runs against a database. Its fixture creates a hand-written stream_nodes table that lacks columns the node repository now reads, so the first store.Create call fails:
admin_configuration_test.go:78: ERROR: column "network_access" does not exist (SQLSTATE 42703)
--- FAIL: TestAdminNodeConfigurationTransactions (0.04s)
The fixture table stops at capability_drift_baseline. nodeColumns in internal/nodepool/repository.go also selects network_access (added in #1096), download_artifact_dir_override and download_artifact_max_bytes_override.
The failure goes unnoticed because the test skips unless SILO_NODE_CONFIGURATION_TEST_DATABASE_URL is set, and no CI job or Makefile target sets it. So the admin node configuration transactions it covers (create retries, conflicts, health samples keeping the revision) have gone untested against a database since at least #1096.
Steps to reproduce
- Create an empty PostgreSQL database named
silo_operations_node_configuration_test(the test refuses any other name). - Run
SILO_NODE_CONFIGURATION_TEST_DATABASE_URL=postgres://<user>:<password>@<host>/silo_operations_node_configuration_test go test ./internal/nodepool/ -run TestAdminNodeConfigurationTransactions -count=1.
Expected behavior
The test passes, and CI runs it so that a new stream_nodes column the repository reads cannot break it silently.
Silo version / commit
main at 1747a12
Deployment
Local dev build
Area
Other
Clients affected
- Other/not client-specific
Relevant logs
The test output above is raw.
Technical notes
Two ways to fix it: add the missing columns to the fixture, or build the fixture from the real migrations so it cannot fall behind again. Either way, CI should run it: moving it onto SILO_TEST_DATABASE_URL, the migrated database CI already gives the other internal/nodepool database tests, would do both at once.
#2340 adds drain_requested and drain_state to nodeColumns. Whichever of that pull request and this fix lands second has to cover those columns too, so the fix should follow #2340.
AI harness
Claude Code (T3 Code)
AI tool(s)
gh CLI
AI model(s)
claude-opus-5-5
AI involvement
Fully AI-generated. An agent ran the test against a throwaway PostgreSQL database while working on #2340; no person has re-run it yet.
Independent or adversarial review
n/a
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on a real deployment (not applicable: this is a test failure, reproduced against a throwaway database)
- Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above
Source: found in review of #2340
Activity
Tobechukwu-Njoku commentedon Oct 20, 2026
I'll take this. I'll move
TestAdminNodeConfigurationTransactionsontoSILO_TEST_DATABASE_URL, so CI runs it. To keep it off the shared tables (other packages writestream_nodesin the same database, and the test pins the pool generation and adds a CHECK constraint to it), it will still run in its own schema, but that schema'sstream_nodesandstream_node_pool_generationwill be copied from the migrated tables withLIKE ... INCLUDING ALL, and the realtrack_stream_node_configurationtrigger attached. The hand-written column list goes away, so a new column the repository reads can't break it again.Quick104 commentedon Nov 14, 2026
#2817 removed this test along with other database tests CI never ran, so this failure no longer occurs.