Skip to content

CLDR-19925 Re-land the currency test data generator and test data - #6302

Open
younies wants to merge 4 commits into
unicode-org:mainfrom
younies:cldr-19925-reland-currency-test-data
Open

younies wants to merge 4 commits into
unicode-org:mainfrom
younies:cldr-19925-reland-currency-test-data

Conversation

@younies

@younies younies commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

CLDR-19925

  • This PR completes the ticket.

Re-lands the currency test data generator, its test and the TSV files that #6300 reverted, now on the v50 ticket.

ALLOW_MANY_COMMITS=true

This restores the files that unicode-org#6300 removed: the currency generator, its
test, the README and the TSV files from unicode-org#5808, with the 258 rows that
unicode-org#6297 regenerated for ICU4J 79.1.

This reverts commit 43ba405.
@younies
younies requested review from sffc and srl295 November 25, 2026 22:13
@younies
younies marked this pull request as ready for review November 25, 2026 22:13
@younies

younies commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

@srl295 and @sffc , can we accept the CLDR ticket which is just a clone into v50 and review this PR, it is just also a re-land ?

@srl295

srl295 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

@srl295 and @sffc , can we accept the CLDR ticket which is just a clone into v50 and review this PR, it is just also a re-land ?

Yes but check all fields carefully. Especially clear the "merged" one. Very important.

And add a note why it was accepted.

@younies

younies commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

@srl295 Thanks. I checked the fields: Merged is empty, fix version is 50, and I added a note on the ticket. I can't change the status or the assignee from my account (Jira assigned it to Mark). Could you accept it and assign it to me?

@srl295

srl295 commented Nov 26, 2026

Copy link
Copy Markdown
Member

@srl295 and @sffc , can we accept the CLDR ticket which is just a clone into v50 and review this PR, it is just also a re-land ?

why before thanksgiving?

@younies

younies commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

@srl295 and @sffc , can we accept the CLDR ticket which is just a clone into v50 and review this PR, it is just also a re-land ?

why before thanksgiving?

First, because I am in Europe and I wanted to focus on the upcoming feature-based conformance data generator while this is already submitted :)

Second: it is thanksgiving holiday now, so happy thanksgiving from Europe and lets submit it next week :)

@srl295 srl295 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Happy thanksgiving back. I think we should wait on this one and discuss in cldr-tc, like to understand better:

  • we had some process issues, with PRs merged late and on the wrong release
  • what was the reason that this broke when merged, even after the generator ran? If there were just data issues, presumably the run of #6297 should have picked them up
  • my concern is that we are making the CLDR build more fragile.

Comment on lines +13 to +24
params = TestParams.create(new String[0], new java.io.PrintWriter(System.out));
}

@org.junit.jupiter.api.Test

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this test should not be both TestFmwkPlus and JUnit — please pick one.

ideally remove extends TestFmwkPlus and make it just a JUnit test.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same, remove extends TestFmwkPlus and just use JUnit

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done. The test command in GenerateTestData.md now runs the class directly.

The class extended TestFmwkPlus and also carried JUnit annotations.
Drop the TestFmwkPlus parent so it is only a JUnit test: errln() calls
become fail(), and an IOException is thrown instead of logged.

The test command in GenerateTestData.md no longer goes through TestShim.
Same change as for TestCurrencyFormat: drop the TestFmwkPlus parent and
use JUnit assertions.
@@ -0,0 +1,157 @@
package org.unicode.cldr.unittest;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It could actually be in the org.unicode.cldr.tool package. then it can use package-private calls if need be.

The unittest package dates from before the test and app code were in separate dirs (src/main vs src/test).

This branch has not been deployed

No deployments
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