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

[webui] Display worker capabilities on the monitor page #15689

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

hmsf
Copy link

@hmsf hmsf commented Feb 25, 2024

Adds a new endpoint that renders a page with the given workers capabilities. A new link on the monitor page will then call this new endpoint.

#560

image image

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Feb 25, 2024
@hmsf hmsf force-pushed the display-worker-capabilities branch 14 times, most recently from 477e8a4 to 2ac2e40 Compare March 3, 2024 19:20
Copy link

codecov bot commented Mar 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.06%. Comparing base (8572bf1) to head (2ac2e40).

❗ Current head 2ac2e40 differs from pull request most recent head dd12bb7. Consider uploading reports for the commit dd12bb7 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15689      +/-   ##
==========================================
- Coverage   86.07%   86.06%   -0.02%     
==========================================
  Files         793      794       +1     
  Lines       26020    25998      -22     
==========================================
- Hits        22398    22375      -23     
- Misses       3622     3623       +1     

@hmsf hmsf marked this pull request as ready for review March 3, 2024 20:09
@hmsf
Copy link
Author

hmsf commented Mar 4, 2024

Hey @saraycp @rubhanazeem can you take a look at this please? Let me know if I missed something, I'll change it when I am able to. Thank you!

@@ -25,6 +25,7 @@ def ignore_link?(link)
return true if link.include?('/live_build_log/SourceprotectedProject')
return true if link.include?('/live_build_log/home:Iggy/ToBeDeletedTestPack')
return true if link.include?('/live_build_log')
return true if link.include?('/worker_capabilities')
Copy link
Member

Choose a reason for hiding this comment

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

Why do you ignore this route in the spider test?

Copy link
Author

Choose a reason for hiding this comment

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

Hey @hennevogel appreciate the review! Spider was breaking on that link so I was thinking I should add an exception to it similar to the live_build_log link, but maybe there is a better way?

Copy link
Member

Choose a reason for hiding this comment

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

Don't have it break? :)

Copy link
Author

Choose a reason for hiding this comment

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

I think the other way to make this work without excluding the link would be to somehow create the data on the backend. I see some examples in src/api/script/start_test_backend but I don't know the path and data to provide the backend connection with. Is there any doc I can take a look to learn more?

Copy link
Member

Choose a reason for hiding this comment

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

The backend is already started in the spider test, so this can't be it.

https://github.com/openSUSE/open-build-service/blob/master/src/api/test/functional/webui/spider_test.rb#L157

src/api/spec/lib/backend/api/build_results/worker_spec.rb Outdated Show resolved Hide resolved
@hmsf hmsf force-pushed the display-worker-capabilities branch 5 times, most recently from 59dd0a6 to 9679d19 Compare March 18, 2024 08:29
@hmsf hmsf force-pushed the display-worker-capabilities branch from 9679d19 to 6065537 Compare March 19, 2024 20:52
@danidoni
Copy link
Contributor

Hey @hmsf , do you need help with this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants