-
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
[external-assets] Build base asset jobs using AssetGraph #20227
[external-assets] Build base asset jobs using AssetGraph #20227
Conversation
a3983e7
to
8ecfe36
Compare
2f5ded7
to
f5a18c0
Compare
8ecfe36
to
61f2d54
Compare
6e9f0d2
to
3320908
Compare
61f2d54
to
7da9c0f
Compare
3320908
to
0faa6b0
Compare
7da9c0f
to
a636256
Compare
0faa6b0
to
6a08c42
Compare
a636256
to
d61c5bf
Compare
6a08c42
to
7ff96a5
Compare
77b327a
to
4d232d2
Compare
7ff96a5
to
0b9554c
Compare
4d232d2
to
87d4d8f
Compare
0b9554c
to
e953bd4
Compare
87d4d8f
to
d0aaa70
Compare
e953bd4
to
f54d8d2
Compare
ec160de
to
9b18924
Compare
f2fca55
to
a92823f
Compare
9b18924
to
86ebf75
Compare
a92823f
to
ae24e81
Compare
86ebf75
to
06e3dba
Compare
c89e7a3
to
aa172c5
Compare
aa172c5
to
388323d
Compare
96c8dd2
to
aca467d
Compare
388323d
to
12501b8
Compare
def res_upstream(context): | ||
return context.resources.foo | ||
|
||
@asset(required_resource_keys={"foo"}) | ||
@asset |
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.
Tests using this were looking for res_midstream
to be flagged specifically in the error message, when the same error would be thrown for all res_upstream
, res_downstream
as well. The reason the test did not previously fail is that res_midstream
was incidentally being processed first, so that's where the error was.
The adjustment to base asset job creation in this PR causes res_midstream
to no longer be processed first (which does not matter), but broke this test. Therefore I removed the required_resource_keys
on res_upstream
/res_downstream
, as this fixed the failing test and none of the other tests using these assets actually depends on res_upstream
/res_downstream
having these req'd keys.
aca467d
to
7408446
Compare
12501b8
to
8ce31aa
Compare
7408446
to
f104d31
Compare
8ce31aa
to
0138965
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.
f104d31
to
1c30a6b
Compare
0138965
to
bff9f3d
Compare
bff9f3d
to
6674779
Compare
## Summary & Motivation Reap some benefits of the new `AssetGraph`. Construct the base jobs for a repository from the asset graph instead of lists of assets and checks. ## How I Tested These Changes Existing test suite.
Summary & Motivation
Reap some benefits of the new
AssetGraph
. Construct the base jobs for a repository from the asset graph instead of lists of assets and checks.How I Tested These Changes
Existing test suite.