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

Fix manager service status during startup #708

Merged
merged 4 commits into from
Aug 21, 2023
Merged

Fix manager service status during startup #708

merged 4 commits into from
Aug 21, 2023

Conversation

imobachgs
Copy link
Contributor

@imobachgs imobachgs commented Aug 21, 2023

Problem

See #707, "Manager status on single-product scenarios".

Solution

Let the manager set the service status outside of D-Bus. It does not solve all timing issues, but the Could not start the installation... should not happen.

Testing

  • Fixed unit tests
  • Tested manually

@@ -58,18 +62,22 @@ def initialize(config, logger)
@logger = logger
@installation_phase = InstallationPhase.new
@service_status_recorder = ServiceStatusRecorder.new
@service_status = DBus::ServiceStatus.new.busy
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like the manager will only rarely be idle and safe_run will fail more often?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would not say rarely, but this ensures that it waits for startup phase, not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's the point. It starts as busy, but it is set as idle as soon as the startup_phase finishes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok then

@coveralls
Copy link

Coverage Status

coverage: 72.1% (+0.03%) from 72.068% when pulling 8828b21 on imobachgs:fix-service-status into 40e46fa on openSUSE:master.

@imobachgs imobachgs merged commit 9db052e into agama-project:master Aug 21, 2023
7 checks passed
@imobachgs imobachgs deleted the fix-service-status branch August 21, 2023 13:26
@imobachgs imobachgs mentioned this pull request Sep 26, 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.

4 participants