-
Notifications
You must be signed in to change notification settings - Fork 174
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
A path to killing testdata #3529
Comments
Yes please, kill the crate, use baked data where possible, and put extra data in |
An outcome I would support would be:
|
This works for me. I'm iffy about keeping icu4x-json but overall I care less about that. Happy to have that discussion after we do everything else sketched out here. (I think having that be generated on demand as needed is also fine) |
I'd like to get rid of repodata if possible. I've voiced concerns about it being a manually maintained subset of CLDR that might not behave like CLDR before, but keeping datagen unit tests network-free convinced me to keep it around. In fact, full datagen with repodata currently fails. If we get rid of the testdata crate, then repodata is only used in one place, datagen unit tests. We should move what's needed into Postcard generation during CI should use the same set that checked in baked data uses, i.e. a tag. We already generate data from tags in CI, and this has never been an issue. Using a different set for postcard data can produce confusing test failures and also requires us to manually maintain the checked-in subset. |
I'm in favor. If we do this we should probably provide utility cargo-make tasks that will output the currently dominant tag of cldr-json, icuexportdata, or icu4x-json to a requested directory for debugging purposes. I'm fine with making this the last thing we do, i.e. we take Shane's 4-entry list and execute it, and then also later remove repodata. |
Conclusions:
LGTM: @sffc @robertbastian @Manishearth |
@sffc will update tutorials |
Related: #3529
@robertbastian has been diligently working on autodata/defaultdata (#2945), and we're nearing a point where each crate will have its own data already bundled, and used in the examples.
I've never been a fan of having checked-in postcard blobs in our tree, and I'm also not a fan of duplicating testdata and defaultdata.
We have wanted to have a separation between "data we use for testing" and "data we give people by default", so there still is some value to retaining defaultdata. Specifically; if we want to test some locale with strange features but not include it in defaultdata; we probably still need testdata.
However I'm wondering if we can greatly reduce the size of testdata, or potentially put such locale-tests in subdirectories with their own
component/test_data/config.json
.It's worth starting conversations now.
I'd also like to get rid of checked in postcard:, see #3530
Opening this now to get temperature checks and an idea of where people are leaning.
Discuss with:
The text was updated successfully, but these errors were encountered: