-
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
[ext] asset check support #16466
[ext] asset check support #16466
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
65300f9
to
fff8e40
Compare
Deploy preview for dagster-docs ready! Preview available at https://dagster-docs-13t56anvn-elementl.vercel.app Direct link to changed pages: |
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit fff8e40. |
Deploy preview for dagit-storybook ready! ✅ Preview Built with commit fff8e40. |
c9cb902
to
9a9fd7d
Compare
9a9fd7d
to
b4eeea4
Compare
fb4d9c7
to
736aa11
Compare
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.
I would like to unify the language between ext and our internal contexts (and in fact implement the same interface cc: @jamiedemaria ). Right now ext is report
and mainline dagster is add
. They have slightly different semantics (streaming versus not) which is unfortunate.
output_def | ||
for output_def in output_defs | ||
if not context.has_asset_check_result_for_output(output_def.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.
X
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.
sketchy 🙂
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.
how do we solve for materialization?
@@ -644,6 +644,15 @@ def asset_checks_def_for_node( | |||
def asset_checks_defs(self) -> Iterable[AssetChecksDefinition]: | |||
return self.asset_checks_defs_by_node_handle.values() | |||
|
|||
def get_asset_check_for_output_name(self, output_name: str) -> Optional[AssetCheckHandle]: |
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.
I don't think output names are unique across the asset layer
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.
instead I would use check_handle_by_node_output_handle
, looks like you could get a node output handle in the callsite
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.
requesting changes based on johann's feedback. need to add test case with a more expansive asset graph
## Summary & Motivation Add `check_results` and `data_version` to `MaterializeResult`. This supports streaming asset check results back from an ext process added upstack in #16466. ## How I Tested These Changes New unit test.
## Summary & Motivation Add `check_results` and `data_version` to `MaterializeResult`. This supports streaming asset check results back from an ext process added upstack in #16466. ## How I Tested These Changes New unit test.
## Summary & Motivation Add `check_results` and `data_version` to `MaterializeResult`. This supports streaming asset check results back from an ext process added upstack in dagster-io#16466. ## How I Tested These Changes New unit test.
1b8e161
to
7b751f0
Compare
90fbb88
to
6d635e3
Compare
7b751f0
to
3ddca01
Compare
61d2116
to
82e09c3
Compare
3ddca01
to
29be4e6
Compare
82e09c3
to
47acf2c
Compare
29be4e6
to
aa823ea
Compare
47acf2c
to
762811c
Compare
aa823ea
to
ca5bead
Compare
762811c
to
9a7b448
Compare
ca5bead
to
f7e7db7
Compare
9a7b448
to
8efbe63
Compare
f7e7db7
to
f9df422
Compare
8efbe63
to
979cbc7
Compare
f9df422
to
ff22cfe
Compare
979cbc7
to
d884d4b
Compare
ff22cfe
to
5fb6053
Compare
d884d4b
to
f7f8147
Compare
04fa87e
to
c024041
Compare
I think we're there now |
c024041
to
ac57648
Compare
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.
This is great
Summary & Motivation
Add support for asset checks to
dagster-ext
.report_asset_check_result
method onExtContext
MaterializationResult
objects generated byExtOrchestrationContext
How I Tested These Changes
New unit test.