raster-foundry / raster-foundry

The Raster Foundry web application.

Home Page:https://www.rasterfoundry.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scope test failed in CI

aaronxsu opened this issue · comments

Scopespec failed in CI with the following errors. See more in details in this PR CI build. Note that the PR itself did not change anything related to api integration test.

Currently the scope test command is removed from the test script. This issue is to investigate the cause of the bug, fix the bug so that scope tests can run again.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

[info] ScopeSpec:

[info] Policy simulation

[info] - reports expected failure when relevant scopes are excluded *** FAILED ***

[info]   org.http4s.client.ConnectionFailure: Error connecting to http://api.service.rasterfoundry.internal:9000 using address api.service.rasterfoundry.internal:9000 (unresolved: true)

[info]   at org.http4s.client.blaze.Http1Support.$anonfun$buildPipeline$1(Http1Support.scala:90)

[info]   at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)

[info]   at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)

[info]   at async @ org.http4s.internal.package$.$anonfun$fromFuture$1(package.scala:144)

[info]   at flatMap @ org.http4s.internal.package$.fromFuture(package.scala:139)

[info]   at flatMap @ org.http4s.client.PoolManager.$anonfun$createConnection$2(PoolManager.scala:119)

[info]   at shift @ org.http4s.client.PoolManager.$anonfun$createConnection$2(PoolManager.scala:119)

[info]   at uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)

[info]   at unsafeRunSync @ com.rasterfoundry.api.it.ScopeSpec.$anonfun$new$2(ScopeSpec.scala:200)

[info]   ...

[info]   Cause: java.nio.channels.UnresolvedAddressException:

[info]   at sun.nio.ch.Net.checkAddress(Net.java:101)

[info]   at sun.nio.ch.UnixAsynchronousSocketChannelImpl.implConnect(UnixAsynchronousSocketChannelImpl.java:302)

[info]   at sun.nio.ch.AsynchronousSocketChannelImpl.connect(AsynchronousSocketChannelImpl.java:209)

[info]   at org.http4s.blaze.channel.nio2.ClientChannelFactory.connect(ClientChannelFactory.scala:88)

[info]   at org.http4s.client.blaze.Http1Support.buildPipeline(Http1Support.scala:77)

[info]   at org.http4s.client.blaze.Http1Support.$anonfun$makeClient$1(Http1Support.scala:70)

[info]   at cats.effect.internals.IORunLoop$.cats$effect$internals$IORunLoop$$loop(IORunLoop.scala:104)

[info]   at cats.effect.internals.IORunLoop$RestartCallback.signal(IORunLoop.scala:463)

[info]   at cats.effect.internals.IORunLoop$RestartCallback.apply(IORunLoop.scala:484)

[info]   at cats.effect.internals.IORunLoop$RestartCallback.apply(IORunLoop.scala:422)

[info]   ...

[info] - reports expected success when relevant scopes are included *** FAILED ***

[info]   org.http4s.client.ConnectionFailure: Error connecting to http://api.service.rasterfoundry.internal:9000 using address api.service.rasterfoundry.internal:9000 (unresolved: true)

[info]   at org.http4s.client.blaze.Http1Support.$anonfun$buildPipeline$1(Http1Support.scala:90)

[info]   at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)

[info]   at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)

[info]   at flatMap @ org.http4s.internal.package$.fromFuture(package.scala:139)

[info]   at flatMap @ org.http4s.client.PoolManager.$anonfun$createConnection$2(PoolManager.scala:119)

[info]   at shift @ org.http4s.client.PoolManager.$anonfun$createConnection$2(PoolManager.scala:119)

[info]   at uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)

[info]   at unsafeRunSync @ com.rasterfoundry.api.it.ScopeSpec.$anonfun$new$2(ScopeSpec.scala:200)

[info]   ...

[info]   Cause: java.nio.channels.UnresolvedAddressException:

[info]   at sun.nio.ch.Net.checkAddress(Net.java:101)

[info]   at sun.nio.ch.UnixAsynchronousSocketChannelImpl.implConnect(UnixAsynchronousSocketChannelImpl.java:302)

[info]   at sun.nio.ch.AsynchronousSocketChannelImpl.connect(AsynchronousSocketChannelImpl.java:209)

[info]   at org.http4s.blaze.channel.nio2.ClientChannelFactory.connect(ClientChannelFactory.scala:88)

[info]   at org.http4s.client.blaze.Http1Support.buildPipeline(Http1Support.scala:77)

[info]   at org.http4s.client.blaze.Http1Support.$anonfun$makeClient$1(Http1Support.scala:70)

[info]   at cats.effect.internals.IORunLoop$.cats$effect$internals$IORunLoop$$loop(IORunLoop.scala:104)

[info]   at cats.effect.internals.IORunLoop$RestartCallback.signal(IORunLoop.scala:463)

[info]   at cats.effect.internals.IORunLoop$RestartCallback.apply(IORunLoop.scala:484)

[info]   at cats.effect.internals.IORunLoop$RestartCallback.apply(IORunLoop.scala:422)

[info]   ...

[info] Run completed in 1 second, 931 milliseconds.

[info] Total number of tests run: 2

[info] Suites: completed 1, aborted 0

[info] Tests: succeeded 0, failed 2, canceled 0, ignored 0, pending 0

[info] *** 2 TESTS FAILED ***

[error] Failed tests:

[error] 	com.rasterfoundry.api.it.ScopeSpec

[error] (apiIntegrationTest / Test / test) sbt.TestsFailedException: Tests unsuccessful

[error] Total time: 3 s, completed Dec 15, 2021 10:12:44 PM