Skip to content

Add zoneinfo data for System.Runtime.TimeZoneInfoTests - #38219

Merged
tqiu8 merged 13 commits into
dotnet:masterfrom
tqiu8:add-zoneinfo-data
Jul 7, 2020
Merged

Add zoneinfo data for System.Runtime.TimeZoneInfoTests#38219
tqiu8 merged 13 commits into
dotnet:masterfrom
tqiu8:add-zoneinfo-data

Conversation

@tqiu8

@tqiu8 tqiu8 commented Jun 22, 2020

Copy link
Copy Markdown
Contributor
  • added --enable-zoneinfo flags to WasmRunnerTemplate.sh as well as wasm/sample/Makefile
  • added package reference to System.Runtime.TestData
  • allows all TimeZoneInfo tests with System.TimeZoneNotFoundException to pass, ~100 tests

- added --enable-zoneinfo flags to WasmRunnerTemplate.sh as well as wasm/sample/Makefile
- added package reference to System.Runtime.TestData
@Dotnet-GitSync-Bot

Copy link
Copy Markdown
Collaborator

I couldn't figure out the best area label to add to this PR. Please help me learn by adding exactly one area label.

@ghost

ghost commented Jun 22, 2020

Copy link
Copy Markdown

Tagging subscribers to this area: @safern, @ViktorHofer
Notify danmosemsft if you want to be subscribed.

Comment thread eng/testing/WasmRunnerTemplate.sh Outdated
Comment thread src/mono/wasm/runtime-test.js Outdated
Comment thread src/mono/netcore/sample/wasm/Makefile Outdated
Comment thread src/mono/netcore/sample/wasm/WasmSample.csproj Outdated
Comment thread src/mono/netcore/sample/wasm/WasmSample.csproj Outdated
Comment thread src/mono/netcore/sample/wasm/Program.cs Outdated
Comment thread src/mono/netcore/sample/wasm/WasmSample.csproj Outdated
@safern

safern commented Jun 25, 2020

Copy link
Copy Markdown
Member

@tqiu8 the PR to add WASM test runs in CI was just merged so you should be able to rebase on top of master and address: #38219 (comment)

Also, with this fix, are there any test failures left in System.Runtime.Tests?

@tqiu8

tqiu8 commented Jun 25, 2020

Copy link
Copy Markdown
Contributor Author

@safern I was gonna go a different route and just have the timezone data included in the runtime pack instead of using the package reference.

@safern

safern commented Jun 25, 2020

Copy link
Copy Markdown
Member

Is that going to be the end-to-end scenario for customers?

@tqiu8

tqiu8 commented Jun 25, 2020

Copy link
Copy Markdown
Contributor Author

@safern I think it's a temporary solution that will eventually be merged with katelyn's icu work. @lewing

Comment thread eng/Versions.props Outdated
…net.timezones.blat in runtime pack

Remove edits to WasmSample makefile
Remove package references to System.Runtime.TestData
@tqiu8
tqiu8 force-pushed the add-zoneinfo-data branch from 7625d7d to ac91ed2 Compare June 29, 2020 19:15
@safern

safern commented Jun 29, 2020

Copy link
Copy Markdown
Member

Should we enable more test assemblies that were impacted by this?

Comment thread src/mono/wasm/runtime/library_mono.js Outdated
Comment thread src/mono/wasm/runtime/library_mono.js Outdated
Comment thread src/mono/wasm/runtime/library_mono.js Outdated
@tqiu8
tqiu8 requested a review from lewing July 1, 2020 19:14
Comment thread eng/testing/tests.mobile.targets Outdated
Comment thread eng/testing/tests.mobile.targets Outdated
Comment thread src/mono/wasm/runtime/library_mono.js Outdated
Co-authored-by: Larry Ewing <lewing@microsoft.com>
@tqiu8
tqiu8 requested a review from lewing July 2, 2020 19:01
Comment thread src/mono/wasm/runtime/library_mono.js Outdated
Comment thread src/mono/wasm/runtime/library_mono.js Outdated
tqiu8 added 3 commits July 6, 2020 13:59
- Correct tests.mobile.targets
- Hardcode magic number
- Make folder depth variable
@tqiu8
tqiu8 merged commit 19d221b into dotnet:master Jul 7, 2020
Comment thread src/mono/wasm/Makefile
Comment on lines +115 to +116
timezone-data:
cp runtime/dotnet.timezones.blat $(BUILDS_BIN_DIR)

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.

nit in case you touch this again: this should ideally use the filename as the target name instead so make's dependency tracking works (right now it always copies the file even if it's already there:

$(BUILDS_BIN_DIR)/dotnet.timezones.blat: runtime/dotnet.timezones.blat
	cp runtime/dotnet.timezones.blat $@

(the $@ is a special variable that means the target filename: https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good to know. i can open another pr with this. thank you!

@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants