Skip to content

Conversation

@Claudenw
Copy link
Contributor

@Claudenw Claudenw commented May 31, 2025

  • Remove unused packages
  • replace OptionTest interface with Junit5 Executable.

@Claudenw Claudenw changed the title Fix test failure Removed unused packages from modules Jun 1, 2025
@Claudenw Claudenw marked this pull request as ready for review June 1, 2025 12:23
@Claudenw Claudenw requested a review from ottlinger June 1, 2025 12:23
@ottlinger ottlinger changed the title Removed unused packages from modules RAT-475: Removed unused packages from modules Jun 1, 2025
@ottlinger
Copy link
Contributor

@Claudenw kudos for taking a closer look into the failing tests on GHA .... cool!

Can you run the tests from within the IDE? I get test failures, while everything works fine if run via .mvnw/console.

<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a test configuration of slf4j?
Running a single test in IntelliJ produces a warning.

<version>2.0.17</version>
</dependency>
<dependency>
<groupId>com.github.albfernandez</groupId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this library used? Do we really use it?

@ottlinger
Copy link
Contributor

@Claudenw I hope that this PR fixes the latest windows test failures as well:
https://github.com/apache/creadur-rat/actions/runs/15487411180/job/43605115280#step:5:5280

@Claudenw
Copy link
Contributor Author

Claudenw commented Jun 6, 2025 via email

@ottlinger
Copy link
Contributor

ottlinger commented Jun 7, 2025

@Claudenw removing both of the dependencies yields a failure of the site build in Rat::Core
"Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging".
The regular build (./mvnw running the default goal) goes through successfully.

The build fails right after trying to unpack apache-rat-testdata:0.17-SNAPSHOT:jar.

My local diff was just removing both of the dependencies in the main pom.xml:

  • slf4j-api
  • juniversalchardet

Can you verify locally?

@ottlinger
Copy link
Contributor

ottlinger commented Jun 9, 2025

@Claudenw I just rechecked locally - the site build fails on that branch .... with the packaging error. Do you experience the same issue?

./mvnw clean package site site:stage

Not sure if we are running a wrong target but if I remember correctly we introduced this package when the new generators were put into place. Replacing package with install does not solve the issue.

I assume there's still something wrong within the tree of dependencies.

@Claudenw
Copy link
Contributor Author

closing will not merge

@Claudenw Claudenw closed this Jun 18, 2025
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

Successfully merging this pull request may close these issues.

2 participants