Re: [all][infra] Zuul logs are in swift
Hi infra. I wanted to blast out a handful of issues I've had since the cutover to swift. I'm using Chrome Version 76.0.3809.100 (Official Build) (64-bit) on bionic (18.04.3). - Hot tip: if you want the dynamic logs (with timestamp links and sev filters), use the twisties. Clicking through gets you to the raw files. The former was not obvious to me. - Some in-app logs aren't working. E.g. when I try to look at controller=>logs=>screen-n-cpu.txt.gz from [1], it redirects me to [2]. The hover [3] has a double slash in it, not sure if that's related, but when I try squashing to one slash, I get an error... sometimes [4]. - When the in-app logs do render, they don't wrap. There's a horizontal scroll bar, but it's at the bottom of an inner frame, so it's off the screen most of the time and therefore not useful. (I don't have horizontal mouse scroll capabilities; maybe I should look into that.) - The timestamp links in app anchor the line at the "top" - which (for me, anyway) is "underneath" the header menu (Status Projects Jobs Labels Nodes Builds Buildsets), so I have to scroll up to get the anchored line and a few of its successors. Thanks as always for all your hard work. efried [1] https://zuul.opendev.org/t/openstack/build/402a73a9238643c2b893d53b37a6ce27/... [2] https://zuul.opendev.org/tenants [3] https://zuul.opendev.org/t/openstack/build/402a73a9238643c2b893d53b37a6ce27/... [4] http://eavesdrop.openstack.org/irclogs/%23openstack-infra/%23openstack-infra...
Eric Fried <openstack@fried.cc> writes:
- Hot tip: if you want the dynamic logs (with timestamp links and sev filters), use the twisties. Clicking through gets you to the raw files. The former was not obvious to me.
Good point; we should work on the UI for that.
- Some in-app logs aren't working. E.g. when I try to look at controller=>logs=>screen-n-cpu.txt.gz from [1], it redirects me to [2]. The hover [3] has a double slash in it, not sure if that's related, but when I try squashing to one slash, I get an error... sometimes [4]. - When the in-app logs do render, they don't wrap. There's a horizontal scroll bar, but it's at the bottom of an inner frame, so it's off the screen most of the time and therefore not useful. (I don't have horizontal mouse scroll capabilities; maybe I should look into that.) - The timestamp links in app anchor the line at the "top" - which (for me, anyway) is "underneath" the header menu (Status Projects Jobs Labels Nodes Builds Buildsets), so I have to scroll up to get the anchored line and a few of its successors.
Thanks! Fixes for all of these (plus one more: making the log text easier to select for copy/paste) are in-flight. -Jim
On Thu, Aug 15, 2019 at 12:14 PM Eric Fried <openstack@fried.cc> wrote:
Hi infra. I wanted to blast out a handful of issues I've had since the cutover to swift.
I'm using Chrome Version 76.0.3809.100 (Official Build) (64-bit) on bionic (18.04.3).
- Hot tip: if you want the dynamic logs (with timestamp links and sev filters), use the twisties. Clicking through gets you to the raw files.
Unfamiliar with the term "twisties" and googling didn't help - what do you mean?
The former was not obvious to me. - Some in-app logs aren't working. E.g. when I try to look at controller=>logs=>screen-n-cpu.txt.gz from [1], it redirects me to [2]. The hover [3] has a double slash in it, not sure if that's related, but when I try squashing to one slash, I get an error... sometimes [4]. - When the in-app logs do render, they don't wrap. There's a horizontal scroll bar, but it's at the bottom of an inner frame, so it's off the screen most of the time and therefore not useful. (I don't have horizontal mouse scroll capabilities; maybe I should look into that.) - The timestamp links in app anchor the line at the "top" - which (for me, anyway) is "underneath" the header menu (Status Projects Jobs Labels Nodes Builds Buildsets), so I have to scroll up to get the anchored line and a few of its successors.
Thanks as always for all your hard work.
efried
[1]
https://zuul.opendev.org/t/openstack/build/402a73a9238643c2b893d53b37a6ce27/... [2] https://zuul.opendev.org/tenants [3]
https://zuul.opendev.org/t/openstack/build/402a73a9238643c2b893d53b37a6ce27/... [4]
http://eavesdrop.openstack.org/irclogs/%23openstack-infra/%23openstack-infra...
- Hot tip: if you want the dynamic logs (with timestamp links and sev filters), use the twisties. Clicking through gets you to the raw files.
Unfamiliar with the term "twisties" and googling didn't help - what do you mean?
Sorry about that. On the left-hand side next to the folder names there's an icon that looks like '>'. If you click on the folder, it pops you into a regular directory browser with none of the whizbang anchoring/filtering features. But if instead you click the '>', it rotates downward ('v') and expands the directory tree in place. Keep navigating until you get to the file you want, and then click on the file (not 'raw') to open it within the "app". Thanks, efried .
All of the fixes to the issues that Eric identified have landed, so you should see them now (if not, hit reload). Plus a couple more -- log lines are now displayed with line numbers, and it is these numbers which are the clickable links to create links for sharing. Tristan also added a feature to support selecting a range. Click the first line number to start the range, then Shift-click it to select the end. For example: http://zuul.openstack.org/build/602ab1629aca4f4ebe21ff7024884f87/log/job-out... -Jim
Thank you very much for fixing these so quickly! The changes look great! efried On 8/16/19 3:49 PM, James E. Blair wrote:
All of the fixes to the issues that Eric identified have landed, so you should see them now (if not, hit reload).
Plus a couple more -- log lines are now displayed with line numbers, and it is these numbers which are the clickable links to create links for sharing.
Tristan also added a feature to support selecting a range. Click the first line number to start the range, then Shift-click it to select the end.
For example:
http://zuul.openstack.org/build/602ab1629aca4f4ebe21ff7024884f87/log/job-out...
-Jim
I am really glad to see the improvements on the log browsing UX. Can we also add address few other issues? like: a) auto-wrap long lines, even your link is a perfect example of endless horizontal bar created by pip requirements line. log should never need horizontal scrolling in browser. b) coloring in logs? c) auto hiding/collapsing the timestamp column -- it is boilerplate in most cases taking 20% entire screen real estate. same info could be visible as tooltip d) shorter urls? do we really need "602ab1629aca4f4ebe21ff7024884f87" as build number of we can get around with 3-6 chars? -- i always need to horizontally scroll the URL bar to see the file I am on. PS. I am more than willing to invest some of my personal time on addressing these.
On 16 Aug 2019, at 21:49, James E. Blair <corvus@inaugust.com> wrote:
All of the fixes to the issues that Eric identified have landed, so you should see them now (if not, hit reload).
Plus a couple more -- log lines are now displayed with line numbers, and it is these numbers which are the clickable links to create links for sharing.
Tristan also added a feature to support selecting a range. Click the first line number to start the range, then Shift-click it to select the end.
For example:
http://zuul.openstack.org/build/602ab1629aca4f4ebe21ff7024884f87/log/job-out...
-Jim
Sorin Sbarnea <ssbarnea@redhat.com> writes:
I am really glad to see the improvements on the log browsing UX.
Can we also add address few other issues? like:
a) auto-wrap long lines, even your link is a perfect example of endless horizontal bar created by pip requirements line. log should never need horizontal scrolling in browser. b) coloring in logs? c) auto hiding/collapsing the timestamp column -- it is boilerplate in most cases taking 20% entire screen real estate. same info could be visible as tooltip d) shorter urls? do we really need "602ab1629aca4f4ebe21ff7024884f87" as build number of we can get around with 3-6 chars? -- i always need to horizontally scroll the URL bar to see the file I am on.
PS. I am more than willing to invest some of my personal time on addressing these.
If you would like to implement some of those, the source is in the web/src directory of the zuul repo. Local development against the production OpenDev data is easy, and this information may help you get started: https://zuul-ci.org/docs/zuul/developer/javascript.html B seems straightforward. D is probably best achieved not by shortening the URL, but by displaying the filename on the page and/or in the page title. A and C are matters of personal preference. You may want to discuss those with the upstream Zuul community on the zuul-discuss@lists.zuul-ci.org mailing list. -Jim
a) auto-wrap long lines, even your link is a perfect example of endless horizontal bar created by pip requirements line. log should never need horizontal scrolling in browser. <snip> A and C are matters of personal preference.
FWIW, I requested this as a "toggle wrap" button. My CSS/DHTML is rusty, but can't you just twiddle `overflow-wrap` on and off? efried .
On Fri, Aug 16, 2019 at 10:50 AM Eric Fried <openstack@fried.cc> wrote:
- Hot tip: if you want the dynamic logs (with timestamp links and sev filters), use the twisties. Clicking through gets you to the raw
files.
Unfamiliar with the term "twisties" and googling didn't help - what do you mean?
Sorry about that.
On the left-hand side next to the folder names there's an icon that looks like '>'.
If you click on the folder, it pops you into a regular directory browser with none of the whizbang anchoring/filtering features.
But if instead you click the '>', it rotates downward ('v') and expands the directory tree in place. Keep navigating until you get to the file you want, and then click on the file (not 'raw') to open it within the "app".
This is super cool :) Thank you for the explanation! Wasn't obvious for me the first time around either, so I was just clicking the "log url" in the build summary.
Thanks, efried .
participants (4)
-
corvus@inaugust.com
-
Eric Fried
-
Goutham Pacha Ravi
-
Sorin Sbarnea