fix(#4863): resolve failed tests in MjLintTest.java related to caching#4864
Conversation
📝 WalkthroughWalkthroughRe-enabled tests in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Performance AnalysisAll benchmarks are within the acceptable range. No critical degradation detected (threshold is 100%). Please refer to the detailed report for more information. Click to see the detailed report
✅ Performance gain: |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@eo-maven-plugin/src/test/java/org/eolang/maven/MjLintTest.java`:
- Around line 241-248: The closing parenthesis for the new XMLDocument(...)
expression in MjLintTest is on the same line as the surrounding Matcher call
which trips Qulice's BracketsStructureCheck; move the final ")" that closes new
XMLDocument(...) to its own line so the XMLDocument constructor call ends with a
lone closing parenthesis line (adjust the block containing new
XMLDocument(cache.resolve(MjLint.CACHE)...resolve("foo/x/main.xmir"))
accordingly) ensuring proper indentation and keeping the surrounding
Matchers.is(...) unchanged.
There was a problem hiding this comment.
Pull request overview
This PR resolves puzzle 4851-f3d235c3 by re-enabling and fixing three disabled test methods in MjLintTest.java that were broken due to changes in the caching logic. The tests have been updated to work with the new Cache and CachePath API introduced in recent refactoring.
Changes:
- Re-enabled three previously disabled caching-related tests by removing
@Disabledannotations - Updated test implementation to use new caching mechanism (
Cache,CachePath,Xnavclasses) - Changed
skipsAlreadyLintedtest to verify caching by checking XML@timeattribute instead of file modification time - Removed TODO puzzle comment that documented the disabled tests
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…st for caching verification
ff761a4 to
eade4cc
Compare
|
@yegor256 could you have a look, please? |
|
@yegor256 friendly reminder |
|
@volodya-lombrozo Hey! Nice work on your contribution – you've snagged +16 points this time! 🎉 The policy rewards solid contributions like yours, and you're doing great by keeping your code contributions within that sweet spot (avoiding those pesky deductions for oversized changes or missing reviews). Your running score is sitting pretty at +390, so keep the momentum going! Don't forget to peek at your Zerocracy account when you get a chance. |
1 similar comment
|
@volodya-lombrozo Hey! Nice work on your contribution – you've snagged +16 points this time! 🎉 The policy rewards solid contributions like yours, and you're doing great by keeping your code contributions within that sweet spot (avoiding those pesky deductions for oversized changes or missing reviews). Your running score is sitting pretty at +390, so keep the momentum going! Don't forget to peek at your Zerocracy account when you get a chance. |
This PR resolves the puzzle
4851-f3d235c3by enabling tests inMjLintTest.javarelated to caching.Fixes #4863
Summary by CodeRabbit