-
Notifications
You must be signed in to change notification settings - Fork 29
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
scrape button added #88
base: main
Are you sure you want to change the base?
Conversation
@ideepika can you check? |
pulpito/templates/run.html
Outdated
@@ -80,6 +80,8 @@ <h2> | |||
</div> | |||
<button type="button" class="btn btn-info {{ '' if run.results.fail or run.results.dead else 'disabled'}}" id="expand-fail-btn"></button> | |||
<button type="button" class="btn btn-info" id="expand-desc-btn"></button> | |||
<button type="button" class="btn btn-info" id="scrape" onclick="window.location.href='http://qa-proxy.ceph.com/teuthology/yuriw-2021-03-23_21:23:36-rados-wip-yuri7-testing-2021-03-23-1015-nautilus-distro-basic-smithi/scrape.log'">Scrape</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hkaur008 the url I passed was an example and what I was intending to say that we need to url link based on
the job for pulpito examination please inspect https://pulpito.ceph.com developer tools and see Log file,
you can achieve something like that using scrape_log = "http://qa-proxy.ceph.com/{{ run.name }}/scrape.log"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm... I don't think the link to scrap should be as button close to the ones which intended to manipulate the list of jobs in a run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kshtsk should public/js/main.js be the right place then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why main.js? maybe try to place this file before or after 'See detail view'? also draw it if there is no run.results.running and no run.results.queued, but I am not sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would generalize the link further, something to this effect: http://qa-proxy.ceph.com/{{ run.name }}".
That link would lead you to something like this:
Index of /teuthology/yuriw-2021-09-16_18:23:18-rados-wip-yuri2-testing-2021-09-16-0923-distro-basic-smithi/
../
6393441/ 16-Sep-2021 22:03 -
6393468/ 16-Sep-2021 22:24 -
6393474/ 17-Oct-2021 00:16 -
6393494/ 16-Sep-2021 22:45 -
6393507/ 17-Oct-2021 00:16 -
6393519/ 17-Oct-2021 00:16 -
6393526/ 16-Sep-2021 23:00 -
6393541/ 17-Oct-2021 00:16 -
6393548/ 16-Sep-2021 23:13 -
6393575/ 16-Sep-2021 23:26 -
6393603/ 16-Sep-2021 23:38 -
6393606/ 17-Oct-2021 00:16 -
6393628/ 16-Sep-2021 23:48 -
6393682/ 17-Sep-2021 00:21 -
6393702/ 18-Oct-2021 00:16 -
6393707/ 18-Oct-2021 00:16 -
6393708/ 17-Sep-2021 00:31 -
6393734/ 17-Sep-2021 00:44 -
6393748/ 18-Oct-2021 00:17 -
6393760/ 17-Sep-2021 00:57 -
6393788/ 17-Sep-2021 01:08 -
6393797/ 18-Oct-2021 00:16 -
results.log 17-Sep-2021 05:05 146241
scrape.log 17-Sep-2021 05:05 3509
That way, someone could access the scrape log in addition to information about other jobs and the results.log. Like @kshtsk said, you could then place this link under "See detail view".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
soo i just need to add the scrape.log link before the See detail view
and that link would be like http://qa-proxy.ceph.com/{{ run.name }}/scrape.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay Got it replaced with a generalised link rather than scrape.log
Cool
…On Thu, 14 Oct, 2021, 4:29 PM Deepika Upadhyay, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In pulpito/templates/run.html
<#88 (comment)>:
> @@ -80,6 +80,8 @@ <h2>
</div>
<button type="button" class="btn btn-info {{ '' if run.results.fail or run.results.dead else 'disabled'}}" id="expand-fail-btn"></button>
<button type="button" class="btn btn-info" id="expand-desc-btn"></button>
+ <button type="button" class="btn btn-info" id="scrape" onclick="window.location.href='http://qa-proxy.ceph.com/teuthology/yuriw-2021-03-23_21:23:36-rados-wip-yuri7-testing-2021-03-23-1015-nautilus-distro-basic-smithi/scrape.log'">Scrape</button>
@hkaur008 <https://github.com/hkaur008> the url I passed was an example
and what I was intending to say that we need to url link based on
the job for pulpito examination please inspect https://pulpito.ceph.com
developer tools and see Log file,
job.log_href looks like:
http://qa-proxy.ceph.com/teuthology/ideepika-2021-10-14_07:14:29-rbd:iscsi-wip-nizamial09-testing-2021-10-11-1540-distro-default-smithi/6442773/teuthology.log
you can achieve something like that using scrape_log = "
http://qa-proxy.ceph.com/{{ job['name'] }}/scrape.log"
place to look at: pulpito/templates/run_jobs_table.html
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#88 (review)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANOWNVAOO6PJKVCCZEEY6JDUG2Z2XANCNFSM5F4FMOTA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
If scrape is something that runs at the end of the whole run finished, maybe make the link visible when the scrape output close to be available, I mean not from the very begging of job. That does not neglect that it should not be a button from job list filter group, maybe just another reference above the list? |
@hkaur008 let us know if you need any help, thanks! |
I created a Tracker associated with this PR: https://tracker.ceph.com/issues/53048. @hkaur008 would you please add this to your PR description and to your commit? You can edit your PR description by clicking the three dots next to the emoticon and clicking "Edit." Let us know if you need any help! |
Sure
…On Tue, 26 Oct, 2021, 10:52 PM Laura Flores, ***@***.***> wrote:
I created a Tracker associated with this PR:
https://tracker.ceph.com/issues/53048. @hkaur008
<https://github.com/hkaur008> would you please add this to your PR
description and to your commit?
You can edit your PR description by clicking the three dots next to the
emoticon and clicking "Edit."
You can edit your commit by typing git commit --amend in your terminal
and following the prompts.
Add this line to both: Fixes: https://tracker.ceph.com/issues/53048.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#88 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANOWNVAXCBY7VXDUTSIKUJTUI3PWTANCNFSM5F4FMOTA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sorry, I got busy with my exams will start working on this pull request again! |
@ljflores I have added the code, Can you have a look? If things are okay! |
Cool
…On Tue, 4 Jan, 2022, 4:15 AM Laura Flores, ***@***.***> wrote:
Thanks @hkaur008 <https://github.com/hkaur008>! I'll see if @kamoltat
<https://github.com/kamoltat> can take a look.
—
Reply to this email directly, view it on GitHub
<#88 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANOWNVG3WGSO6NMH4RC3OLDUUIRHNANCNFSM5F4FMOTA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hkaur008 Just some changes, other than that it looks great! Thanks for doing this. Lastly, please squash your commit into 1 commit. Let me know if you need help doing this.
<h2> | ||
<a href="http://qa-proxy.ceph.com/{{ run.name }}"> Want to see scrape.log?</a> | ||
</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be
<h2> | |
<a href="http://qa-proxy.ceph.com/{{ run.name }}"> Want to see scrape.log?</a> | |
</h2> | |
<h2> | |
<a href="http://qa-proxy.ceph.com/teuthology/{{ run.name }}/scrape.log"> Want to see scrape.log?</a> | |
</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure ! i check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes: https://tracker.ceph.com/issues/53048
Scrape button added #83
Signed-off-by: Hargun Kaur [email protected]
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard cephadm
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox