-
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
[dagster-azure] Generate URL from compute log manager #26171
base: dpeng817/azure_computelogmanager_tests
Are you sure you want to change the base?
[dagster-azure] Generate URL from compute log manager #26171
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. |
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.
lgtm, but will review the upstack pr before approving this one to get a better understanding.
9edb670
to
bdb2dc3
Compare
...ion_tests/test_suites/dagster-azure-live-tests/integration_tests/test_compute_log_manager.py
Show resolved
Hide resolved
ea77c4b
to
f4b793c
Compare
bdb2dc3
to
4bdfc9c
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.
lgtm, i am a bit icky about the usage of stderr but seems to be par for the course
- docstring for show_url_only
...ion_tests/test_suites/dagster-azure-live-tests/integration_tests/test_compute_log_manager.py
Show resolved
Hide resolved
@@ -78,7 +78,9 @@ def __init__( | |||
prefix="dagster", | |||
upload_interval=None, | |||
default_azure_credential=None, | |||
show_url_only=True, |
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.
update doc string to mention the show_url_only parameter
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.
let's amend the description at least, so that we know that there wasn't an implementation bug.. I think the previous test just assigned the wrong blob to the wrong io type.
f4b793c
to
3449d97
Compare
4bdfc9c
to
852b151
Compare
assert stdout.count("Printing without context") == 10 | ||
assert stderr.count("Logging using context") == 10 |
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 stdout/stderr assertions are reversed from the original test. The original test expects stdout
to contain "Logging using context" and stderr
to contain "Printing without context". The current assertions have these swapped. This should be:
assert stdout.count("Logging using context") == 10
assert stderr.count("Printing without context") == 10
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
Summary & Motivation
See comments for additional context.
This PR changes the Azure compute log manager to generate a URL by default instead of capturing the logs.
There's a few considerations here:
How I Tested These Changes
Switches the tests to pull out the stdout/stderr urls and read the results.