-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
CFNV2: remove/rescope CFNV2:Validation errors #12970
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
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 22m 22s ⏱️ - 1h 23m 22s Results for commit d878dfd. ± Comparison against base commit 4464cd2. This pull request removes 4072 and adds 2 tests. Note that renamed tests count towards both.This pull request removes 215 skipped tests and adds 2 skipped tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files 5 suites 33m 23s ⏱️ Results for commit d878dfd. ♻️ This comment has been updated with latest results. |
pinzon
left a comment
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.
LGTM. 👍
Just some minor comments.
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.
It's progress 👍
| snapshot.match("mapping_nonexisting_key_exc", e.value.response) | ||
|
|
||
| @skip_if_v2_provider(reason="CFNV2:Validation") | ||
| @skip_if_v2_provider(reason="CFNV2:Validation replaced with v2 test below") |
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.
we could consider removing this test.
| "Resource provider operation failed: '%s'", | ||
| reason, | ||
| exc_info=LOG.isEnabledFor(logging.DEBUG), | ||
| exc_info=LOG.isEnabledFor(logging.DEBUG) and config.CFN_VERBOSE_ERRORS, |
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.
is this Flag new? I don't see it in the docs
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.
It's not in the docs, we planned it to be mostly for getting more info from support cases. I was getting confused by tracebacks in logs which ones mattered and which didn't.
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.
🎉
Motivation
At time of writing, the CFNV2:Validation errors were the biggest class of errors in the new provider's test suite. This PR attempts to tackle (or at least reassign them) to make the biggest push towards parity.
Since we have made the validator a subclass of the preprocessor, we can now raise
ValidationErrors in the preprocessor which will be turned into proper service exceptions. This is the natural place to put this functionality, but it now can be driven duringCreateChangeSet|CreateStack|UpdateStacki.e. synchronouslyChanges
CFN_VERBOSE_ERRORS=1CFNV2:Transform, sorry @pinzon!)TODO