-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[MAINTENANCE] Enable run_id
overrides for Checkpoint
and ValidationDefinition
#9760
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
) -> ExpectationSuiteValidationResult: | ||
validator = Validator( | ||
batch_definition=self.batch_definition, | ||
batch_parameters=batch_parameters, | ||
result_format=result_format, | ||
) | ||
results = validator.validate_expectation_suite(self.suite, suite_parameters) | ||
results.meta["run_id"] = run_id |
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 should never be looking into meta
- this should be changed
@@ -95,7 +95,7 @@ def render( | |||
): | |||
# Gather run identifiers | |||
run_name, run_time = self._parse_run_values(validation_results) | |||
expectation_suite_name = validation_results.meta["expectation_suite_name"] | |||
expectation_suite_name = validation_results.suite_name |
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.
New top level property allows this to be a much safer retrieval
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9760 +/- ##
===========================================
- Coverage 82.69% 82.68% -0.01%
===========================================
Files 512 512
Lines 46901 46902 +1
===========================================
- Hits 38783 38782 -1
- Misses 8118 8120 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Users should be able to pass a custom
run_id
for validation workflows.PR also contains some misc fixes around metadata to enable proper rendering. Finally, there is an update to the type annotation of
Checkpoint
to suppress a warning we see in the root validator ofEmailAction
(not the best practice but we'll return to resolve this soon).invoke lint
(usesruff format
+ruff check
)For more information about contributing, see Contribute.
After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!