-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Analyzer doesn't error on legacy libraries #50694
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
Comments
I am about to go on vacation, so I wanted to provide a status update. I have a CL that will cause an error to be produced, but it turns out to be fairly breaking.
I am working to resolve the issues. Advice for how to handle the co19 failures is welcome. |
I've started creating some creating issues for those failures, and have added links in the comment above. |
One more issue: Don't we want to remove the
|
I wonder if we might need temporary support for downgrading this to a warning when That's what we had proposed in the original tracking issue #49925 The CFE already supports it:
|
It looks like we might be able to temporarily disable these just using ignores?
|
Thanks. I'd already created one for Flutter and have talked to @sigmundch about the
Yes. I wanted to address the breaking changes in one CL and other changes in a follow-on CL.
The analysis server (and hence
Yes, and I did that for the set of diagnostics that prevented the SDK from being built, but then I found many more. An alternative that Phil and I came up with is to change |
These failures can be approved, just file an issue (maybe assign to me or @eernstg ) for us to figure out how to deal with them.
Is the support in place to patch this on the roll? Otherwise this CL will break our internal roll, right?
This seems like a reasonable alternative. |
@bwilkerson did we come to approach to this issue that you feel comfortable with? |
I think so. I tried to run the bots this morning to see where we were on this issue, but they failed with a "patch failure" (what ever that means), so I'll need to try again later. |
Thanks @bwilkerson. @whesse do you know anything about the "patch failure" error? |
@bwilkerson I think the problem is that there is a merge conflict, so you need to rebase the CL to get the tests to run? |
Patch failure error is something different, that just @bwilkerson and others are working on. Patch support for internal rolls refers to our tip-of-tree builds of Dart, engine, and framework together, called monorepo (and the legacy is called HHH). This is running on both our Dart CI and Golem, and will break when a change to the SDK breaks engine and needs a manual roll with changes to engine. There was a legacy system to register these engine patches, but it is not working well any more. The patch support on monorepo is not there - only deps changes get patched into tip-of-tree monorepo builds. The patch support of the old system may be working slightly, but I wouldn't rely on it. I would suggest getting a tip-of-tree monorepo checkout, and testing the SDK and engine CL and PR together on it. |
OK, the patch failure on the bots is just about a rebase being required, unless it is down in the guts of the SDK build where library patches are applied to the SDK core libraries. |
Thank you as always @whesse and @mit-mit. Hope this helps unblock you @bwilkerson! |
I have a CL that passes all the checks (https://dart-review.googlesource.com/c/sdk/+/276800). I need a couple more reviews, so I added some reviewers that are still within their work hours. @mit-mit If the added reviewers don't have a chance to review the CL before the end of the day here, and if there are folks in AAR that could look at it, then we could potentially get it landed sooner. |
The CL has landed. As long as it doesn't need to be reverted, we should be able to close this issue. |
Confirmed working in a local build:
|
Repro steps with current
main
:Add
// @dart=2.9
in that fileExpected result: an error
Actual result: two infos
The text was updated successfully, but these errors were encountered: