Conversation
The five files under src/test/scala have not been compiled or run since the Scala build was removed (#1640). Every case is ported to a TestNG test in the test class of the class it tests: the isBamFile cases to BamFileIoUtilsUnitTest, the pad cases to a new AbstractProgressLoggerTest, the StringUtil cases to a new StringUtilTest, the FASTQ writer cases to BasicFastqWriterTest and the FASTQ reader cases to a new FastqReaderTest. Tables of cases that differ in meaning become separate tests, random bases come from a fixed-seed Random, and the tests use the Path APIs. isBamFile now accepts an extension in any case (#1808), so test.Bam and test.BAM are asserted to be BAM files where the Scala expected false.
The POM listed only MIT, but much of the CRAM code is under the Apache License 2.0 and the core Tribble code under the LGPL, as the README says. The Tribble headers name LGPL version 2.1. Fixes #1710.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (13)
💤 Files with no reviewable changes (5)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe publication POM adds Apache and LGPL license entries. Java test suites add coverage for BAM filename detection, FASTQ reading and writing, and utility methods. Corresponding Scala test suites and their shared base class are removed. ChangesPublication license metadata
Java test coverage
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Other · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The license metadata and test migration appear ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Out of Scope Changes checkExplanation Issue Full details: Docstring CoverageExplanation Docstring coverage is 10.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 70 functions across 6 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
Port the five orphaned Scala test files to TestNG, and list all three licences in the published POM.
src/test/scalahasn't run since the Scala build was removed in 2022 (Removing scala test infrastructure #1640). Its cases are now TestNG tests inBamFileIoUtilsUnitTest,AbstractProgressLoggerTest,StringUtilTest,BasicFastqWriterTestand a newFastqReaderTest, and the directory is deleted. TwoisBamFileexpectations (test.Bam,test.BAM→ false) were stale since extensions became case-insensitive and now assert true.Closes #1710.
Summary by CodeRabbit