Skip to content

Fix manager service status during startup#708

Merged
imobachgs merged 4 commits intoagama-project:masterfrom
imobachgs:fix-service-status
Aug 21, 2023
Merged

Fix manager service status during startup#708
imobachgs merged 4 commits intoagama-project:masterfrom
imobachgs:fix-service-status

Conversation

@imobachgs
Copy link
Copy Markdown
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

@logger = logger
@installation_phase = InstallationPhase.new
@service_status_recorder = ServiceStatusRecorder.new
@service_status = DBus::ServiceStatus.new.busy
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
@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