Skip to content
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

tests: TestCodegenConfigurations projects should fail on warnings #198

Merged

Conversation

calvincestari
Copy link
Member

Fixes apollographql/apollo-ios#3301.

I don't know when this stopped working in our test configuration projects but this behaviour is essential to avoid exposing inconvenience warnings to users projects.

I can't find any mention of why the unsafeFlags configuration no longer works but I do prefer that the flag is now set on the test script command which is more explicit to the workflow we want for the test - reference.

I haven't managed to get the behaviour back for Xcode-based projects yet though.

@calvincestari calvincestari requested a review from a team as a code owner December 13, 2023 02:57
Copy link

netlify bot commented Dec 13, 2023

Deploy Preview for eclectic-pie-88a2ba canceled.

Name Link
🔨 Latest commit 11cea61
🔍 Latest deploy log https://app.netlify.com/sites/eclectic-pie-88a2ba/deploys/6579214af6affb0008613e6d

@calvincestari
Copy link
Member Author

calvincestari commented Dec 13, 2023

As expected the SPM-based test codegen configurations are now failing with the warnings being treated as errors. The next commit will remove the warning and they should then pass CI.

@calvincestari
Copy link
Member Author

..and the test codegen configurations job is now passing, as expected.

Copy link
Member

@BobaFetters BobaFetters left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for doing this!

Copy link
Contributor

@AnthonyMDev AnthonyMDev left a comment

Choose a reason for hiding this comment

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

Not sure at all what to do about the Xcode based projects, but this LGTM for the SPM ones.

@calvincestari calvincestari merged commit b219598 into main Dec 13, 2023
19 checks passed
@calvincestari calvincestari deleted the tests/fix-testcodegenconfigurations-warnings-as-errors branch December 13, 2023 20:16
BobaFetters pushed a commit that referenced this pull request Dec 13, 2023
5cebbac tests: TestCodegenConfigurations projects should fail on warnings (#198)

git-subtree-dir: apollo-ios
git-subtree-split: 5cebbac
BobaFetters pushed a commit that referenced this pull request Dec 13, 2023
…ts should fail on warnings

git-subtree-dir: apollo-ios
git-subtree-mainline: 143d149
git-subtree-split: 5cebbac
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.

Please remove warnings in code
3 participants