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

scrape button added #88

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

scrape button added #88

wants to merge 8 commits into from

Conversation

hkaur008
Copy link

@hkaur008 hkaur008 commented Oct 13, 2021

Fixes: https://tracker.ceph.com/issues/53048

Scrape button added #83
Signed-off-by: Hargun Kaur [email protected]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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

@hkaur008
Copy link
Author

@ideepika can you check?

@@ -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>
Copy link
Member

@ideepika ideepika Oct 14, 2021

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"

Copy link
Contributor

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.

Copy link
Member

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?

Copy link
Contributor

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

Copy link
Member

@ljflores ljflores Oct 26, 2021

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".

Copy link
Author

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

Copy link
Author

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

@hkaur008
Copy link
Author

hkaur008 commented Oct 14, 2021 via email

@kshtsk
Copy link
Contributor

kshtsk commented Oct 14, 2021

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?

@ideepika
Copy link
Member

@hkaur008 let us know if you need any help, thanks!

@ljflores
Copy link
Member

ljflores commented Oct 26, 2021

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."
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.

Let us know if you need any help!

@hkaur008
Copy link
Author

hkaur008 commented Oct 26, 2021 via email

@hkaur008
Copy link
Author

hkaur008 commented Dec 23, 2021

Sorry, I got busy with my exams will start working on this pull request again!

@hkaur008
Copy link
Author

image
Whenever i try to run it I get in this error , any leads would be helpful

@hkaur008
Copy link
Author

@ljflores I have added the code, Can you have a look? If things are okay!

@ljflores
Copy link
Member

ljflores commented Jan 3, 2022

Thanks @hkaur008! I'll see if @kamoltat can take a look.

@ljflores ljflores requested a review from kamoltat January 3, 2022 22:45
@hkaur008
Copy link
Author

hkaur008 commented Jan 4, 2022 via email

Copy link
Member

@kamoltat kamoltat left a 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.

Comment on lines +55 to +57
<h2>
<a href="http://qa-proxy.ceph.com/{{ run.name }}"> Want to see scrape.log?</a>
</h2>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be

Suggested change
<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>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure ! i check

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hkaur008 @kamoltat any updates regarding that PR?

@djgalloway djgalloway changed the base branch from master to main June 1, 2022 17:04
@Adityaakr Adityaakr mentioned this pull request Sep 13, 2023
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.

6 participants