Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RD 10961 + RD 10948 fixes #434

Merged
merged 6 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -699,10 +699,10 @@ class RawSqlVisitor(

override def visitIdnt(ctx: PsqlParser.IdntContext): SqlBaseNode = Option(ctx)
.map { context =>
val isDoubleQuoted = context.DOUBLE_QUOTED_STRING() != null
val isDoubleQuoted = context.STRING_IDENTIFIER_START() != null
val value =
if (isDoubleQuoted) {
val text = context.DOUBLE_QUOTED_STRING().getText
val text = context.getText
val withoutLast =
if (!text.endsWith("\"")) {
addError("Missing closing \"", context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import java.io.ByteArrayOutputStream

class TestSqlCompilerServiceAirports

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT COUNT(*) FROM example.airports WHERE :city::json IS NULL OR :city::integer != 3 OR :city::xml IS NULL

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$1(TestSqlCompilerServiceAirports.scala:82)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.-- @type v double precisionw SELECT :v FROM example.airports where city = :city

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$2(TestSqlCompilerServiceAirports.scala:93)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:320)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 50 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 59 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.select * from exam

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.wordAutoComplete(SqlCompilerService.scala:301)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$4(TestSqlCompilerServiceAirports.scala:103)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.wordAutoComplete(SqlCompilerService.scala:291)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 50 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 60 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 69 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.select * from "example"."airp

org.scalatest.exceptions.TestFailedException: Set() did not equal Set(LetBindCompletion("airports", "table"))
Raw output
sbt.ForkMain$ForkError: org.scalatest.exceptions.TestFailedException: Set() did not equal Set(LetBindCompletion("airports", "table"))
	at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
	at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
	at org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1231)
	at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:1295)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$6(TestSqlCompilerServiceAirports.scala:122)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example.airports WHERE airports.c

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.wordAutoComplete(SqlCompilerService.scala:301)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$7(TestSqlCompilerServiceAirports.scala:131)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.wordAutoComplete(SqlCompilerService.scala:291)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 50 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 60 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 69 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example.airports WHERE airports."c

org.scalatest.exceptions.TestFailedException: Set() did not equal Set(LetBindCompletion("city", "character varying"), LetBindCompletion("country", "character varying"))
Raw output
sbt.ForkMain$ForkError: org.scalatest.exceptions.TestFailedException: Set() did not equal Set(LetBindCompletion("city", "character varying"), LetBindCompletion("country", "character varying"))
	at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
	at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
	at org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1231)
	at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:1295)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$8(TestSqlCompilerServiceAirports.scala:146)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example.airports WHERE ai. AND airports.

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$9(TestSqlCompilerServiceAirports.scala:161)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example.airports WHERE ai.

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$10(TestSqlCompilerServiceAirports.scala:183)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example.airports WHERE airports.

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$11(TestSqlCompilerServiceAirports.scala:200)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example.airports WHERE example.airports.

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$12(TestSqlCompilerServiceAirports.scala:215)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM "example"."airports" WHERE "ai

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$13(TestSqlCompilerServiceAirports.scala:237)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM "example"."airports" WHERE "airports".

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$14(TestSqlCompilerServiceAirports.scala:254)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM EXAMPLE.AIRPORTS WHERE AIRPORTS.

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$15(TestSqlCompilerServiceAirports.scala:282)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM EXAMPLE.AIRPORTS WHERE AI.

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$16(TestSqlCompilerServiceAirports.scala:310)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM "EXAMPLE"."AIRPORTS" WHERE "AIRPORTS".

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$17(TestSqlCompilerServiceAirports.scala:328)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example. WHERE airports.city = 'Porto' AND airports.country = 'Portugal'

raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$18(TestSqlCompilerServiceAirports.scala:344)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.google.common.util.concurrent.UncheckedExecutionException: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2086)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4012)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4035)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5013)
	at raw.client.sql.metadata.UserMetadataCache.$anonfun$getWordCompletionMatches$2(UserMetadataCache.scala:83)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.metadata.UserMetadataCache.getWordCompletionMatches(UserMetadataCache.scala:80)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:315)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:37)
	at raw.client.sql.metadata.UserMetadataCache$$anon$1.load(UserMetadataCache.scala:35)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3571)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2313)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	... 52 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 62 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 71 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example.airports WHERE city = 'Braganca'

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$19(TestSqlCompilerServiceAirports.scala:362)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example.airports WHERE city = :city

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$20(TestSqlCompilerServiceAirports.scala:404)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.-- a query with no default, called without the parameter SELECT * FROM example.airports WHERE city = :city

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$21(TestSqlCompilerServiceAirports.scala:444)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.-- a query with a default, called without the parameter -- @default city 'Athens' SELECT COUNT(*) AS n FROM example.airports WHERE city = :city

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$22(TestSqlCompilerServiceAirports.scala:479)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.-- @type age intger -- @default age 'tralala -- @param whatever an unknown parameter SELECT COUNT(*) FROM example.airports WHERE :city = city

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$23(TestSqlCompilerServiceAirports.scala:522)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$23$adapted(TestSqlCompilerServiceAirports.scala:513)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 44 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 49 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 58 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.-- @type age integer -- @default age 'tralala' -- @param whatever an unknown parameter SELECT COUNT(*) FROM example.airports WHERE :age = city

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$27(TestSqlCompilerServiceAirports.scala:550)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$27$adapted(TestSqlCompilerServiceAirports.scala:541)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 44 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 49 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 58 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM example.airports WHERE city = :param and airport_id = :param

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$31(TestSqlCompilerServiceAirports.scala:575)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$32(TestSqlCompilerServiceAirports.scala:591)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM inexistent-table

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$36(TestSqlCompilerServiceAirports.scala:604)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM inexistent_table

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$40(TestSqlCompilerServiceAirports.scala:617)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.-- @default a 1234 -- @type a date SELECT LENGTH(:a)

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$47(TestSqlCompilerServiceAirports.scala:632)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports./* @default a 1 + 1 */ SELECT :a + :a AS v

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$54(TestSqlCompilerServiceAirports.scala:645)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT * FROM wrong.relation

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$55(TestSqlCompilerServiceAirports.scala:659)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT COUNT(*) FROM example.airports WHERE city = :name OR country = :name

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$62(TestSqlCompilerServiceAirports.scala:715)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT COUNT(*) FROM example.airports WHERE city = COALESCE(:name, 'Lyon')

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$63(TestSqlCompilerServiceAirports.scala:761)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.-- @param s just an int SELECT DATE '2002-01-01' - :s::int AS x -- RD-10538

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$64(TestSqlCompilerServiceAirports.scala:791)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.-- @default s CAST(null AS INTEGER) SELECT DATE '2002-01-01' - :s AS x -- RD-10538

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$65(TestSqlCompilerServiceAirports.scala:829)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT COUNT(*) FROM example.airports;

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.execute(SqlCompilerService.scala:187)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$66(TestSqlCompilerServiceAirports.scala:897)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.execute(SqlCompilerService.scala:160)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT COUNT(*) FROM example.airports; -- nothing here

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.execute(SqlCompilerService.scala:187)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$67(TestSqlCompilerServiceAirports.scala:915)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.execute(SqlCompilerService.scala:160)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT COUNT(*) FROM example.airports; -- @param name Name of the client.

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.execute(SqlCompilerService.scala:187)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$68(TestSqlCompilerServiceAirports.scala:935)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.execute(SqlCompilerService.scala:160)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT :v > 12 AS column

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$69(TestSqlCompilerServiceAirports.scala:946)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:320)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 50 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 59 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.SELECT :city > 12, city FROM example.airports WHERE airport_id = :city LIMIT 2

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:339)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$70(TestSqlCompilerServiceAirports.scala:953)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.$anonfun$hover$1(SqlCompilerService.scala:320)
	at scala.Option.map(Option.scala:230)
	at raw.client.sql.SqlCompilerService.hover(SqlCompilerService.scala:312)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 50 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 59 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.RD-10948+10961

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$73(TestSqlCompilerServiceAirports.scala:969)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.RD-10948

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$74(TestSqlCompilerServiceAirports.scala:981)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more

Check failure on line 31 in sql-client/src/test/scala/raw/client/sql/TestSqlCompilerServiceAirports.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlCompilerServiceAirports.RD-10961

raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Raw output
sbt.ForkMain$ForkError: raw.client.api.CompilerServiceException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:393)
	at raw.client.sql.TestSqlCompilerServiceAirports.$anonfun$new$75(TestSqlCompilerServiceAirports.scala:995)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.$anonfun$apply$1(FixtureTestSuite.scala:275)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.FixtureTestSuite$TestFunAndConfigMap.apply(FixtureTestSuite.scala:275)
	at raw.utils.RawTestSuite.withFixture(RawTestSuite.scala:44)
	at raw.utils.RawTestSuite.withFixture$(RawTestSuite.scala:43)
	at raw.client.sql.TestSqlCompilerServiceAirports.withFixture(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.invokeWithFixture$1(FixtureAnyFunSuiteLike.scala:298)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTest$1(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest(FixtureAnyFunSuiteLike.scala:309)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTest$(FixtureAnyFunSuiteLike.scala:290)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTest(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$runTests$1(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests(FixtureAnyFunSuiteLike.scala:369)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.runTests$(FixtureAnyFunSuiteLike.scala:368)
	at org.scalatest.funsuite.FixtureAnyFunSuite.runTests(FixtureAnyFunSuite.scala:230)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.FixtureAnyFunSuite.org$scalatest$funsuite$FixtureAnyFunSuiteLike$$super$run(FixtureAnyFunSuite.scala:230)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.$anonfun$run$1(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run(FixtureAnyFunSuiteLike.scala:373)
	at org.scalatest.funsuite.FixtureAnyFunSuiteLike.run$(FixtureAnyFunSuiteLike.scala:372)
	at raw.client.sql.TestSqlCompilerServiceAirports.org$scalatest$BeforeAndAfterAll$$super$run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
	at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
	at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
	at raw.client.sql.TestSqlCompilerServiceAirports.run(TestSqlCompilerServiceAirports.scala:31)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sbt.ForkMain$ForkError: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:584)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:571)
	at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:98)
	at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:80)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:65)
	at raw.client.sql.SqlConnectionPool.getConnection(SqlConnectionPool.scala:44)
	at raw.client.sql.SqlCompilerService.validate(SqlCompilerService.scala:373)
	... 43 more
Caused by: sbt.ForkMain$ForkError: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:342)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
	at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:253)
	at org.postgresql.Driver.makeConnection(Driver.java:434)
	at org.postgresql.Driver.connect(Driver.java:291)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
	... 48 more
Caused by: sbt.ForkMain$ForkError: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.Net.pollConnect(Native Method)
	at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)
	at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
	at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
	at java.base/java.net.Socket.connect(Socket.java:751)
	at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
	at org.postgresql.core.PGStream.<init>(PGStream.java:98)
	at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:132)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:258)
	... 57 more
extends RawTestSuite
with SettingsTestContext
with TrainingWheelsContext
Expand Down Expand Up @@ -963,35 +963,35 @@
assert(v.messages.exists(_.message contains "the input does not form a valid statement or expression"))
}

test("""RD-10948+10961"""){_ =>
test("""RD-10948+10961""") { _ =>
val q = """:
|""".stripMargin
|""".stripMargin
val ValidateResponse(errors) = compilerService.validate(q, asJson())
assert(errors.nonEmpty)
}

test("""RD-10948"""){_ =>
test("""RD-10948""") { _ =>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not forget to remove that test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I alternated it as we discussed

val q = """SELECT * FROM
|(VALUES
| (1, 'aravind', 'aravind@gmail.com', '123456'),
| (2, 'arjun', 'arjun@gmail.com', '11223344')
|) as i(id, first_name, email, password)
|WHERE email = :email AND password:
|""".stripMargin
|(VALUES
| (1, 'aravind', 'aravind@gmail.com', '123456'),
| (2, 'arjun', 'arjun@gmail.com', '11223344')
|) as i(id, first_name, email, password)
|WHERE email = :email AND password:
|""".stripMargin
val ValidateResponse(errors) = compilerService.validate(q, asJson())
assert(errors.nonEmpty)
}

test("""RD-10961"""){_ =>
test("""RD-10961""") { _ =>
val q = """-- @default id 1
|
|SELECT * FROM
|(VALUES
| (1, 'John', 'Doe', DATE '2023-01-01'),
| (2, 'Jane', 'Doe', DATE '2024-01-01')
|) as i(id, first_name, last_name, birthday)
|WHERE id = :id && id = :
|""".stripMargin
|
|SELECT * FROM
|(VALUES
| (1, 'John', 'Doe', DATE '2023-01-01'),
| (2, 'Jane', 'Doe', DATE '2024-01-01')
|) as i(id, first_name, last_name, birthday)
|WHERE id = :id && id = :
|""".stripMargin
val ValidateResponse(errors) = compilerService.validate(q, asJson())
assert(errors.nonEmpty)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test would crash during the line before. What error does one get now?

Copy link
Contributor Author

@alexzerntev alexzerntev May 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax error at or near "="
Is this error expected?

}
Expand Down
66 changes: 40 additions & 26 deletions sql-client/src/test/scala/raw/client/sql/TestSqlParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
SqlProgramNode,
SqlProjNode,
SqlStatementNode,
SqlStringLiteralNode,
SqlWithComaSeparatorNode
}

Expand Down Expand Up @@ -244,7 +245,7 @@
test("Test multiple param occurrences") {
val code = """SELECT * FROM example.airports WHERE city = :param and airport_id = :param"""".stripMargin
val result = doTest(code)
assert(result.isSuccess)

Check failure on line 248 in sql-client/src/test/scala/raw/client/sql/TestSqlParser.scala

View workflow job for this annotation

GitHub Actions / JUnit Test Report

TestSqlParser.Test multiple param occurrences

org.scalatest.exceptions.TestFailedException: result.isSuccess was false
Raw output
sbt.ForkMain$ForkError: org.scalatest.exceptions.TestFailedException: result.isSuccess was false
	at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
	at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
	at org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1231)
	at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:1295)
	at raw.client.sql.TestSqlParser.$anonfun$new$12(TestSqlParser.scala:248)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:20)
	at org.scalatest.funsuite.AnyFunSuiteLike$$anon$1.apply(AnyFunSuiteLike.scala:226)
	at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
	at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
	at org.scalatest.funsuite.AnyFunSuite.withFixture(AnyFunSuite.scala:1564)
	at org.scalatest.funsuite.AnyFunSuiteLike.invokeWithFixture$1(AnyFunSuiteLike.scala:224)
	at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTest$1(AnyFunSuiteLike.scala:236)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.funsuite.AnyFunSuiteLike.runTest(AnyFunSuiteLike.scala:236)
	at org.scalatest.funsuite.AnyFunSuiteLike.runTest$(AnyFunSuiteLike.scala:218)
	at org.scalatest.funsuite.AnyFunSuite.runTest(AnyFunSuite.scala:1564)
	at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTests$1(AnyFunSuiteLike.scala:269)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.funsuite.AnyFunSuiteLike.runTests(AnyFunSuiteLike.scala:269)
	at org.scalatest.funsuite.AnyFunSuiteLike.runTests$(AnyFunSuiteLike.scala:268)
	at org.scalatest.funsuite.AnyFunSuite.runTests(AnyFunSuite.scala:1564)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:1096)
	at org.scalatest.funsuite.AnyFunSuite.org$scalatest$funsuite$AnyFunSuiteLike$$super$run(AnyFunSuite.scala:1564)
	at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$run$1(AnyFunSuiteLike.scala:273)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.funsuite.AnyFunSuiteLike.run(AnyFunSuiteLike.scala:273)
	at org.scalatest.funsuite.AnyFunSuiteLike.run$(AnyFunSuiteLike.scala:272)
	at org.scalatest.funsuite.AnyFunSuite.run(AnyFunSuite.scala:1564)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
result.params.get("param") match {
case Some(param) =>
result.positions.getStart(param.occurrences(0)) match {
Expand Down Expand Up @@ -409,28 +410,6 @@
assert(result.isSuccess)
}

test("Test missing closing double quote identifier") {
val code = """select somethin."asdf from anything""".stripMargin
val result = doTest(code)
assert(result.errors.size == 1)
assert(
result.errors.head.message == "Missing closing \""
)
result.tree match {
case SqlProgramNode(statement) => statement match {
case SqlStatementNode(statementItems) =>
assert(statementItems.size == 4)
statementItems(1) match {
case SqlProjNode(identifiers) => identifiers(1) match {
case identifier: SqlIdentifierNode =>
assert(identifier.name == "asdf")
assert(identifier.isQuoted)
}
}
}
}
}

test("Test missing identifier after dot") {
val code = """SELECT * FROM example.airports
|WHERE ai.
Expand Down Expand Up @@ -593,21 +572,56 @@

test("single quoted identifier with a newline") {
val code = """SELECT "c
| si
| bon" FROM x
|""".stripMargin
| si
| bon" FROM x
|""".stripMargin
val result = doTest(code)
assert(result.isSuccess)
}

test("colon in the end of the code with a newline") {
val code = """:
|""".stripMargin
|""".stripMargin
val result = doTest(code)
assert(result.isSuccess)
val SqlProgramNode(stmt) = result.tree
assert(result.positions.getStart(stmt).isDefined)
assert(result.positions.getStart(stmt).flatMap(_.optOffset).isDefined)
assert(result.positions.getFinish(stmt).flatMap(_.optOffset).isDefined)
}

test("multiline string-identifier test") {
val code = """select "
|a
|" from anything """.stripMargin
val result = doTest(code)
val SqlProgramNode(stmt) = result.tree
stmt match {
case SqlStatementNode(statementItems) =>
assert(statementItems.size == 4)
statementItems(1) match {
case node: SqlIdentifierNode =>
val finish = result.positions.getFinish(node)
assert(finish.get.line == 3)
}
}
}

test("multiline string test") {
val code = """select '
|a
|' from anything """.stripMargin
val result = doTest(code)
val SqlProgramNode(stmt) = result.tree
stmt match {
case SqlStatementNode(statementItems) =>
assert(statementItems.size == 4)
statementItems(1) match {
case node: SqlStringLiteralNode =>
val finish = result.positions.getFinish(node)
assert(finish.get.line == 3)
}
}
}

}
21 changes: 15 additions & 6 deletions sql-parser/src/main/java/raw/psql/grammar/PsqlLexer.g4
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
lexer grammar PsqlLexer;

UNICODE: 'U&';

// Comments
LINE_COMMENT_START: '--' -> pushMode(INSIDE_SINGLE_LINE_COMMENT);

MULTI_LINE_COMMENT_START: '/*' -> pushMode(INSIDE_MULTI_LINE_COMMENT);

QUOTE: '\'';
STRING_LITERAL_START: '\'' -> pushMode(INSIDE_STRING_LITERAL);
STRING_IDENTIFIER_START: '"' -> pushMode(INSIDE_STRING_IDENTIFIER);

DOT: '.';
STAR: '*';
COMMA: ',';
Expand Down Expand Up @@ -44,8 +48,6 @@ CONCAT: '||';
REGEX_CASE_INSENSITIVE_MATCH: '~*';
REGEX_CASE_INSENSITIVE_NOT_MATCH: '!~*';

UNICODE: 'U&';


DOUBLE_COLON: '::';

Expand All @@ -55,8 +57,6 @@ FLOATING_POINT: DIGIT+ '.' DIGIT* EXPONENT?;
PARAM: ':' WORD;

// Strings
DOUBLE_QUOTED_STRING: '"' (~[" \u0000] | '""')* '"'?;
SINGLE_QUOTED_STRING: '\'' (ESC | ~['\\])* '\'';
TICKS_QUOTED_STRING: '`' (ESC | ~[`\\])* '`';

BIGSERIAL: B I G S E R I A L;
Expand Down Expand Up @@ -1009,7 +1009,16 @@ ML_STAR: '*';

mode INSIDE_UNKNOWN_WORD;

UNKNOWN_WORD_END: [ \t\r\n;EOF] -> popMode;
UNKNOWN_WORD_END: [ \t\r\n;EOF] -> popMode, skip;
UNKNOWN_WORD_END2: [)] -> type(R_PAREN), popMode;

IN_UNKNOWN_WORD: ~[;)];

mode INSIDE_STRING_LITERAL;
STRING_LITERAL_END: '\'' -> popMode;
STRING_LITERAL_CONTENT: (ESC | ~['\\]);

mode INSIDE_STRING_IDENTIFIER;
STRING_ESCAPE: '"' '"';
STRING_IDENTIFIER_END: '"' -> popMode;
STRING_IDENTIFIER_CONTENT: (ESC | ~["]);
Loading
Loading