-
Notifications
You must be signed in to change notification settings - Fork 136
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
DO NOT MERGE: Dummy change to trigger Dangermattic #12866
Conversation
As part of testing #12859
Generated by 🚫 Danger |
@iangmaia any idea why the bug that happened on WCiOS 14265 didn't happen here?
I'd thus expect the run of Dangermattic in its old version to have the same issue as with WCiOS 14265, and only have it disappear if I rebased this draft PR on top of your #12859 to get the fix…? |
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
Oof, I think I know what's happening. When running the Danger task, we first make sure Danger and Dangermattic are installed: gem install danger -v 9.5.0 --conservative
gem install danger-dangermattic -v 1.1.2 --conservative And then we run Danger on that specific version... but I believe the Dangermattic version will just be the latest one installed? danger _9.5.0_ --fail-on-errors\=true --danger_id\=pr-check So once a newer Dangermattic version has been installed, it seems it will always be used? 🤔 |
So you mean that's the same root as the bug that was discussed recently in p1730741535335339/1730740658.524069-slack-C02KLTL3MKM about Dangermattic using the latest version or I wonder if a potential fix in Dangermattic could be to dynamically create an ad-hoc binstub/wrapper script using |
It's slightly different, as in this case with Rubocop it is a bit easier to workaround as Danger runs Rubocop using a command that we can change, thus "force" a version. When we're talking about runtime dependencies, I think it becomes a bit more complicated. |
Yep, I think this can be a good idea 🤔 and it could also solve the Rubocop issue without having to resort to change the Rubocop command to something like |
This is a dummy PR for testing #12859
trunk
, so that it uses the older version of Dangermattic that doesn't have the fix—expecting it to incorrectly detect the lack of image/video in the descriptionThe below is dummy description extracted from PR https://github.com/woocommerce/woocommerce-ios/pull/14265 that contained videos that were not detected as such by the older Dangermattic version
Typing invalid value
ScreenRecording_10-30-2024.16-23-27_1.MP4
Scanning invalid value
ScreenRecording_10-30-2024.16-28-55_1.MP4