Skip to content

test(flightsql): isolate fixture setup timeout - #1332

Merged
zeroshade merged 1 commit into
apache:mainfrom
zeroshade:fix/flightsql-test-timeout
Sep 21, 2026
Merged

zeroshade merged 1 commit into
apache:mainfrom
zeroshade:fix/flightsql-test-timeout

Conversation

@zeroshade

Copy link
Copy Markdown
Member

What changed

  • add an execFixture helper with an explicit one-minute setup deadline
  • use it for all ten large Flight SQL row fixture inserts
  • preserve the driver's five-second default timeout and the cancellation tests' existing query deadlines

Why

The ASan/no-ASM job in https://github.com/apache/arrow-go/actions/runs/35436626598/job/106171165623?pr=1328 failed while inserting the 6,000-row test fixture, before the cancellation behavior under test began. Context-free db.Exec inherited the suite's five-second driver timeout, and the instrumented insert exceeded that deadline. A sibling cancellation test failed at the same setup boundary in another matrix job.

Giving fixture construction its own bounded context separates setup cost from the behavior timeout being tested without changing production driver behavior.

Verification

go test -asan -short -tags assert,test,noasm ./arrow/flight/flightsql/driver -run '^TestSqliteBackend/TestRowsInterruptionByContext(ManualCancellation|Timeout)(Stmt)?$' -count=25
ok  github.com/apache/arrow-go/v18/arrow/flight/flightsql/driver  250.547s

go test -asan -short -tags assert,test,noasm ./arrow/flight/flightsql/driver -run '^TestSqliteBackend/TestRows' -count=10
ok  github.com/apache/arrow-go/v18/arrow/flight/flightsql/driver  191.764s

go test -asan -short -tags assert,test,noasm ./arrow/flight/flightsql/driver
ok  github.com/apache/arrow-go/v18/arrow/flight/flightsql/driver  20.363s

@zeroshade
zeroshade merged commit b35023b into apache:main Sep 21, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant