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

Composer service (HMS-5455) #2847

Merged
merged 4 commits into from
Feb 4, 2025
Merged

Conversation

kingsleyzissou
Copy link
Collaborator

@kingsleyzissou kingsleyzissou commented Feb 4, 2025

  • Add a hook to check the status of osbuild-composer.socket
  • Add a button to start/enable the socket
  • Add a secondary button to jump to the unit file in the cockpit systemd services for osbuild-composer.socket if the unit is disabled/not active
Screen.Recording.2025-02-04.at.16.02.12.mov

/jira-epic COMPOSER-2411

JIRA: HMS-5455

@schutzbot schutzbot changed the title Composer service Composer service (HMS-5455) Feb 4, 2025
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 0% with 85 lines in your changes missing coverage. Please review.

Project coverage is 82.73%. Comparing base (9e4cd30) to head (e017587).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/Components/Cockpit/NotReady.tsx 0.00% 43 Missing and 1 partial ⚠️
src/Utilities/useComposerStatus.tsx 0.00% 34 Missing and 1 partial ⚠️
src/AppCockpit.tsx 0.00% 6 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2847      +/-   ##
==========================================
- Coverage   83.04%   82.73%   -0.31%     
==========================================
  Files         200      202       +2     
  Lines       22802    22887      +85     
  Branches     2256     2258       +2     
==========================================
  Hits        18936    18936              
- Misses       3844     3927      +83     
- Partials       22       24       +2     
Files with missing lines Coverage Δ
src/AppCockpit.tsx 0.00% <0.00%> (ø)
src/Utilities/useComposerStatus.tsx 0.00% <0.00%> (ø)
src/Components/Cockpit/NotReady.tsx 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9e4cd30...e017587. Read the comment docs.

Copy link
Member

@croissanne croissanne left a comment

Choose a reason for hiding this comment

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

Nice! One nitpick, also we should probably change the name of the osbuild-composer socket definition lol, but that's obviously for composer.

src/Components/Cockpit/NotReady.tsx Show resolved Hide resolved
Add a component to display when the osbuild-composer socket
is not running. We could potentially try start the socket
in the future when clicking the button, rather than re-directing
to the cockpit services plugin.
Add a custom hook to check to see if the osbuild-composer.socket
is enabled & running.
Render the nont ready component when the osbuild-composer.socket is
not running.
Add a secondary button that takes the user to the `osbuild-composer.socket`
services file inside the cockpit services plugin.
@croissanne croissanne merged commit b469775 into osbuild:main Feb 4, 2025
16 of 18 checks passed
@kingsleyzissou kingsleyzissou deleted the composer_service branch February 5, 2025 12:26
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.

2 participants