Skip to content

Conversation

@andrecsilva
Copy link
Contributor

@andrecsilva andrecsilva commented Dec 3, 2024

No description provided.

@andrecsilva andrecsilva marked this pull request as ready for review December 3, 2024 13:28
@andrecsilva andrecsilva requested a review from nahsra December 3, 2024 13:29
*
* @param xmlDocumentString Rendered POM Document Contents (string-formatted)
* @return map of (index, matchData object) reverse ordered
* @return map of (index, matchData object) reve/rse ordered
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

import org.xmlunit.diff.Diff;
import org.xmlunit.diff.Difference;

@Execution(ExecutionMode.SAME_THREAD)
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like a smell - do we need this and why?

Copy link
Contributor Author

@andrecsilva andrecsilva Dec 3, 2024

Choose a reason for hiding this comment

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

No clue. Without this, the tests are flaky and interfere with each other. Sometimes it works, sometimes don't.

Seemed to work fine before adding the new test. But I did fix a bug with resource location when adding it.

I can do a deeper investigation if you merit it worth it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes please. I doubt the real use of this is multithreaded but I think at a minimum we need to understand this a little bit better and leave some comments or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The issue was being caused because we were always using the same instance of FormatCommand from a static variable. I was able to reproduce it in the main branch, but only after dozens of runs.

@andrecsilva andrecsilva requested a review from nahsra December 3, 2024 16:33
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@andrecsilva andrecsilva merged commit 42914df into main Dec 4, 2024
8 checks passed
@andrecsilva andrecsilva deleted the pom-updater-patch branch December 4, 2024 09:42
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