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

Pull support-bundle/queries into a standalone crate #7193

Conversation

papertigers
Copy link
Contributor

@papertigers papertigers commented Dec 2, 2024

This pulls out sled-agent/support-bundle/queries from Omicron into a standalone sled-diagnostics crate that can be reused outside of sled-agent.

Created using spr 1.3.6-beta.1
@papertigers papertigers marked this pull request as draft December 2, 2024 22:21
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
@papertigers papertigers marked this pull request as ready for review December 5, 2024 15:43
@papertigers papertigers requested a review from smklein December 5, 2024 16:34
Comment on lines +19 to 22
pub trait SledDiagnosticsCommandHttpOutput {
fn get_output(self) -> String;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

I know this isn't new in this PR, but since we're exposing it from a crate API, we may want to revisit this trait name.

  • The name is a little redundant with the crate
  • The HttpOutput bit is especially confusing now, since this trait also has nothing to do with HTTP

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left this as is because I knew it would be addressed in a PR on top of this PR.
The updated output type can be found in #7228

Created using spr 1.3.6-beta.1
@papertigers papertigers enabled auto-merge (squash) December 13, 2024 20:30
Created using spr 1.3.6-beta.1
@papertigers papertigers merged commit 5ef0b7d into main Dec 13, 2024
18 checks passed
@papertigers papertigers deleted the spr/papertigers/pull-support-bundlequeries-into-a-standalone-crate branch December 13, 2024 22:45
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