Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Migrate more tests from litetest to package:test #55119

Merged
merged 11 commits into from
Sep 12, 2024

Conversation

matanlurey
Copy link
Contributor

@matanlurey matanlurey commented Sep 12, 2024

Partial work towards flutter/flutter#133569.

Commentary on removal of assert-conditionals here: flutter/flutter#155054.

@matanlurey matanlurey changed the title Migrate testing/dart/observatory to package:test. Migrate more tests from litetest to package:test Sep 12, 2024
@matanlurey matanlurey marked this pull request as ready for review September 12, 2024 00:59
@@ -402,22 +402,23 @@ void main() async {
path.join('supported_glsl_op_shaders', 'iplr'),
'.iplr',
);
expect(iplrSupportedGLSLOpShaders.isNotEmpty, true);
Copy link
Member

Choose a reason for hiding this comment

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

Why are we losing these asserts? I see the print statement below, are we just going to fail further down in execution?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Package test can't run assertions outside of a test block and these functions generate tests. I think the test will still fail approximately at the same time though?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to a fail

}
});
sendPort.send(recvPort.sendPort);
await completer.future;
recvPort.close();
});
expect(sum, 5500); // sum(1 to 10) * 100
Copy link
Member

Choose a reason for hiding this comment

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

Please bring back this comment.

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!

Copy link
Member

@gaaclarke gaaclarke left a comment

Choose a reason for hiding this comment

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

lgtm!


@override
Description describe(Description description) {
return description.add('Rect is close to $_expectedRect');
Copy link
Member

Choose a reason for hiding this comment

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

nit: print out the limit, 1e-6

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.

};

@override
Description describe(Description description) {
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

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.

@matanlurey matanlurey removed the request for review from jonahwilliams September 12, 2024 17:38
@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2024
Copy link
Contributor

auto-submit bot commented Sep 12, 2024

auto label is removed for flutter/engine/55119, due to - The status or check suite Mac mac_unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2024
@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2024
@auto-submit auto-submit bot merged commit 8ccdbda into flutter:main Sep 12, 2024
33 checks passed
@matanlurey matanlurey deleted the pkg-test-observatory branch September 12, 2024 19:07
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 12, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 12, 2024
…155128)

flutter/engine@48ddaf5...8609af6

2024-09-12 [email protected] Revert "Update Color to do all calculations with floating point components" (flutter/engine#55153)
2024-09-12 [email protected] Migrate more tests from `litetest` to `package:test` (flutter/engine#55119)
2024-09-12 [email protected] Roll Skia from acff7f24ddbe to 26b048c6a53b (1 revision) (flutter/engine#55151)
2024-09-12 [email protected] Roll Dart SDK from a438066d634f to aa27c61f5859 (8 revisions) (flutter/engine#55147)
2024-09-12 [email protected] Update Skia build for Vulkan headers (flutter/engine#55143)
2024-09-12 [email protected] Roll Skia from 2b40b50ea423 to acff7f24ddbe (1 revision) (flutter/engine#55144)
2024-09-12 [email protected] Update Color to do all calculations with floating point components (flutter/engine#54981)
2024-09-12 [email protected] Roll Fuchsia Linux SDK from fKNT8lbGh8JzxjE6m... to 3YH1DEYJ-s93fHBw5... (flutter/engine#55142)
2024-09-12 [email protected] Migrate `const_finder_test` to use `package:test` (flutter/engine#55132)
2024-09-12 [email protected] [engine] make UI thread the platform thread for Android. Still allows opt out as g3 escape hatch. (flutter/engine#55111)
2024-09-12 [email protected] Roll Skia from b750cbedc114 to 2b40b50ea423 (1 revision) (flutter/engine#55141)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from fKNT8lbGh8Jz to 3YH1DEYJ-s93

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants