OpenAPITools / OpenAPITools/openapi-generator

[BUG] Maven build hangs in master due to test phase (Windows WSL/GitBas)

Open
#14,848 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Bug Report Checklist
  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

I am trying to contribute to the project and as a task-list to do before doing it, it appears that a build should be run with the maven wrapper:

./mvnw clean package 
./bin/generate-samples.sh
./bin/utils/export_docs_generators.sh

The first step hangs after a test to generate a java-helidon-server; this is not happening with -DskipTests option.
Could this be somehow fixed so contributors can build and run the tests on the command line? Thank you!

openapi-generator version

Test build on master branch (currently at 6d48d7342112f3a4d1c543054575a21424ec8f45)

OpenAPI declaration file content or url

Irrelevant for this defect

Generation Details

Irrelevant for this defect

Steps to reproduce

Test on WSL and GitBash.

  • Run ./mvnw clean package -> it hangs
  • Run ./mvnw clean test -> it hangs
  • Run ` ./mvnw clean package -> it builds the application
Related issues/PRs

I could not find any.

Suggest a fix

I am not sure why this is happening, so I can't help here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the hang with ./mvnw clean package or ./mvnw clean test under WSL or Git Bash, focusing on the test that generates java-helidon-server. Compare the behavior with -DskipTests and inspect the relevant build or test entry points found during reproduction. Done means the Maven wrapper completes the test and package commands without hanging.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.