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 get gladys container id call for Debian > 10 & Ubuntu > 20.04 #1459

Merged
merged 3 commits into from
Mar 9, 2022

Conversation

Pierre-Gilles
Copy link
Contributor

Pull Request check-list

To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:

  • If your changes affects code, did your write the tests?
  • Are tests passing? (npm test on both front/server)
  • Is the linter passing? (npm run eslint on both front/server)
  • Did you run prettier? (npm run prettier on both front/server)
  • If you are adding a new features/services, did you run integration comparator? (npm run compare-translations on front)
  • Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community for testing before merging.
  • If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
  • If you are adding a new features/services which needs explanation, did you modify the user documentation? See the GitHub repo and the website.
  • Did you add fake requests data for the demo mode (front/src/config/demo.js) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Description of change

Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!

@relativeci
Copy link

relativeci bot commented Mar 8, 2022

Job #228: Bundle Size — 6.73MB (0%).

ca30ceb vs 6f7f9c1

No changes


View Job #228 report on app.relative-ci.com

@codecov
Copy link

codecov bot commented Mar 8, 2022

Codecov Report

Merging #1459 (13bedf0) into master (6f7f9c1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1459   +/-   ##
=======================================
  Coverage   96.57%   96.58%           
=======================================
  Files         615      616    +1     
  Lines        8844     8866   +22     
=======================================
+ Hits         8541     8563   +22     
  Misses        303      303           
Impacted Files Coverage Δ
server/lib/system/index.js 100.00% <100.00%> (ø)
server/lib/system/system.getGladysContainerId.js 100.00% <100.00%> (ø)
server/lib/system/system.getNetworkMode.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

@Pierre-Gilles
Copy link
Contributor Author

@VonOx FYI I improved your PR :)

@VonOx
Copy link
Contributor

VonOx commented Mar 8, 2022

Clean!

I can test tomorrow on Ubuntu (cidfile & cgroupv1) and Buster for cgroup v2

Copy link
Contributor

@VonOx VonOx left a comment

Choose a reason for hiding this comment

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

  • ok with cidfile
  • ok cgroupV1
  • ok cgroupV2 Raspbian buster

@Pierre-Gilles
Copy link
Contributor Author

Amazing! :)

Next job is to use this function in the zigee2mqtt integration to fix the Unraid use case

@Pierre-Gilles Pierre-Gilles merged commit ca30ceb into master Mar 9, 2022
@Pierre-Gilles Pierre-Gilles deleted the fix-gladys-cgroup-debian-11 branch March 9, 2022 18: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