-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[components] Add windows testing to dagster-dg (BUILD-672) #27537
base: graphite-base/27537
Are you sure you want to change the base?
[components] Add windows testing to dagster-dg (BUILD-672) #27537
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
c5f92c5
to
9894ca5
Compare
0ad8ae0
to
81af794
Compare
7dbac06
to
9995d6c
Compare
81af794
to
594bc15
Compare
|
||
venv_bin = Path.cwd() / ".venv" / "bin" | ||
with modify_environment_variable( | ||
"PATH", os.pathsep.join([str(venv_bin), os.pathsep, os.environ["PATH"]]) |
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.
The PATH
construction has an extra separator due to os.pathsep
being included in the join list. This creates paths like /venv/bin::/usr/bin
with double separators. The correct construction should be:
os.pathsep.join([str(venv_bin), os.environ['PATH']])
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
9995d6c
to
f13115a
Compare
f4597f5
to
a17e230
Compare
def test_join_path(): | ||
from pathlib import Path | ||
|
||
my_path = Path("foo/bar") | ||
updated_path = my_path / "baz" | ||
print(updated_path) | ||
assert False | ||
|
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 test appears to be a debugging function that was inadvertently committed. It contains a forced failure (assert False
) and debug print statements, suggesting it was used to investigate Path
joining behavior. Consider removing this test or converting it into meaningful test coverage if path joining behavior needs verification.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
2ea7cd6
to
d56aef2
Compare
def _get_path(self, key: tuple[str, ...]) -> Path: | ||
my_path = self._root_path | ||
for k in key: | ||
my_path = my_path / k | ||
return Path(self._root_path, *key) |
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.
The code builds a path in my_path
but then returns a new Path
object constructed from self._root_path
and key
. This appears to be unintentional - the return value should be my_path
since it represents the same path being constructed.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
6d6358f
to
c72b34d
Compare
a14eedf
to
f994711
Compare
5f7a006
to
0ffd2a2
Compare
9679ca7
to
0aff97e
Compare
0ffd2a2
to
b3b82c4
Compare
0aff97e
to
0994542
Compare
b3b82c4
to
d2046a1
Compare
0994542
to
608c006
Compare
d2046a1
to
48f6492
Compare
608c006
to
cdf9c8d
Compare
8841273
to
e2d78a6
Compare
cdf9c8d
to
25c7c84
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.
Wow thanks for powering through this.
This PR is definitely spooky in terms of the amount of complextiy we are going to have to manage here. Does this also give us any pause as to the multi-process nature of dg dev
?
Adding @gibsondan so that he has eyes on this.
I don't think so-- that's essential to reap the benefits of different Python environments per code location. There's a lot in this PR but the added complexity is mostly at the test level. |
e2d78a6
to
d3c450d
Compare
25c7c84
to
fb67fa3
Compare
fb67fa3
to
bd8f823
Compare
d3c450d
to
f5a7070
Compare
Summary & Motivation
dagster-dg
is currently broken on Windows. I found this out by trying to add Windows testing. This PR fixesdg
for Windows and adds Windows testing.dagster-dg
.Path
and don't contain embedded "/"dg dev
How I Tested These Changes
Test suite now passes on Windows.