Skip to content

Pull #18746: Add failOnDryRunResults to fix rewrite feature envy #18746

Closed
Pankraz76 wants to merge 1 commit into
checkstyle:masterfrom
Pankraz76:fix-dryRun
Closed

Pull #18746: Add failOnDryRunResults to fix rewrite feature envy #18746
Pankraz76 wants to merge 1 commit into
checkstyle:masterfrom
Pankraz76:fix-dryRun

Conversation

@Pankraz76

@Pankraz76 Pankraz76 commented Jan 24, 2026

Copy link
Copy Markdown

Pull #18746: Add failOnDryRunResults to fix rewrite feature envy

benefit;

  • less featue envy
  • better UX as logging tells how to fix:
[WARNING] Run 'mvn rewrite:run' to apply the recipes.

let user know what to do:

[INFO] Running recipe(s)...
[INFO] Printing available datatables to: target/rewrite/datatables/2026-01-24_13-58-46-018
[WARNING] The recipe produced 4 warning(s). Please report this to the recipe author.
[WARNING] These recipes would make changes to src/it/java/org/checkstyle/base/AbstractItModuleTestSupport.java:
[INFO]     org.openrewrite.java.migrate.UpgradeToJava21
[INFO]         org.openrewrite.java.migrate.util.SequencedCollection
[INFO]             org.openrewrite.java.migrate.util.ListFirstAndLast
[WARNING] Patch file available:
[WARNING]     /home/circleci/project/target/rewrite/rewrite.patch
[WARNING] Estimate time saved: 5m
[WARNING] Run 'mvn rewrite:run' to apply the recipes.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  09:41 min
[INFO] Finished at: 2026-01-24T13:58:46Z
[INFO] ------------------------------------------------------------------------

@Pankraz76 Pankraz76 changed the title Pull #18700: Add failOnDryRunResults to fix rewrite Pull #18746: Add failOnDryRunResults to fix rewrite Jan 24, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Comment thread .ci/validation.sh
Comment thread .ci/validation.sh Outdated

echo "Running Checkstyle validation to get report for openrewrite..."
echo "Installed checkstyle-openrewrite-recipes.jar, remove obsolete tmp dir..."
rm -rf /tmp/checkstyle-openrewrite-recipes

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

lets make it clear and use rewrite like its supposed to. no feature envy anymore having cost of carry. This way its done like for customers.

Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Comment thread .ci/validation.sh
Comment thread .ci/validation.sh
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Comment thread src/it/java/org/checkstyle/base/AbstractItModuleTestSupport.java Outdated
Comment thread .ci/validation.sh
PROJECT_ROOT="$(pwd)"
export MAVEN_OPTS="-Xmx4g -Xms2g"

cd /tmp

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

yes having tmp is kind of nice and the way 2 do. maybe make it even .tmp to really hide it. But if there is an collision its there anyways so imho no need. also we delete this dir right after usage. its gone right after the install.

Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Comment thread .ci/validation.sh Outdated
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 24, 2026
Comment thread .ci/validation.sh
@Pankraz76 Pankraz76 marked this pull request as ready for review January 24, 2026 14:02
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
@Pankraz76 Pankraz76 marked this pull request as draft January 25, 2026 13:09
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
@Pankraz76 Pankraz76 marked this pull request as ready for review January 25, 2026 13:36
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
Pankraz76 pushed a commit to Pankraz76/checkstyle that referenced this pull request Jan 25, 2026
@timtebeek

Copy link
Copy Markdown

@timtebeek could you please help out here? I have noticed romani does not grasp simple issues anymore making it really hard to go on and improve the feature envy and config costs that checkstyle always chooses instead of convention principle.

we dont need to reinvent rewrite inside of checkatyle imposing crazy feature envy we just need to use rewrite how rewrite is supposed to do.

We usung rewrite the rewrite way but not using the on board rewrite feature no, we need to reimplement rewrite because we not smart enough to make it correct right away.

Lets fix this burden and improve for everyone involved, thanks.

@Pankraz76 Stop.

You can't go around calling maintainers "not smart enough" or "does not grasp simple issues anymore". Nor can you call a way that works for folks "feature envy" when then might not have been aware of the options available to them.

If you want to meaningfully contribute somewhere it's up to you to clearly outline your idea, and propose it in a way that folks are likely to agree with and adopt. Consider that folks might not be aware of something, and educate them with kindness. You might find you'll have more success getting your ideas adopted.

More broadly I've seen this type of dynamic from you play out across a number of projects now. Such negative messages are hurting maintainers who put their private time and effort into a project. And on a personal level it pains me that the way folks learn about OpenRewrite is from insistent messaging. I ask that you take a good step back, reflect, and either thoroughly adjust your tone or refrain from posting to projects.

To @romani: I'm sorry to see how this has played out; know that I don't agree with the messaging here, but have no control over what our users might do with our tooling. Know that I'm always happy to help where I can, and I wish you all the best.

@Pankraz76

Copy link
Copy Markdown
Author

when then might not have been aware of the options available to them.

told them many times before..l

i can understand you. still this my opinion and nothing more. Does not need to be right or wrong.

Also you do not say one technincal argument this kind of weak too.

you focusing too much on emotions. its nothing personal and might be lost in translation.

@romani

romani commented Jan 25, 2026

Copy link
Copy Markdown
Member

@Pankraz76, please stop mentioning other peoples in checkstyle PRs. I defining rules in this project, I know what is working well for us, and I will be done in way it works for us, not in way how worked in some other place.

If you didn't switch your activity to comply our rules , I will have to ban you.

@romani

romani commented Jan 25, 2026

Copy link
Copy Markdown
Member

I don't see a reason of this update.

Whole CI works in simple concept: run command, fix violations or apply suggested code changes.

@romani romani closed this Jan 25, 2026
@Pankraz76

Copy link
Copy Markdown
Author

this way is faster and simpler for the users.

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.

3 participants