-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[Android] Fix integration test to check if dev dependencies are removed from release builds + address no non-dev dependency plugin edge case #161826
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
Conversation
…sting sections, get rid of line space in flutter.groovy
| final RegExp regExpToMatchDevDependencyPlugin = RegExp( | ||
| r'--- project :dev_dependency_plugin', | ||
| ); | ||
| final RegExp regExpToMatchDevDependencyPluginWithTransitiveDependencies = RegExp( | ||
| r'--- project :dev_dependency_plugin\n(\s)*\+--- org.jetbrains.kotlin.*\s\(\*\)\n(\s)*\\---\sio.flutter:flutter_embedding_' + | ||
| buildMode, | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's any feedback on the regex I used please let me know! My intention was to make the check for release builds much looser in case the dev dependency is included in some way we don't expect. The other builds should always include the dev dependency plugin that depends on the Flutter embedding and because the default language is Kotlin (I think?), the Kotlin plugin as well.
I can include sample outputs here if helpful for review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable for now.
|
Sorry didn't mean to leave this as a draft :) |
matanlurey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I did not have a chance to try this locally but I trust you did :)
These look like "good" failures (https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8724551273408643713/+/u/run_test.dart_for_tool_tests_shard_and_subshard_commands/stdout), that is, they would be fixed by #160289. |
|
Hmm but I merged this PR with that one to get those failures? Can you elaborate on why you think it might have fixed that failure? |
Shoot, I mis-remembered patching those tests to read from the right directory. I'll send you a PR instead. |
…#162289) @camsim99 discovered these would fail here: #161826 (comment). This fixes in preparation for the flag flipping, and also fixes a bug in resolving `synthetic-package` I missed (it _can't_ be true if `--explicit-package-dependencies` is set).
|
Updated #162262 to check out the state of things before landing. Specifically wanna debug https://github.com/flutter/flutter/pull/162262/checks?check_run_id=36373107100. I tested on Update: there are failures but I'm confident this change needs to land anyway and the ones I'm concerned about passed on this PR. |
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
…re removed from release builds + address no non-dev dependency plugin edge case (flutter/flutter#161826)
Makes the following change to fix the case where dev dependencies are stripped in apps that only contain dev dependencies:
Makes the following changes to correct + improve the integration test that checks if dev dependencies are stripped from release builds:
./gradlew app:dependencies(see more details on this call) instead of the classes included in the APK. Checking the APK was leading us astray because it appears obfuscation occurs for release builds.Fixes #161780.
Pre-launch Checklist
///).