Skip to content

Add a link to the raw log. #1206

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iwanders
Copy link

@iwanders iwanders commented May 4, 2022

I could not find a link to download the raw log in the log view, so for example on this (randomly picked) page, I would expect a download link; https://hydra.nixos.org/build/175606766/nixlog/2125

The raw log is accessible and served by Hydra, by adding /raw to the URL, we obtain: https://hydra.nixos.org/build/175606766/nixlog/2125/raw which in turn redirects to; https://hydra.nixos.org/log/bs93xva3z3pkig6f5gaxj6pgmmpmx59y-squashfs.img.drv

I think there's a lot of value in providing a link to the raw log, such that it is convenient for users to download this, for example if they want to grep in it locally.

This PR adds a link to the log overview page that links to the raw log, it looks like this:
Screenshot at 2022-05-04 13-29-17

The logic with the ternary is copy pasted from the tail section in the same file.

fyi @mikepurvis

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.

1 participant