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

tests: fix overeager chmod -x in restore #15232

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

zyga
Copy link
Contributor

@zyga zyga commented Mar 24, 2025

The intent was to remove the x permission in the "other" group, not for everyone.

@zyga zyga closed this Mar 24, 2025
@zyga zyga requested review from bboozzoo and maykathm March 24, 2025 08:12
@zyga zyga added Simple 😃 A small PR which can be reviewed quickly Test Robustness Skip spread Indicate that spread job should not run labels Mar 24, 2025
@zyga zyga reopened this Mar 24, 2025
@zyga zyga marked this pull request as ready for review March 24, 2025 08:13
Copy link

github-actions bot commented Mar 24, 2025

Mon Mar 24 08:49:01 UTC 2025

Spread tests skipped

@@ -40,7 +40,7 @@ execute: |
# small hole to allow that.
chmod +x /run/user/"$(id -u test)" ~test
# The runtime directory will be removed by now.
tests.cleanup defer chmod -x ~test
tests.cleanup defer chmod o-x ~test
Copy link
Contributor

Choose a reason for hiding this comment

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

can you stat -c '%a' ~test before and restore the same in defer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@maykathm maykathm left a comment

Choose a reason for hiding this comment

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

Thanks!

The intent was to remove the x permission in the "other" group, not for
everyone.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
@zyga zyga force-pushed the fix/chmod-test-sorry branch from 0220055 to 4a96f8f Compare March 24, 2025 08:27
@zyga zyga requested review from bboozzoo and maykathm March 24, 2025 08:27
Copy link
Contributor

@bboozzoo bboozzoo left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.10%. Comparing base (d6d95f0) to head (4a96f8f).
Report is 39 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #15232    +/-   ##
========================================
  Coverage   78.09%   78.10%            
========================================
  Files        1190     1192     +2     
  Lines      158458   159146   +688     
========================================
+ Hits       123746   124296   +550     
- Misses      27017    27117   +100     
- Partials     7695     7733    +38     
Flag Coverage Δ
unittests 78.10% <ø> (+<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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bboozzoo bboozzoo merged commit 5c606eb into canonical:master Mar 24, 2025
76 checks passed
@zyga zyga deleted the fix/chmod-test-sorry branch March 24, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple 😃 A small PR which can be reviewed quickly Skip spread Indicate that spread job should not run Test Robustness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants