Skip to content

Shard DWDS tests and fix CI test flakiness #1851

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

Merged
merged 9 commits into from
Dec 21, 2022

Conversation

elliette
Copy link
Contributor

@elliette elliette commented Dec 20, 2022

Work towards #1845 (reduce time it takes for CI actions to run)

Addresses the task "DWDS tests should be sharded into groups (currently they take much longer than the other CI actions)" by breaking the DWDS tests into 4 groups, all of which are run on Linux / Windows, and with the stable and dev Dart SDKs:

  • extension tests only
  • test shard 1
  • test shard 2
  • test shard 3

Work towards #1842 (flakiness cause by file path issues):

  • Updates the logic for how we are computing the DWDS path, and moves it (and a helper function to create an absolute path given a relative path to DWDS) to the shared test utilities file, so that they can be used by tests that aren't using TestContext.

@elliette elliette changed the title Shard DWDS tests Shard DWDS tests and fix CI test flakiness Dec 21, 2022
@elliette elliette marked this pull request as ready for review December 21, 2022 17:11
String get dwdsPath {
final pathParts = p.split(p.current);
// We expect all tests to be run from the webdev mono-repo:
assert(pathParts.contains('webdev'));

Choose a reason for hiding this comment

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

Consider putting 'webdev' to a constant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks!

Copy link

@polina-c polina-c left a comment

Choose a reason for hiding this comment

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

one comment and then lgtm

@elliette elliette merged commit 82ac652 into dart-lang:master Dec 21, 2022
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