Skip to content

Conversation

papertigers
Copy link
Contributor

@papertigers papertigers commented Jan 31, 2025

Diagnostic commands now output the json serialized value rather than the debug output for the inner type.

This is on top of:

Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
)
.await?;
let json = serde_json::to_string(&output)?;
tokio::fs::write(path.join(format!("{command}.txt")), json).await?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we use a .json suffix here?

Related: Do we want the error types to be serialized to JSON too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in e610f80

I am inclined to leave the error file alone as I feel like most of the structured output parsing will happen on the "success" path where there may be multiple commands that have ran with output that you would like to filter through.

Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
@papertigers papertigers changed the base branch from spr/papertigers/main.nexus-support-bundle-diag-commands-should-be-saved-in-json to main March 3, 2025 23:47
Created using spr 1.3.6-beta.1
@papertigers papertigers enabled auto-merge (squash) March 3, 2025 23:49
@papertigers
Copy link
Contributor Author

Re-running checks due to: worker agent experienced a fatal error; aborting job

@papertigers papertigers merged commit b9f8ae7 into main Mar 4, 2025
16 checks passed
@papertigers papertigers deleted the spr/papertigers/nexus-support-bundle-diag-commands-should-be-saved-in-json branch March 4, 2025 03:32
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.

3 participants