Skip to content

[pigeon] Consolidate platform test harnesses part 1 - harnesses#2809

Merged
auto-submit[bot] merged 16 commits into
flutter:mainfrom
stuartmorgan-g:pigeon-test-harness-consolidation-1-scaffolds
Nov 15, 2022
Merged

[pigeon] Consolidate platform test harnesses part 1 - harnesses#2809
auto-submit[bot] merged 16 commits into
flutter:mainfrom
stuartmorgan-g:pigeon-test-harness-consolidation-1-scaffolds

Conversation

@stuartmorgan-g

Copy link
Copy Markdown
Collaborator

Part 1 of #2803

Adds two plugins—one for most languages, one for alternate languages (Java and Obj-C)—to serve as native test hosts, to consolidate everything into a multi-platform test harness that uses exactly the same structure as all of the native unit tests in flutter/plugins.

This PR is a no-op in terms of the actual test script; it adds the scaffolding with nothing using it yet. Each test will be moved in a separate follow-up PR to isolate the CI issues in #2803. This portion corresponds to:

  • Adding the two new test plugin projects, using flutter create.
  • Cleaning up those templates (autoformat, license boilerplate, removing unneeded files, adding README info, etc.).
  • Rolling back the Gradle and AGP versions to avoid the Java 11 problem discussed in [pigeon] Consolidate platform test harnesses #2803.

This does preemptively remove a Cirrus CI workaround for dart-lang/pub#3618, since that is now fixed upstream, and removing it now avoids needing to update the workaround in every follow-up PR.

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 relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

@stuartmorgan-g stuartmorgan-g added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes labels Nov 15, 2022
@stuartmorgan-g stuartmorgan-g changed the title Pigeon test harness consolidation 1 scaffolds [pigeon] Consolidate platform test harnesses part 1 - harnesses Nov 15, 2022
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

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.

@tarrinneal tarrinneal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like everything here is solid

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 15, 2022
@auto-submit auto-submit Bot merged commit a1efb19 into flutter:main Nov 15, 2022
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
…ter#2809)

* Add README explaining structure

* Initial test plugin; unchanged from template

* Initial seconday test plugin; unchanged from template

* Misc template cleanup, and add generated files.

* README cleanup

* Analyzer fix

* Autoformat

* Misc repo check fixes

* Roll back Gradle and AGP version for macOS CI

* Delete unneeded template files

* Adjust READMEs

* Add integration test issue reference

* Remove obsolete workaround from CI

* Revert script change that doesn't belong here

* Revert autoformat that belongs to a later PR

* Autoformat
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
…ter#2809)

* Add README explaining structure

* Initial test plugin; unchanged from template

* Initial seconday test plugin; unchanged from template

* Misc template cleanup, and add generated files.

* README cleanup

* Analyzer fix

* Autoformat

* Misc repo check fixes

* Roll back Gradle and AGP version for macOS CI

* Delete unneeded template files

* Adjust READMEs

* Add integration test issue reference

* Remove obsolete workaround from CI

* Revert script change that doesn't belong here

* Revert autoformat that belongs to a later PR

* Autoformat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App needs tests override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: pigeon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants