Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

6
Maven clean install test failures under different OS platforms
Post Body

Hey, I have very weird problem that I just cannot solve...

Here is my situation:

Identical project with many microservices.

Identical OpenJDK 17 (eclipse temurin)

Identical version of Maven.

Identical encoding.

The project has 90% test coverage (JUnit) and utilizes test containers. Identical docker images are pulled from private cloud.

One device has Windows 11, mvn clean install performs all tasks and no test fails.

Second device runs Fedora 39 Workstation edition and there are couple of tests that always fail, always the same tests and they have NOTHING in common.

BUT when I try to execute all tests through Intellij (project configuration and tests are set to not use bundled java and maven but to use those installed on the system by me) the tests work.

I really cannot get my head around it and it makes me angry. The fedora install is fresh. I tried different builds of OpenJDK, different versions of maven. It's always the same couple of totally unrelated tests that fail and the code has no obvious problems. Even when I run the app and try to access that part of the code, it behaves correctly. Did anyone came across such issue ? My last hope is to isolate it to the Fedora itself, run something like Ubuntu as virtual machine on given device and try it to see if it works there...

Comments

Well. What fails? What didn't work? What's the stacktrace say? Using test files it maybe it can't find on one OS and does on the other?

Author
Account Strength
70%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
3,767
Link Karma
402
Comment Karma
3,365
Profile updated: 2 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 months ago