[ci] refactor: Cleanup tooling for handling arch build output <= Flutter v3.13.x#11399
[ci] refactor: Cleanup tooling for handling arch build output <= Flutter v3.13.x#11399Gustl22 wants to merge 2 commits intoflutter:mainfrom
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
There was a problem hiding this comment.
Code Review
This pull request updates the Pigeon test runner and the repository's native test tool to utilize dart:ffi's Abi for architecture detection, adding support for Linux RISC-V and ARM64. It also refactors CMakeProject to require an architecture and removes legacy compatibility logic for older Flutter versions. Feedback was provided regarding the architecture detection logic in native_test_command.dart, suggesting an explicit mapping to avoid fragile assumptions when handling multiple architectures.
|
I suspect its test-exempt: Remove code without adding functionality. |
|
test-exempt: is a test (This test code isn't in a standard location that the bot recognizes as a test.)
It does change functionality, and it's not just removing code, so that's not the case here. |
There was a problem hiding this comment.
There remained some code, which was left in to support build output for Flutter <= v3.13.x.
What commit(s) exactly is this referring to? The only code I'm aware of that meets that description (paths without an arch) was already removed. flutter/flutter#141930 appears to be the earliest that this code could possibly be correct, and that a) didn't land until 3.19, and b) wasn't on stable at that point.
Based on the discussion in flutter/flutter#176603 it doesn't appear that this new logic is currently correct for anything but master still. Am I missing something?
I was relating to the commit in this comment (whose issue I mentioned in the issue description): So the actual change was made here: flutter/flutter@792e26d, which was merged to stable for
|
I'm confused; there is no commit in that comment.
And it already doesn't. That's what I was referring to when I said:
What part of this PR do you think is removing support for paths without an arch subdirectory? |
There are linked changes to a PR which was merged in the commit flutter/flutter@792e26d. Sorry, I thought that is obvious.
Are the TODOs you made in the code back then still valid? What should I do differently? |
|
I must admit, I couldn't make it work locally to test it. Google testing is still relying on CMake <3.5. I couldn't reinstall VS 2019 (only 6 GB left). I tried upgrading to a newer googletest version: https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz but then a pointer issue. So I was hoping to simply test it via |
There remained some code, which was left in to support build output for Flutter <= v3.16.x (see: flutter/flutter@792e26d)
As the minimum supported Flutter version is 3.35.x as of
packages/.ci/targets/repo_checks.yaml
Line 31 in eab1265
we can remove the special handling for versions prior v3.16.x.
Contributes to flutter/flutter#129807
Pre-Review Checklist
[shared_preferences]///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2