Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 159
    • Issues 159
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #429

Closed
Open
Opened Dec 06, 2024 by Grégoire Locqueville@glocqueville
  • Report abuse
  • New issue
Report abuse New issue

Tests fail silently if the Java runtime is not installed

Summary

The tests assume a Java runtime environment is installed, and fail silently otherwise.

Steps to reproduce

  1. Do not have a Java runtime installed.
  2. Clone this repository
  3. cd into the repository root
  4. Get into a Nix shell by running nix-shell
  5. Run cabal test

What is the current bug behavior?

The tests fail with many errors such as ConnectionFailure Network.Socket.connect: <socket: 109>: does not exist (Connection refused)

What is the expected correct behavior?

The tests pass

Possible fixes

  • I think this kind of problem could be solved by adding a Java runtime to the Nix environment?
  • Otherwise, detect failure when trying to run devops/coreNLP/startServer.sh from test/drivers/hspec/Main.hs, offer a helpful error message, and abort the process.
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
To deploy
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#429