-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[dg] Fail on dagster-dg version less than dagster version (BUILD-1041) #29505
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
This stack of pull requests is managed by Graphite. Learn more about stacking. |
b1eaa15 to
f005d06
Compare
7115b58 to
bc9aa28
Compare
f005d06 to
4022708
Compare
10db195 to
54187a2
Compare
4022708 to
6d831b4
Compare
54187a2 to
c4e63c4
Compare
6d831b4 to
f743661
Compare
c4e63c4 to
8c10dc6
Compare
424530f to
3ab6f73
Compare
gibsondan
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.
Implementation seems fine but i'm worried the error isn't clear enough about what's happening
| if dagster_dg_version < minimum_dagster_dg_version: | ||
| exit_with_error( | ||
| f""" | ||
| dagster-dg version is incompatible with the installed version of dagster. |
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 think the copy here could be wordsmithed a bit. This reads to me like a problem with the venv in which dg is running, as opposed to a compatibility problem between two different venvs.
3ab6f73 to
b258773
Compare
8c10dc6 to
5bbe1e2
Compare
| if dagster_dg_version < minimum_dagster_dg_version: | ||
| exit_with_error( | ||
| textwrap.dedent(f""" | ||
| Current `dg` version is incompatible with `dagster-components` version in the resolved environment. |
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.
Can we drop the reference to dagster-components CLI entirely, or at least in the preamble? That feels like an implementation detail and IMO reads at first like it refers to a separate dagster-components package.
Current dg version is incompatible with dagster version in the resolved environment.
dgcommunicates across a process boundary withdagster. Found versions:
(Maybe this is a reason to rename the dagster-components entrypoint entirely)
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.
Yeah changed it-- we should probably just fold dagster-components onto a dg-server subcommand of dagster or something.
b258773 to
aebd2fe
Compare
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
aebd2fe to
2622ef1
Compare
#29505) ## Summary & Motivation Exit with an error when the `dg` version is less than the dagster in the in-scope environment. We have to transform the "core version" of `dagster` to a "library version" in order to perform the comparison. The check is run whenever we spawn a `dagster-components` subprocess. ## How I Tested These Changes New unit tests. ## Changelog `dg` will now fail with an error message if it's version is below the minimum supported version for the version of `dagster` in your environment. --------- Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>

Summary & Motivation
Exit with an error when the
dgversion is less than the dagster in the in-scope environment. We have to transform the "core version" ofdagsterto a "library version" in order to perform the comparison.The check is run whenever we spawn a
dagster-componentssubprocess.How I Tested These Changes
New unit tests.
Changelog
dgwill now fail with an error message if it's version is below the minimum supported version for the version ofdagsterin your environment.