-
Notifications
You must be signed in to change notification settings - Fork 136
Dangermattic checks update #10692
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
Dangermattic checks update #10692
Conversation
28e714a to
8af6349
Compare
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
4395706 to
100e213
Compare
Generated by 🚫 dangerJS |
Generated by 🚫 Danger |
mokagio
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.
Approving to unblock. The same comments from the Pocket Casts iOS PR apply here, Automattic/pocket-casts-ios#1418 (review), but none of them were blocking.
4249d17 to
6b02b68
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## trunk #10692 +/- ##
============================================
+ Coverage 41.15% 41.45% +0.29%
Complexity 5017 5017
============================================
Files 1023 1016 -7
Lines 58781 58348 -433
Branches 7852 7804 -48
============================================
- Hits 24193 24189 -4
+ Misses 32444 32015 -429
Partials 2144 2144 ☔ View full report in Codecov by Sentry. |
This Danger check was out of place as `WordPress/src/main/res/values/strings.xml` is the source of truth for localizations. Unlike in Apple projects, where we use `genstrings` to find localized strings in the codebase to assemble the `strings` file, in Android, as far as I understand, `<app>/src/main/res/valudes/strings.xml` is the source of truth. I believe this check ended up in `Dangerfile` accidentally. It was introduced in #20132. The update was done across our suite of apps, see for example woocommerce/woocommerce-android#10692 and woocommerce/woocommerce-ios#11926. Given I couldn't find a comment explicitly about adopting this check, I guess neither @iangmaia nor myself notice the same pattern as iOS was adopted in the Android repo. To reinforce the idea that this check is out of place, notice that WooCommerce Android does not implement the check. _Of course, it could be that WooCommerce is wrong, but lacking code to update `strings.xml` as part of the code freeze process, that explanation is not satisfying._
This PR adapts the
Dangerfileto the latest Dangermattic version, using newly added plugins, adapting the code as needed and implementing a few improvements.The main changes:
github_utilsplugin instead of locally declared functionsReleaseslabeldanger-dangermatticGemTesting
The main validation is to make sure CI is 🟢.
To run Danger yourself:
bundle installYou should get in the console the same errors / warnings reported in the PR.