Skip to content

Conversation

@liangxin1300
Copy link
Collaborator

@liangxin1300 liangxin1300 commented Nov 27, 2024

Changes include:

  1. The file ~/.config/crm/crm.conf is now collected in crm report result

  2. To manage files that have the same basename (e.g., crm.conf), the PR implements a new directory. When multiple files share the same basename, a directory named {basename}.d is created in the report result. All files with the same basename are then placed inside this directory. For instance, the files /etc/crm/crm.conf and /root/.config/crm/crm.conf will be placed inside a directory named crm.conf.d

@codecov
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 62.50000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 69.51%. Comparing base (e1006f3) to head (f523ac9).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
crmsh/report/utils.py 45.45% 6 Missing ⚠️
Additional details and impacted files
Flag Coverage Δ
integration 53.80% <25.00%> (+0.01%) ⬆️
unit 52.76% <62.50%> (-0.03%) ⬇️

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

Files with missing lines Coverage Δ
crmsh/config.py 81.48% <ø> (ø)
crmsh/report/collect.py 97.01% <100.00%> (-0.13%) ⬇️
crmsh/report/core.py 92.03% <100.00%> (ø)
crmsh/report/utils.py 97.83% <45.45%> (-1.29%) ⬇️

... and 1 file with indirect coverage changes

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

@liangxin1300 liangxin1300 force-pushed the 20241127_collect_crm_conf branch 3 times, most recently from a61eb16 to c229fcc Compare November 28, 2024 02:12
@liangxin1300 liangxin1300 marked this pull request as ready for review November 28, 2024 03:29
for log in log_list:
log_list = [
os.path.expanduser(log)
if log.startswith("~") else log
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need to test startwith("~"). os.path.expanduser() handles paths without leading ~ correctly.

Create {basename}.d directory in report result and put those files in
it. Then files like `/etc/crm/crm.conf` and `/root/.config/crm/crm.conf`
will under `crm.conf.d` directory.
which was used by ocfs2, but ocfs2 related code has been removed.
@liangxin1300 liangxin1300 force-pushed the 20241127_collect_crm_conf branch from c229fcc to f523ac9 Compare December 9, 2024 07:25
@liangxin1300 liangxin1300 merged commit 2098152 into ClusterLabs:master Dec 9, 2024
31 of 32 checks passed
liangxin1300 added a commit that referenced this pull request Jun 13, 2025
…5) (#1821)

This is the same error as reported in
#1606, which can be reproduced
by deleting the `logfile:` line from corosync.conf. Although this was
previously fixed, the issue regressed in #1622.

To prevent future regressions, I have added functional test cases for
both #1622 and this scenario.
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