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

ci: fail tests on warnings #3248

Merged
merged 16 commits into from
Jul 20, 2023
Merged

ci: fail tests on warnings #3248

merged 16 commits into from
Jul 20, 2023

Conversation

hoffa
Copy link
Contributor

@hoffa hoffa commented Jul 7, 2023

Issue #, if available

Description of changes

Ensure warnings fail our tests so we can catch deprecations (and other potential issues) early.

Had to change to pytest.warns as otherwise the test would fail due to the warning.

Description of how you validated changes

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hoffa hoffa changed the title ci: add error to pytest filterwarnings ci: fail tests on warnings Jul 7, 2023
@hoffa hoffa marked this pull request as ready for review July 13, 2023 19:36
@hoffa hoffa requested a review from a team as a code owner July 13, 2023 19:36
@hoffa hoffa enabled auto-merge (squash) July 13, 2023 19:37
@hoffa hoffa marked this pull request as draft July 13, 2023 19:38
auto-merge was automatically disabled July 13, 2023 19:38

Pull request was converted to draft

@hoffa
Copy link
Contributor Author

hoffa commented Jul 13, 2023

Tests will be fixed by #3257.

@hoffa hoffa marked this pull request as ready for review July 14, 2023 22:33
@hoffa hoffa enabled auto-merge July 14, 2023 23:15
@hoffa hoffa disabled auto-merge July 20, 2023 21:28
@aaythapa aaythapa enabled auto-merge (squash) July 20, 2023 22:15
@aaythapa
Copy link
Contributor

Thank you for the contribution!

@aaythapa aaythapa merged commit dc5a43f into develop Jul 20, 2023
8 checks passed
@aaythapa aaythapa deleted the hoffa-patch-1 branch July 20, 2023 22:20
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.

None yet

3 participants