-
Notifications
You must be signed in to change notification settings - Fork 213
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
fix(deps): upgrade cfn-lint range #838 #839
Conversation
I don't see any reason the static analysis would fail on this. I'm OOTO today but will merge and cut a new release tomorrow. Thank you very much for the PR! ❤️ |
+1 thanks @dhutchison! |
Thanks that was super fast.... Yeah I saw those same errors on pre-commit, but not an area that I was remotely close to so had skipped over them. Might be worth trying running all the checks/tests yourself locally ahead of merge as something seems off with the pre-commit checks to me. |
Actually sorry, hold that. So the pylint failure prevents it getting as far as the local unit tests. I was seeing one failing due to a missing dependency, but adding that in manually exposes some test failures, so I'll take this back to draft. Might be something I'm missing, but I had to manually install this into my venv to get tests to run
|
cfnlint.core no longer exposes REGION, but it has always been available through helpers
b9b2314
I've added a few changes to the pylint and pre-commit configurations to skip over the existing failures (assuming these are caused by changes in pylint as not pinned to an exact version). Also increased the minimum cfn-lint version by a few minors to one that the tests pass on. Still trying to work through tests on the newer cfn-lint. Getting a weird error that I can't see how is caused by how taskcat is using it
|
26b45d7
to
e2ac815
Compare
Well that was a bit of a journey through the history of I would appreciate if someone could double check the removal of the This PR also makes a few changes to |
Thanks for this PR @dhutchison ;) @andrew-glenn Any chance you can merge this? I can't run |
Yup. I'll sort this out in the morning. Expect a new release tomorrow. (Yeah, I know I said that earlier in this PR. I set a reminder in slack this time) |
/do-e2e-tests |
End to end test has been scheduled |
E2E tests in progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E2E tests completed successfully
That's all she wrote for this one. I want to release this with #840, FYI. |
# In 0.x, it only returned the loaded configuration. | ||
# https://github.com/aws-cloudformation/cfn-lint/blob/f006cb5d8c7056923f3f21b31c14edfeed3804b5/src/cfnlint/config.py#L730 | ||
# | ||
# This causes issues for us as the get_rules method combines the supplied value with the default rule list, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Overview
Widens the dependency range for cfn-lint to include the latest 1.x releases for #838.
Testing/Steps taken to ensure quality
Assuming existing test suite would pick up any incompatibilities with the newer versions.
This has been tested by installing pinned versions of cfn-lint for 0.80.1, 1.3.1 and the latest 1.16.0, and running pytest each time. An incompatibility was found with the first non-pre-release 1.x version (1.3.0), as it seemed to be missing the method to actually run checks (I'm assuming that was a regression).
Although I did have trouble running these locally initially - I think I'm just missing something and possibly the contributor guide needs updated to include steps to ensure the local environment is configured correctly and tests run locally.
Testing Instructions
How to test this PR Start after checking out this branch (bulleted)
andrew-glenn edit: fixes #838