Skip to content

Issue #16937: Resolve all pitest CIs fails#16945

Closed
Praveen7294 wants to merge 1 commit into
checkstyle:masterfrom
Praveen7294:pitest
Closed

Issue #16937: Resolve all pitest CIs fails#16945
Praveen7294 wants to merge 1 commit into
checkstyle:masterfrom
Praveen7294:pitest

Conversation

@Praveen7294

Copy link
Copy Markdown
Contributor

Resolve #16937

Comment thread .github/workflows/pitest.yml Outdated
- name: Generate pitest-${{ matrix.profile }} report
run: |
./.ci/pitest.sh "pitest-${{ matrix.profile }}"
./.ci/pitest.sh "pitest-${{ matrix.profile }}" -DargLine="--add-opens java.base/java.lang=ALL-UNNAMED"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you explain this update?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/usr/share/groovy/lib/groovy-2.4.21.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
New surviving mutation(s) found:

Source File: "PackageNamesLoader.java"
Class: "com.puppycrawl.tools.checkstyle.PackageNamesLoader"
Method: "processFile"
Line Contents: "throw new CheckstyleException("unable to open " + packageFile, ex);"
Mutator: "org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator"
Description: "removed call to java/lang/String::valueOf"
Line Number: 180

The warning and surviving mutations do not appear locally, but they do show up in the GitHub workflow.

By adding this argument to the pitest.yml workflow, the JVM permits reflective access, suppressing the warning during PITest runs on GitHub Actions.

But I'm not sure it will kill the surviving mutation; I'm just trying to solve this problem.

@Praveen7294 Praveen7294 changed the title Issue 16937: Resolve all pitest CIs fails Issue #16937: Resolve all pitest CIs fails Apr 25, 2025
@Brijeshthummar02

Copy link
Copy Markdown
Contributor

Updating this single line is not at all fix to what we been going through

As all mutations will not be killed and cleaned from whole repo pitest ci will fail, i am working on it, almost there as i am having exams after 2hrs i will be providing final updates pitest ci passing PR soon.

@Praveen7294

Copy link
Copy Markdown
Contributor Author

Updating this single line is not at all fix to what we been going through

As all mutations will not be killed and cleaned from whole repo pitest ci will fail, i am working on it, almost there as i am having exams after 2hrs i will be providing final updates pitest ci passing PR soon.

I appreciate your response, but I did not state that this change would eliminate the surviving mutation. I was trying to solve this problem.

@Brijeshthummar02

Copy link
Copy Markdown
Contributor

Updating this single line is not at all fix to what we been going through

As all mutations will not be killed and cleaned from whole repo pitest ci will fail, i am working on it, almost there as i am having exams after 2hrs i will be providing final updates pitest ci passing PR soon.

I appreciate your response, but I did not state that this change would eliminate the surviving mutation. I was trying to solve this problem.

Totally appreciated!! No worries everyone trying their best from there side to fix it.

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.

All Pitest CIs fail even when no code changes are made

3 participants