Skip to content

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Jun 13, 2025

xcode-analyze CI command handles catching code-level warnings. Allow warnings during pod lib lint command since it's redundant and we have fewer knobs to turn there.

See flutter/flutter#170437 (comment)

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Footnotes

  1. 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 3

@stuartmorgan-g
Copy link
Collaborator

Wouldn't this also allow warnings that are podspec-level warnings rather than code-level warnings?

In pratice, if things don't fail CI, people almost never look at the output, so "allow warnings" is, from the standpoint of preventing landing mistakes, essentially equivalent to "don't report warnings at all. I don't know offhand what the scope of things that cocoadpods itself reports as errors vs warnings, so I don't know what non-code-analysis coverage we would lose here.

Do we think this is better than --quick? I would guess it's likely worse, and is definitely going to be more expensive.

@jmagman
Copy link
Member Author

jmagman commented Jul 28, 2025

Do we think this is better than --quick? I would guess it's likely worse, and is definitely going to be more expensive.

@vashworth says:

It seems that --quick doesn't really catch many issues other than some syntax (e.g. incorrect file structure, incorrect dependencies, etc, are not caught)
flutter/flutter#170437 (comment)

Copy link
Contributor

@vashworth vashworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jmagman
Copy link
Member Author

jmagman commented Aug 4, 2025

I have a better idea: flutter/flutter#170437 (comment)
Making this a draft until I test that out.

@jmagman jmagman marked this pull request as draft August 4, 2025 23:22
@auto-submit auto-submit bot closed this in #9746 Aug 5, 2025
bparrishMines pushed a commit to bparrishMines/packages that referenced this pull request Aug 5, 2025
…flutter#9746)

Xcode 26 is showing deprecation usage as warnings: flutter/flutter#170437. These warnings are causing `podspec-check` to fail as these warnings are being treated as errors.
To unblock testing Xcode 26 in CI, exclude the existing `exclude_xcode_deprecation` packages from the podspec check command.

Currently used here:
https://github.com/flutter/packages/blob/83ae18a4faf6cbd18138d6fe7a20859a28b84166/.ci/targets/ios_platform_tests.yaml#L21
https://github.com/flutter/packages/blob/83ae18a4faf6cbd18138d6fe7a20859a28b84166/.ci/targets/macos_platform_tests.yaml#L18

This isn't a perfect solution, as the podspec check will find more issues than just deprecation warnings (Swift 6 warnings, [for example](flutter/flutter#170439)), and this will prevent any warnings being discovered for these packages. However, I believe it's a better solution than flutter#9428 (not treating warnings as errors for any package) because NEW regression warnings in all other packages can be caught in presubmit.

Closes flutter#9428

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants