The GitHub Actions job "CI" on pekko-connectors.git/slick-test-h2-stall has 
failed.
Run started by GitHub user pjfanning (triggered by pjfanning).

Head commit for run:
15d70b72c2ccc8c33b7c5e0e30ab933e1181eacf / PJ Fanning 
<[email protected]>
Slick: keep H2 test database open and relax test patience

Motivation:
SlickWithTryResultSpec "insert 40 records into a table with try (no
parallelism)" timed out after 3 seconds with nothing logged, while the
same 40 inserts took 569ms in the previous test and every later test
finished in under a second. The slick-h2 test config disables the
connection pool and uses a file-based H2 database, so every db.run opens
a new connection, and by default H2 closes the database file when the
last connection closes and reopens it on the next one. That per-statement
file churn is the likely source of the stall on slow CI disks.

Modification:
- Add a test-only override after the #config-h2 doc snippet that appends
  DB_CLOSE_DELAY=-1 to the H2 URL, keeping the database open between
  connections. The documented config is unchanged.
- Raise the ScalaFutures patience in SlickSpec and SlickWithTryResultSpec
  from 3 to 10 seconds.

Result:
The H2 database is no longer closed and reopened between statements, and
an occasional slow statement no longer fails the specs.

Tests:
- sbt slick/Test/scalafmt slick/test: Passed: Total 47, Failed 0
- Resolved slick-h2.db.properties.url ends with ;DB_CLOSE_DELAY=-1

References:
None - flaky run 
https://github.com/apache/pekko-connectors/actions/runs/36731431219/job/109941785162?pr=1976

Report URL: https://github.com/apache/pekko-connectors/actions/runs/36738335164

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to