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

Adds vscode workspace with impeller test runner #55291

Merged
merged 9 commits into from
Sep 20, 2024

Conversation

gaaclarke
Copy link
Member

This PR removes our checked in .vscode files and instead starts a vscode workspace for the engine. As a first step I've added build tasks for the arm64 impeller_unittests. I also setup C++ TestMate so that we can easily navigate to tests and execute them. The tests will be rebuilt before each execution.

The goal would be that eventually all of our c++ tests can be listed here. This is going to make external contribution much easier and make it so I don't have to keep editing the "launch.json" file to run specific tests.

ezgif-2-bcd582b44e

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@gaaclarke

This comment was marked as outdated.

],
"settings": {
"files.associations": {
"optional": "cpp",
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't these be *.<extension> - or are these just loose files lying about the tree. These look like identifiers rather than files.

Copy link
Member Author

Choose a reason for hiding this comment

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

These are the c++ standard library. Like #include <atomic>. Since there is no extension I think it may have issues figuring out what language it is. I've had this set forever so I decided to share it.

@gaaclarke
Copy link
Member Author

Hmm I've looked at this a couple of different ways. It really seems the license checker is failing to pick up the excluded file.

@gaaclarke gaaclarke mentioned this pull request Sep 19, 2024
8 tasks
@gaaclarke
Copy link
Member Author

This is not going to scale well once we start adding more entries for all our test runners. For that I've written a tool that can deduplicate json files while keeping //engine.code-workspace the source of truth: #55309

Copy link
Contributor

@jtmcdole jtmcdole left a comment

Choose a reason for hiding this comment

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

LGTM; i'm assuming Matan is OK with the extensions moving to the workspace.

@gaaclarke gaaclarke merged commit 1b28c20 into flutter:main Sep 20, 2024
27 checks passed
@gaaclarke
Copy link
Member Author

I think I've come up with a better way of reducing redundancy with the workspace. Yaml already has the ability to deduplicate this stuff and can be compiled down to json and json can be compiled back to yaml if we ever accidentally edit the workspace.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 23, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 23, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 23, 2024
…155524)

flutter/engine@0155f8f...c11e75b

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 8c44a27b32a8 to ec0ed4afabf4 (1 revision) (flutter/engine#55351)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from 1d03ec881675 to 8c44a27b32a8 (1 revision) (flutter/engine#55342)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from c01f89da7c38 to 1d03ec881675 (1 revision) (flutter/engine#55336)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from 1be7027570a0 to c01f89da7c38 (1 revision) (flutter/engine#55328)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from ca5731228de9 to 1be7027570a0 (1 revision) (flutter/engine#55327)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from bdbbdee1db8c to ca5731228de9 (1 revision) (flutter/engine#55326)
2024-09-20 30870216+gaaclarke@users.noreply.github.com Adds vscode workspace with impeller test runner (flutter/engine#55291)
2024-09-20 skia-flutter-autoroll@skia.org Roll Skia from 16f53694ec96 to bdbbdee1db8c (1 revision) (flutter/engine#55321)
2024-09-20 skia-flutter-autoroll@skia.org Roll Dart SDK from 21402561f6d3 to 419aef963b5a (1 revision) (flutter/engine#55320)

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 chinmaygarde@google.com,rmistry@google.com,zra@google.com 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
auto-submit bot pushed a commit that referenced this pull request Sep 23, 2024
In #55291 we added a vscode workspace to help with running tests and sharing settings.  However, VSCode does not support a config format that has the ability to reduce redundancy and it will get quite unwieldy as we add in all of the engines test runners.  To combat that I've added instead a YAML config that can converted to JSON for VSCode.

This also adds 2 more test runners: display_list_unittests and impeller_golden_tests

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 26, 2024
…lutter#155524)

flutter/engine@0155f8f...c11e75b

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 8c44a27b32a8 to ec0ed4afabf4 (1 revision) (flutter/engine#55351)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from 1d03ec881675 to 8c44a27b32a8 (1 revision) (flutter/engine#55342)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from c01f89da7c38 to 1d03ec881675 (1 revision) (flutter/engine#55336)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from 1be7027570a0 to c01f89da7c38 (1 revision) (flutter/engine#55328)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from ca5731228de9 to 1be7027570a0 (1 revision) (flutter/engine#55327)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from bdbbdee1db8c to ca5731228de9 (1 revision) (flutter/engine#55326)
2024-09-20 30870216+gaaclarke@users.noreply.github.com Adds vscode workspace with impeller test runner (flutter/engine#55291)
2024-09-20 skia-flutter-autoroll@skia.org Roll Skia from 16f53694ec96 to bdbbdee1db8c (1 revision) (flutter/engine#55321)
2024-09-20 skia-flutter-autoroll@skia.org Roll Dart SDK from 21402561f6d3 to 419aef963b5a (1 revision) (flutter/engine#55320)

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 chinmaygarde@google.com,rmistry@google.com,zra@google.com 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
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 26, 2024
…lutter#155524)

flutter/engine@0155f8f...c11e75b

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 8c44a27b32a8 to ec0ed4afabf4 (1 revision) (flutter/engine#55351)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from 1d03ec881675 to 8c44a27b32a8 (1 revision) (flutter/engine#55342)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from c01f89da7c38 to 1d03ec881675 (1 revision) (flutter/engine#55336)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from 1be7027570a0 to c01f89da7c38 (1 revision) (flutter/engine#55328)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from ca5731228de9 to 1be7027570a0 (1 revision) (flutter/engine#55327)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from bdbbdee1db8c to ca5731228de9 (1 revision) (flutter/engine#55326)
2024-09-20 30870216+gaaclarke@users.noreply.github.com Adds vscode workspace with impeller test runner (flutter/engine#55291)
2024-09-20 skia-flutter-autoroll@skia.org Roll Skia from 16f53694ec96 to bdbbdee1db8c (1 revision) (flutter/engine#55321)
2024-09-20 skia-flutter-autoroll@skia.org Roll Dart SDK from 21402561f6d3 to 419aef963b5a (1 revision) (flutter/engine#55320)

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 chinmaygarde@google.com,rmistry@google.com,zra@google.com 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
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 27, 2024
…lutter#155524)

flutter/engine@0155f8f...c11e75b

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 8c44a27b32a8 to ec0ed4afabf4 (1 revision) (flutter/engine#55351)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from 1d03ec881675 to 8c44a27b32a8 (1 revision) (flutter/engine#55342)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from c01f89da7c38 to 1d03ec881675 (1 revision) (flutter/engine#55336)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from 1be7027570a0 to c01f89da7c38 (1 revision) (flutter/engine#55328)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from ca5731228de9 to 1be7027570a0 (1 revision) (flutter/engine#55327)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from bdbbdee1db8c to ca5731228de9 (1 revision) (flutter/engine#55326)
2024-09-20 30870216+gaaclarke@users.noreply.github.com Adds vscode workspace with impeller test runner (flutter/engine#55291)
2024-09-20 skia-flutter-autoroll@skia.org Roll Skia from 16f53694ec96 to bdbbdee1db8c (1 revision) (flutter/engine#55321)
2024-09-20 skia-flutter-autoroll@skia.org Roll Dart SDK from 21402561f6d3 to 419aef963b5a (1 revision) (flutter/engine#55320)

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 chinmaygarde@google.com,rmistry@google.com,zra@google.com 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
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 27, 2024
…lutter#155524)

flutter/engine@0155f8f...c11e75b

2024-09-23 skia-flutter-autoroll@skia.org Roll Skia from 8c44a27b32a8 to ec0ed4afabf4 (1 revision) (flutter/engine#55351)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from 1d03ec881675 to 8c44a27b32a8 (1 revision) (flutter/engine#55342)
2024-09-22 skia-flutter-autoroll@skia.org Roll Skia from c01f89da7c38 to 1d03ec881675 (1 revision) (flutter/engine#55336)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from 1be7027570a0 to c01f89da7c38 (1 revision) (flutter/engine#55328)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from ca5731228de9 to 1be7027570a0 (1 revision) (flutter/engine#55327)
2024-09-21 skia-flutter-autoroll@skia.org Roll Skia from bdbbdee1db8c to ca5731228de9 (1 revision) (flutter/engine#55326)
2024-09-20 30870216+gaaclarke@users.noreply.github.com Adds vscode workspace with impeller test runner (flutter/engine#55291)
2024-09-20 skia-flutter-autoroll@skia.org Roll Skia from 16f53694ec96 to bdbbdee1db8c (1 revision) (flutter/engine#55321)
2024-09-20 skia-flutter-autoroll@skia.org Roll Dart SDK from 21402561f6d3 to 419aef963b5a (1 revision) (flutter/engine#55320)

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 chinmaygarde@google.com,rmistry@google.com,zra@google.com 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 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