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 the feature test and turn on in CI #2060

Merged
merged 4 commits into from
Jun 19, 2023

Conversation

yihuaf
Copy link
Collaborator

@yihuaf yihuaf commented Jun 18, 2023

The feature test has been broken for unknown amount of time. The libcgroups and libcontainer has been tested with all v1, v2, and systemd feature turn on. However, individual features are not working. This PR fix this by introduce a stub implementation of libcgroup implementation if the feature is not turned on. Due to how the code is structured, we can't completely remove the reference when a feature is turned off. So a stub is required.

Fix #2046

Other fixes:

  • fix justfile path to use absolute path
  • turn the feature test in CI
  • the musl test are separated out to a different test script outside of the feature test, since the goal for the test less about features, but more about targeting musl. The two test cases are passing, but I am following up with another PR to put these tests into CI.
  • removed two justfile in the subdir, which are not currently used.

@codecov-commenter
Copy link

Codecov Report

Merging #2060 (0c94208) into main (ebef6db) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2060      +/-   ##
==========================================
- Coverage   64.82%   64.78%   -0.04%     
==========================================
  Files         129      129              
  Lines       14765    14768       +3     
==========================================
- Hits         9571     9568       -3     
- Misses       5194     5200       +6     

@yihuaf yihuaf marked this pull request as ready for review June 18, 2023 01:33
@yihuaf yihuaf requested review from utam0k and a team June 18, 2023 01:34
Cargo.toml Show resolved Hide resolved
@yihuaf yihuaf requested a review from utam0k June 19, 2023 04:03
@utam0k utam0k merged commit f4e7e30 into youki-dev:main Jun 19, 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.

libcgroup build is broken for individual feature v1, v2 or systemd
3 participants