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

[BUG] Running some test sets from sbt (at least) hangs.. #22

Open
alanpaxton opened this issue May 23, 2022 · 3 comments
Open

[BUG] Running some test sets from sbt (at least) hangs.. #22

alanpaxton opened this issue May 23, 2022 · 3 comments
Assignees
Milestone

Comments

@alanpaxton
Copy link
Contributor

alanpaxton commented May 23, 2022

Describe the bug

  • sbt "run --test-set map-find" hangs after INFO (slf4j.scala [info]:159) - Parsed XQTS Catalog OK.
  • sbt "run --test-set fn-round" runs successfully to completion.

Expected behavior
sbt "run --test-set map-find" should also run to completion.

To Reproduce
Build from source following the instructions.
sbt "run --test-set map-find"
The behaviour is the same on Mac and on Ubuntu.

My initial guess, given what I have observed, is that something in the test set description is causing the runner to choke. I only have the information described in this ticket to suggest that.

Context (please always complete the following information):

  • OS: macOS 11.6.5, Ubuntu 20.04.3 LTS
  • eXist-db Version: 6.1.0-SNAPSHOT
  • Java Version: OpenJDK Runtime Environment Corretto-15.0.1.9.1 (build 15.0.1+9), OpenJDK Runtime Environment (build 1.8.0_312-b07)
  • App Version:

Additional context

  • How is eXist-db installed? built from source (development branch) mvn -DskipTests clean install -P \!mac-dmg-on-mac
@adamretter adamretter self-assigned this Jun 3, 2022
@adamretter adamretter added this to the 1.0.2 milestone Jun 3, 2022
@adamretter
Copy link
Contributor

I have tried to reproduce this but found that both

  1. sbt "run --xqts-version HEAD --test-set map-find"
  2. sbt "run --xqts-version HEAD --test-set fn-round"

Hang at the same stage with the message:

08 Jun 2022 08:57:12,994 [XQTSRunnerSystem-akka.actor.default-dispatcher-8] INFO  (slf4j.scala [info]:159) - Parsing XQTS Catalog: work/qt3tests-master/catalog.xml...

As a workaround, if however I launch sbt in interactive mode by just running sbt and then within sbt run:

sbt:exist-xqts-runner> run --xqts-version HEAD --test-set map-find

I find that both of these do run to completion. So this is very confusing why sbt runs them in one way but not in another - I will have to enquire with the Scala sbt folks...

@adamretter
Copy link
Contributor

Trying to debug this by using sbt -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 "run --xqts-version HEAD --test-set map-find" and connecting the remote debugger from IntelliJ.

With this my application starts and logs some messages, but it doesn't get as far as it does before it hangs when running sbt "run --xqts-version HEAD --test-set map-find", and then sbt just exits back to the console with a 0 exit code.

This feels like an sbt bug...

@adamretter
Copy link
Contributor

Looks like this is actually caused by a deadlock in eXist-db - eXist-db/exist#4438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants