-
Notifications
You must be signed in to change notification settings - Fork 329
Bug 1862794 - Use function calls instead of const val for version and channel fields in Gecko object. #4346
Conversation
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.
Your change looks pretty harmless, let's merge it asap so we can test out your theory! 🤞
This pull request has conflicts when rebasing. Could you fix it @kycn? 🙏 |
This pull request has conflicts when rebasing. Could you fix it @kycn? 🙏 |
We will need a parallel changes to https://github.com/mozilla-mobile/relbot/blob/master/src/util.py#L77 and https://github.com/mozilla-mobile/relbot/blob/master/src/util.py#L93. The best way to test this would be to use a local fork of firefox-android and replace the github workflow with your fork relbot changes and force the github action to run with an older version of GV in Gecko.kt. |
This pull request has conflicts when rebasing. Could you fix it @kycn? 🙏 |
This pull request has conflicts when rebasing. Could you fix it @kycn? 🙏 |
… channel fields in Gecko object. Gradle sometimes does not fetch the GeckoView version stated in Gecko.kt file. This may be due to the combination of Gradle's compile avoidence feature and our use of ComponentsDependencies object. As the changes for GeckoView versions occur in Gecko.kt file and there's no change in DependenciesPlugin.kt file, Gradle sometimes does not recognize the changes in Gecko.kt file while parsing gradle files for fetching the changed library versions. To overcome this problem and make sure Gecko.kt file is always evaluated/parsed while Gradle sync operation is executed, the version and channel are no longer const val (i.e. static) but rather a function call that will have to be executed everytime.
Gradle sometimes does not fetch the GeckoView version stated in Gecko.kt file. This may be due to the combination of Gradle's compile avoidence feature and our use of ComponentsDependencies object. As the changes for GeckoView versions occur in Gecko.kt file and there's no change in DependenciesPlugin.kt file, Gradle sometimes does not recognize the changes in Gecko.kt file while parsing gradle files for fetching the changed library versions. To overcome this problem and make sure Gecko.kt file is always evaluated/parsed while Gradle sync operation is executed, the version and channel are no longer const val (i.e. static) but rather a function call that will have to be executed everytime.
Pull Request checklist
After merge
To download an APK when reviewing a PR (after all CI tasks finished running):
Checks
at the top of the PR page.firefoxci-taskcluster
group on the left to expand all tasks.build-apk-{fenix,focus,klar}-debug
task you're interested in.View task in Taskcluster
in the newDETAILS
section.GitHub Automation
https://bugzilla.mozilla.org/show_bug.cgi?id=1862794