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: let uname spec also support RHEL 6 #4231

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

xiangce
Copy link
Contributor

@xiangce xiangce commented Sep 29, 2024

  • On RHEL 6, uname was not in /usr/bin/ yet.
    As an alternative using first_of to collect /bin/uname for RHEL 6
  • Refine the test_fixed_by_warning to use mock for unexpected
    failure on test of py2

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

  • Current uname spec cannot be collected on RHEL 6.

@codecov-commenter
Copy link

codecov-commenter commented Sep 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.69%. Comparing base (31bfcdb) to head (5b5a9f2).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4231      +/-   ##
==========================================
- Coverage   76.69%   76.69%   -0.01%     
==========================================
  Files         759      759              
  Lines       41788    41788              
  Branches     9603     9603              
==========================================
- Hits        32051    32049       -2     
- Misses       8638     8639       +1     
- Partials     1099     1100       +1     
Flag Coverage Δ
unittests 76.67% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xiangce xiangce changed the title fix: collect uname on RHEL 6 fix: let uname spec also support RHEL 6 Sep 29, 2024
@xiangce xiangce force-pushed the uname_rhel6 branch 8 times, most recently from 2e364fa to ad73753 Compare September 29, 2024 08:04
- On RHEL 6, uname was not in /usr/bin/ yet.
  Use first_of to collect "/bin/uname" as an alternative for RHEL 6
- Refine the test_fixed_by_warning due to unexpected failure in py2 CI/CD
  And fixed typo in warning message

Signed-off-by: Xiangce Liu <xiangceliu@redhat.com>
@xiangce xiangce merged commit ccb65c1 into RedHatInsights:master Sep 29, 2024
11 checks passed
@xiangce xiangce deleted the uname_rhel6 branch September 29, 2024 08: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.

3 participants