-
-
Notifications
You must be signed in to change notification settings - Fork 208
feat: Upgrade various dependencies and fix warnings #824
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
Thanks for opening this pull request!
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #824 +/- ##
==========================================
- Coverage 16.38% 16.36% -0.02%
==========================================
Files 47 47
Lines 2899 2902 +3
==========================================
Hits 475 475
- Misses 2424 2427 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Why is the CI trying to use old pkgs? |
For example, the Dart package uses dio: ^5.0.0, but the Flutter package uses dio: ^4.0.6, and we also use the parse_server_sdk: ^3.1.13 package, and this version uses dio: ^4.0.6. They have conflict. In CI, which is in this section, it uses parse_server_sdk at the local level and it is completely in the configuration. |
My suggestion is to first give a new version in the Dart version with dio: ^5.0.0 and then give this new version for the Flutter version. Regardless of CI errors |
This is how we'd usually do it, as you described:
That should work fine. The question is why do we need the script that uses the local version of dart? For example, if a new feature requires changes in dart and flutter, both changes can be developed locally. The developer wants to run tests locally using the script. Then a PR needs to be opened for dart, and a separate PR for flutter. In both PRs the script should not run in the GitHub CI. So the solution could be to never run the script in the CI but provide it for the developer to manually run locally. Where is that script called? |
I agree with you, there should not be two ways, In my opinion too, this should be left to the developer In this script, in line 9, the library corresponding to the pubdev version is deleted and in line 10, the local library is connected, which will check the local version |
I bumped the Dart version, I think it is ready for merge |
# Conflicts: # packages/dart/CHANGELOG.md
Could you take a look at #831? I've removed the script from the CI so if we merge that first, the tests should pass in this PR I guess. |
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.
The coverage test is failing here. I think there is an issue in the CI, I'll take a look...
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.
Codecov is failing due to lower coverage it seems. We can still merge I guess.
- Bumped version to 4.0.0 due to breaking change with dio 5.x upgrade
- Added breaking change note to changelog
There are some flutter changes left in:
- packages/flutter/lib/src/utils/parse_live_list.dart
- packages/flutter/lib/src/utils/parse_live_grid.dart
- packages/flutter/example_livelist/lib/main.dart
Could you revert these, so we can merge and release the dart package?
@mtrezza |
I think we can, I was a bit hesitant because we have 2 packages that we - until now - always have released when the commit was made on that specific package. Now we're making dart commits while flutter hasn't been released yet. It's a change of process, so I was worried about the version tags, etc. But I think it should be fine, do you see any concerns? |
why not when a tag is created? I have a package that gets published automatically when I create a tag for a commit. My publish.yml name: Publish to pub.dev
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: 📚 Git checkout
uses: actions/checkout@v3
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
- name: 📦 Install dependencies
run: dart pub get
- name: 🚀 publish
run: dart pub publish --force
- name: 🚀 Create release from tag for github releases
uses: ncipollo/[email protected]
with:
tag: ${{ github.ref_name }} |
We can modify my publish.yml to fit this project |
I don't think so, because the Flutter version will be released after the Dart version, so there is no need to worry |
We have that as well, see our workflow. In the long run we want to automate releasing like we already do with other repos (e.g. Parse Server). Since this here is a monorepo it's more complicated. Looking forward to monorepo release automation, I had some concerns, but let's release this for now, I think we should be good. |
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.
Looks good!
New Pull Request Checklist
Issue Description
All versions and packages have been updated to the latest version and warnings have been resolved
Closes: #821
Approach
n/a
TODOs before merging