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

[fuchsia] Adds a test for timezone change #21934

Merged

Conversation

filmil
Copy link
Contributor

@filmil filmil commented Oct 16, 2020

Description

This is a Fuchsia-only shell test, confirming that when the timezone
setting is changed on the realm via Fuchsia's FIDL interface
fuchsia.settings.Intl, the Dart isolate running in that realm receives
the change and starts reporting the appropriate timestamp.

We already have a similar test that verifies the timezones in the
dart VM matches the local timezone at start, but there was no test that
also verified timezone changes.

The test has been ran 1000 times on fuchsia to check for flakiness,
and it passed.

Related Issues

  • See issue #59723

Tests

I added the following tests:

  • FuchsiaShellTest.LocaltimesVaryOnTimezoneChanges

Tested:

fx shell run \
  fuchsia-pkg://fuchsia.com/shell_tests#meta/shell_tests.cmx \
  --gtest_filter="*Fuchsia*" --gtest_repeat=1000

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the contributor guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the C++, Objective-C, Java style guides for the engine.
  • I read the tree hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation.
  • All existing and new tests are passing.
  • I am willing to follow-up on review comments in a timely manner.

Reviewer Checklist

Breaking Change

Did any tests fail when you ran them? Please read handling breaking changes.

@google-cla google-cla bot added the cla: yes label Oct 16, 2020
@filmil filmil marked this pull request as ready for review October 16, 2020 23:53
@filmil
Copy link
Contributor Author

filmil commented Oct 16, 2020

@iskakaushik Please take a look?

This is a Fuchsia-only shell test, confirming that when the timezone
setting is changed on the realm via Fuchsia's FIDL interface
`fuchsia.settings.Intl`, the Dart isolate running in that realm receives
the change and starts reporting the appropriate timestamp.

We already have a [similar test][tst] that verifies the timezones in the
dart VM matches the local timezone at start, but there was no test that
also verified timezone changes.

[tst]: https://github.com/flutter/engine/blob/master/shell/common/shell_unittests.cc#L1166

The test has been ran 1000 times on fuchsia to check for flakiness,
and it passed.

Tested:

```
fx shell run \
  fuchsia-pkg://fuchsia.com/shell_tests#meta/shell_tests.cmx \
  --gtest_filter="*Fuchsia*" --gtest_repeat=1000
```

See issue #61284
@filmil filmil force-pushed the timezone-change-test-against-HEAD branch from dcbdfd9 to 7f8f69a Compare October 23, 2020 19:13
@filmil
Copy link
Contributor Author

filmil commented Oct 24, 2020

@chinmaygarde PTAL?

Added a test to guard timezone change on Fuchsia.

@filmil
Copy link
Contributor Author

filmil commented Oct 24, 2020

Thank you! Will this need a manual merge?

@chinmaygarde chinmaygarde added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Oct 24, 2020
@chinmaygarde
Copy link
Member

I don't think so. I added the tag for the bot to autoland it when the tree goes green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
3 participants