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

jobsprofiler: stringify protobin files when requested #107198

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

adityamaru
Copy link
Contributor

@adityamaru adityamaru commented Jul 19, 2023

This change is in preparation for a larger change that
will allow downloading debug files from the Advanded Debugging
tab on the job details page.

With this change a binpb file will have a binpb.txt version of the
file listed too. If the user requests to download
a binpb.txt file we unmarshal and stringify the contents
of the file before serving them to the user. Currently, there
is only one protobin file type written by a job resumer on
completion.

Informs: #105076
Release note: None

@adityamaru adityamaru requested a review from dt July 19, 2023 19:11
@adityamaru adityamaru requested review from a team as code owners July 19, 2023 19:11
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@adityamaru adityamaru force-pushed the on-the-fly-stringify branch from 64f48f9 to 514221c Compare July 19, 2023 20:02
@adityamaru
Copy link
Contributor Author

CI failures are all unrelated

pkg/jobs/adopt.go Outdated Show resolved Hide resolved
@adityamaru adityamaru force-pushed the on-the-fly-stringify branch 4 times, most recently from 6fb5381 to e55a66e Compare July 26, 2023 18:17
@adityamaru adityamaru requested a review from dt July 26, 2023 18:17
This change is in preparation for a larger change that
will allow downloading debug files from the `Advanded Debugging`
tab on the job details page.

With this change a `binpb` file will have a `binpb.txt` version of the
file listed too. If the user requests to download
a `binpb.txt` file we unmarshal and stringify the contents
of the file before serving them to the user. Currently, there
is only one protobin file type written by a job resumer on
completion.

Release note: None
@adityamaru adityamaru force-pushed the on-the-fly-stringify branch from e55a66e to b4362a6 Compare July 26, 2023 19:18
@adityamaru
Copy link
Contributor Author

CI failure is being tracked in #107669

@adityamaru
Copy link
Contributor Author

TFTR!

bors r=dt

@craig
Copy link
Contributor

craig bot commented Jul 27, 2023

Build succeeded:

@craig craig bot merged commit 4413ec7 into cockroachdb:master Jul 27, 2023
@adityamaru adityamaru deleted the on-the-fly-stringify branch July 27, 2023 17:10
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