Skip to content

TIKA-4920: make the nightly locale build report every failure, fix wh… - #3315

Open
tballison wants to merge 2 commits into
apache:mainfrom
tballison:TIKA-4920-nightly-locale-fixes
Open

tballison wants to merge 2 commits into
apache:mainfrom
tballison:TIKA-4920-nightly-locale-fixes

Conversation

@tballison

Copy link
Copy Markdown
Contributor

…at it found

Thanks for your contribution to Apache Tika! Your help is appreciated!

Before opening the pull request, please verify that

  • there is an open issue on the Tika issue tracker which describes the problem or the improvement. We cannot accept pull requests without an issue because the change wouldn't be listed in the release notes.
  • the issue ID (TIKA-XXXX)
    • is referenced in the title of the pull request
    • and placed in front of your commit messages surrounded by square brackets ([TIKA-XXXX] Issue or pull request title)
  • commits are squashed into a single one (or few commits for larger changes)
  • Tika builds and unit tests pass with ./mvnw clean install (clean test alone cannot resolve the pipes plugin zips)
  • if you used a generative AI tool: follow the ASF Generative Tooling Guidance (Generated-by: <tool> in the commit message), and consider running the pre-flight in .skills/devs/pr-review/SKILL.md — fix what it finds; don't paste its report here
  • there should be no conflicts when merging the pull request branch into the recent main branch. If there are conflicts, please try to rebase the pull request branch on top of a freshly pulled main branch
  • if you add new module that downstream users will depend upon add it to relevant group in tika-bom/pom.xml.

We will be able to faster integrate your pull request if these conditions are met. If you have any questions how to fix your problem or about using Tika in general, please sign up for the Tika mailing list. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Several conditions suppress substantial locale-independent parser coverage instead of isolating only the affected date assertions.

4 open findings
What changed in this PR

Improves nightly locale testing by aggregating failures and addressing locale-sensitive tests.

Changes:

  • Adds non-Gregorian calendar detection and tests.
  • Adjusts locale-sensitive parser tests and date formatting.
  • Aggregates Surefire/Failsafe failures after the Maven reactor completes.
File Description
tika-test-support/​.../​TestLocales.java Adds calendar-type detection.
tika-core/​.../​TestLocalesTest.java Tests locale classification.
.../​ZipEntryTimesTest.java Handles non-Gregorian ZIP behavior.
.../​ZipDosTimeDstTest.java Disables locale-sensitive DOS-time tests.
.../​RarParserTest.java Handles junrar date behavior.
.../​OutlookParserTest.java Handles POI MAPI date behavior.
.../​MailDateParserTest.java Uses locale-stable date formats.
.../​FontParsersTest.java Handles FontBox date behavior.
.../​TabularFormatsTest.java Pins locale during tabular tests.
.github/​workflows/​nightly-locale-build.yml Collects all test failures before failing.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


@Test
// fontbox TTFDataStream.readInternationalDate builds its Calendar in the default locale (TIKA-4920)
@DisabledIf("org.apache.tika.test.TestLocales#nonGregorianDefault")

@Test
// POI LocaleUtil.getLocaleCalendar dates MAPI times in the default calendar (TIKA-4920)
@DisabledIf("org.apache.tika.test.TestLocales#nonGregorianDefault")
*/
@Test
// junrar FileHeader.getDateDos uses Calendar.getInstance() (TIKA-4920)
@DisabledIf("org.apache.tika.test.TestLocales#nonGregorianDefault")

@Test
// commons-compress ZipUtil.dosToJavaDate uses Calendar.getInstance() (TIKA-4920)
@DisabledIf("org.apache.tika.test.TestLocales#nonGregorianDefault")
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