-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
Update push.yml to java-version: "17.0" #2679
Comments
@palisadoes making a PR rn. |
What is causing this error? The pushes are failing in another way now: |
I'll take a look |
@palisadoes The issue is that I did not include pubspec.lock file in the PR, and it changes whenever pub get is used. See this is the issue while running pub get in workflow : |
@palisadoes I will make a PR updating pubspec.lock and that should fix this. |
OK |
How can we test for this in future as part of the GitHub action workflow? |
@palisadoes
|
Please add those steps |
which one ? |
Automated one? or 2nd |
Automated. |
@may-tas it should work for both, yaml and lock files. |
Is this okay?
|
@palisadoes I am a bit new to github workflows so do tell me if there is any issue here.
|
we can create temporary branch to stash any changes too like how we doing in pull-request.yml workflow
@may-tas this will fix this issue I think |
@Dante291 yes I saw this in pull-request.yml , this is also a good way. |
@palisadoes |
|
@palisadoes I think currently the approach we are using in pull-request.yml is not sufficient because we are only stashing the changes and not applying it back and committing it.
|
|
@noman2002 PTAL |
@palisadoes what should be done, any updates? |
@noman2002 PTAL |
@may-tas I think we should make a commit if there is any change in pubspec.lock, but we need to add some checks that more than 1 package should not be upgraded in a single PR. |
@noman2002 Most contributors won't be including pubspec.lock file in their PR, so if content-hashes of pubspec.lock change during pub get, which happens rarely , it shouldn't be an issue to make a commit directly. I did not understand what type of check you are talking about. Can you please elaborate a bit? |
Shall I go ahead and make a PR with the changes proposed to the workflow? |
Yes please go ahead. |
Please close this issue if it's resolved, so I can work on new tasks. If there are any concerns, please let me know. |
This needs to be reopened. Your push doesn't add the file to the commit with a Please try again. I'm going to revert your changes to |
Hi @palisadoes, |
|
@palisadoes Oh I see.
|
I think this would be fine. |
In the PR workflow? If it's in the push workflow it'll be too late, we'll have to keep monitoring for failures after merging. It's always best to do this during the PR. Fixing this in the push is the least desirable option |
Yeah we can do this in the PR workflow instead of push workflow. |
@palisadoes
I also came across this : |
Create a PR |
Describe the bug
In a recent PR, we upgraded packages that required an upgrade in the java version of the application. We updated our Pull Request testing workflow, but not the Push workflow that deploys the APK.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
push.yml
is updated to the new Java version and passes.Actual behavior
Screenshots
Additional details
Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship
The text was updated successfully, but these errors were encountered: