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

[rfw] Run tests for package:rfw on stable as well. #888

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

Hixie
Copy link
Contributor

@Hixie Hixie commented Feb 17, 2022

For non-master-channel builds, the run_tests.sh script runs but
doesn't bother checking the actual coverage, since I expect Dart's
coverage logic to diverge in master and so we'd have to have
per-channel covered line counts, and that way lies madness.

No version change: Only affects how tests are run, not a public-facing change.
No CHANGELOG change: Only affects how tests are run, not a public-facing change.

@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 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.

@stuartmorgan
Copy link
Contributor

See also #886, where I'm turning on the missing unit tests on stable, but had to exclude rfw because of goldens. I don't know if you want to do something more clever within the rfw tests themselves to only exclude the goldens?

@Hixie
Copy link
Contributor Author

Hixie commented Feb 18, 2022

-    print('Tests passed. (Coverage verification skipped; not on master channel.)');
+    print(
+        'Tests passed. (Coverage verification skipped; not on master channel.)');

@Hixie
Copy link
Contributor Author

Hixie commented Feb 18, 2022

See also #886, where I'm turning on the missing unit tests on stable, but had to exclude rfw because of goldens. I don't know if you want to do something more clever within the rfw tests themselves to only exclude the goldens?

any idea why the tests didn't fail? i didn't do anything to avoid stable for the goldens...

@stuartmorgan
Copy link
Contributor

i didn't do anything to avoid stable for the goldens...

I did, it's just ugly:
https://github.com/flutter/packages/pull/886/files#diff-62587956f943bb2503db7bc6dd27d0d888074a1c0ecaab3f570ad611aff0f7bbR84-R90

@Hixie
Copy link
Contributor Author

Hixie commented Feb 18, 2022

right but that hasn't landed yet, right? so why did my precommits not fail?

@stuartmorgan
Copy link
Contributor

Oh, your precommits are fine because of flutter/flutter#97233 (which is why my PR is fixing).

@Hixie
Copy link
Contributor Author

Hixie commented Feb 18, 2022

oh, haha. Ok let me figure out some way to skip the tests properly. in the meantime feel free to land 866.

For non-master-channel builds, the run_tests.sh script runs but
doesn't bother checking the actual coverage, since I expect Dart's
coverage logic to diverge in master and so we'd have to have
per-channel covered line counts, and that way lies madness.

No version change: Only affects how tests are run, not a public-facing change.
No CHANGELOG change: Only affects how tests are run, not a public-facing change.
@Hixie
Copy link
Contributor Author

Hixie commented Feb 18, 2022

@stuartmorgan PTAL

Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM

exit(1);
}

if (Platform.environment['CHANNEL'] != 'master') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you want the "no channel set" condition here as well for local runs?

@stuartmorgan
Copy link
Contributor

@Hixie Is this waiting on something to land?

@Hixie
Copy link
Contributor Author

Hixie commented Mar 22, 2022

Sorry, other efforts took my attention away from my PRs. I'll return to them in due course. Feel free to land this for me in the meantime if you want (looks like it'll need merging first).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants