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

Drop unnecessary command from CLI plug-in #3551

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

agners
Copy link
Member

@agners agners commented Apr 7, 2022

Proposed change

The CLI plug-in stays up even without command. This saves a few
kilobytes of RAM.

It also allows s6-overlay's stage2 to complete. The stage2 execlineb
process has an enormously long cmdline, with strings like "init-stage2
failed" in it. This has previously led people to believe that there is a
problem
(while there isn't). So as a side effect, getting stage2 to
complete side steps such confusion and makes the list of processes
cleaner.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (which adds functionality to the supervisor)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:
  • Link to cli pull request:

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast supervisor tests)
  • Tests have been added to verify that the new code works.

If API endpoints of add-on configuration are added/changed:

@agners agners added the performance A code change that improves performance label Apr 7, 2022
@agners agners requested a review from pvizeli April 7, 2022 13:03
The CLI plug-in stays up even without command. This saves a few
kilobytes of RAM.

It also allows s6-overlay's stage2 to complete. The stage2 execlineb
process has an enormously long cmdline, with strings like "init-stage2
failed" in it. This has previously led people to belive that there is a
problem (while there isn't). So as a side effect, getting stage2 to
complete side steps such confusion and makes the list of processes
cleaner.
Copy link
Member

@pvizeli pvizeli left a comment

Choose a reason for hiding this comment

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

That was more for the transition from the old cli plugin

@mdegat01 mdegat01 merged commit b701e19 into home-assistant:main Apr 7, 2022
@agners
Copy link
Member Author

agners commented Apr 7, 2022

That was more for the transition from the old cli plugin

Yeah I was assuming so. Thanks for clarification!

@pvizeli
Copy link
Member

pvizeli commented Apr 7, 2022

and then it got lost to clean that up I guess :D

@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed performance A code change that improves performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants