Skip to content

[bug] TestAdminNodeConfigurationTransactions fails: its stream_nodes fixture lacks columns the repository reads #2345

Closed

Description

@Quick104

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

  1. Create an empty PostgreSQL database named silo_operations_node_configuration_test (the test refuses any other name).
  2. 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

  1. added
    bug
    on Oct 12, 2026
  2. added
    priority: P2
    triaged
    on Oct 12, 2026
  3. Tobechukwu-Njoku commented on Oct 20, 2026

    @Tobechukwu-Njoku
    Contributor

    I'll take this. I'll move TestAdminNodeConfigurationTransactions onto SILO_TEST_DATABASE_URL, so CI runs it. To keep it off the shared tables (other packages write stream_nodes in 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's stream_nodes and stream_node_pool_generation will be copied from the migrated tables with LIKE ... INCLUDING ALL, and the real track_stream_node_configuration trigger attached. The hand-written column list goes away, so a new column the repository reads can't break it again.

  4. Quick104 commented on Nov 14, 2026

    @Quick104
    ContributorAuthor

    #2817 removed this test along with other database tests CI never ran, so this failure no longer occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: P2triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions