Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove testdata #3635

Merged
merged 13 commits into from
Jul 7, 2023
Merged

Remove testdata #3635

merged 13 commits into from
Jul 7, 2023

Conversation

robertbastian
Copy link
Member

@robertbastian robertbastian commented Jul 5, 2023

Fixes #3529

sffc
sffc previously approved these changes Jul 5, 2023
components/locid_transform/src/expander.rs Outdated Show resolved Hide resolved
Comment on lines +24 to +25
"!tests/data/json/**/*",
"!tests/data/postcard/**/*",
Copy link
Member

Choose a reason for hiding this comment

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

Just flagging this; I assume the tests still run without this data?

Copy link
Member Author

Choose a reason for hiding this comment

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

This data is not used by tests. It just exists so we can look at diffs on GitHub (fingerprints and JSON contents).

in icu_datagen. If not, it's likely that japanese.rs in icu_datagen will need \
to be updated to handle the data changes. Once done, be sure to regenerate datetime/symbols@1 as well if not \
doing so already"
changed in an incompatible way, or there is a new Japanese era. Run \
Copy link
Member

Choose a reason for hiding this comment

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

Flagging this for @Manishearth

LocaleInclude::Explicit(icu_testdata::locales().into_iter().collect());
options
},
Default::default(),
Copy link
Member

Choose a reason for hiding this comment

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

Question: you can do this because the default behavior is to enumerate the directories to find the locales?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, default behaviour is all locales.

sffc
sffc previously approved these changes Jul 5, 2023
Manishearth
Manishearth previously approved these changes Jul 5, 2023
@robertbastian robertbastian dismissed stale reviews from Manishearth and sffc via 59a2c4e July 6, 2023 12:27
Manishearth
Manishearth previously approved these changes Jul 6, 2023
Manishearth
Manishearth previously approved these changes Jul 6, 2023
@sffc
Copy link
Member

sffc commented Jul 6, 2023

Discussion:

  1. Keep the testdata crate where it currently lives
  2. Unlink from the workspace
  3. Git-ignore generated code in testdata but make sure it is included for cargo publish
  4. cargo make testdata continues to generate the data in provider/testdata, as well as the datagen test data
  5. Make a small testdata crate for cargo tutorials that is deleted when 1.3 is released and tutorials are updated
  6. Mark all testdata methods as deprecated
  7. Continue publishing testdata through 1.x
  8. Keep the benchmarks where they are; open an issue to move them somewhere else before 2.0

LGTM: @Manishearth @sffc @robertbastian

Comment on lines +53 to +54
let out_root =
std::path::Path::new(std::env!("CARGO_MANIFEST_DIR")).join("../../provider/datagen");
Copy link
Member

Choose a reason for hiding this comment

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

Thought: Not very happy about this using a relative path, but it is in a no-publish crate, so okay

@robertbastian robertbastian merged commit c3f3fb3 into unicode-org:main Jul 7, 2023
22 checks passed
@robertbastian robertbastian deleted the td branch July 7, 2023 13:49
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.

A path to killing testdata
3 participants