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

x/build: make temporary logs redirect to permanent logs? #11141

bradfitz opened this issue Jun 10, 2015 · 2 comments


None yet
4 participants
Copy link

commented Jun 10, 2015

It would be nice if people could share the live-streaming build log URLs and know that they'll always work, regardless of whether they're still live streaming or have completed (even if they're not one of the most recent 30 builds or so which we keep in memory for debugging).

If we recorded a mapping of (builder-id, rev, hexy *buildStatus pointer) => Cloud Storage URL for every build, then if the /temporarylogs handler got a tuple that wasn't in memory, it could then look it up from storage (Cloud Bigtable?) and just redirect the user to the permanent location.

Then we could rename the handler back to simply /logs too.

/cc @adg


This comment has been minimized.

Copy link

commented Sep 4, 2015

FWIU, build logs are stored in Datastore by dashboard permanently, so coordinator can redirect to dashboard, and there is no need for cloud storage/bigtable (unless we want to switch from datastore to cloud storage, but that's a different issue).

Also if we store the (builder-id, rev, hexy *buildStatus pointer) => <something> mapping in coordinator's memory, a restart of the coordinator would lose that info.


  • Dashboard: new handler /result/log/{rev}/{name} searches for Result entity (simple datastore search), retrieves LogHash, retrieves Log and returns the contents of the log (/log handler code will be reused)
  • Coordinator: /temporarylogs handler redirects to the new handler if getStatus returns nil
  • Coordinator: rename /temporarylogs to /logs.



This comment has been minimized.

Copy link
Member Author

commented Sep 21, 2016

Dup of more aggressive bug: #13076

@bradfitz bradfitz closed this Sep 21, 2016

@golang golang locked and limited conversation to collaborators Sep 21, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.