Skip to content
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]: AzureBlobComputeLogManager provides alternative way to retrieve logs #26982

Closed
wants to merge 1 commit into from

Conversation

mlarose
Copy link
Contributor

@mlarose mlarose commented Jan 9, 2025

Summary & Motivation

External cloud storage based compute log managers are often configured to only collect and show the url. However, in the case of the AzureBlobComputeLogManager, the provided URL will not be clickable if the storage account or container are private, which is a reasonable choice for commercial users using this feature for security and compliance on Dagster+.

This supports these users by providing both a more easily readable path and a clickable shell command to retrieve the log locally.

How this is implemented is by adding new fields to CapturedLogData to pass the path as well as extra azure specific information so that the frontend can render the shell cmd.

Notes to reviewers

How I Tested These Changes

  • dagster dev local (with the AzureBlobComputeLogManager as well as the default log manager to ensure other code paths aren't broken).
  • added testing of new fields in integration tests

Changelog

  • [dagster-azure] AzureBlobComputeLogManager provides alternatives to retrieve logs in private containers.

@mlarose mlarose changed the title [dagster-azure]: Add Azure specific information to captured logs [dagster-azure]: AzureBlobComputeLogManager provides alternative way to retrieve logs Jan 10, 2025
@mlarose mlarose marked this pull request as ready for review January 10, 2025 13:01
@mlarose mlarose force-pushed the mlarose/AD-721-stack branch from faf19e9 to 8500b32 Compare January 10, 2025 14:15
Copy link
Contributor

@dpeng817 dpeng817 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall direction looks good, I think we can avoid the "get_serialized_metadata" thing here entirely and just leverage serdes directly.

@mlarose mlarose closed this Jan 14, 2025
mlarose added a commit that referenced this pull request Jan 16, 2025
)

## Summary & Motivation

External cloud storage based compute log managers are often configured to only collect and show the url. However, in the case of the AzureBlobComputeLogManager, the provided URL will not be clickable if the storage account or container are private, which is a reasonable choice for commercial users using this feature for security and compliance on Dagster+.

This supports these users by providing both a more easily readable path and a clickable shell command to retrieve the log locally.

How this is implemented is by adding new fields to CapturedLogData to pass the path as well as extra azure specific information so that the frontend can render the shell cmd.

## Note to reviewers

This is a rework of #26982 - applying the changes requested and discussed. 

## How I Tested These Changes
- dagster dev local (with the AzureBlobComputeLogManager as well as the default log manager to ensure other code paths aren't broken).
- added testing of new fields in integration tests

## Changelog

- [dagster-azure] AzureBlobComputeLogManager provides shell command to download logs.
marijncv pushed a commit to marijncv/dagster that referenced this pull request Jan 21, 2025
…ster-io#27090)

## Summary & Motivation

External cloud storage based compute log managers are often configured to only collect and show the url. However, in the case of the AzureBlobComputeLogManager, the provided URL will not be clickable if the storage account or container are private, which is a reasonable choice for commercial users using this feature for security and compliance on Dagster+.

This supports these users by providing both a more easily readable path and a clickable shell command to retrieve the log locally.

How this is implemented is by adding new fields to CapturedLogData to pass the path as well as extra azure specific information so that the frontend can render the shell cmd.

## Note to reviewers

This is a rework of dagster-io#26982 - applying the changes requested and discussed. 

## How I Tested These Changes
- dagster dev local (with the AzureBlobComputeLogManager as well as the default log manager to ensure other code paths aren't broken).
- added testing of new fields in integration tests

## Changelog

- [dagster-azure] AzureBlobComputeLogManager provides shell command to download logs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants