Skip to content

Conversation

@hallyn
Copy link
Contributor

@hallyn hallyn commented Jul 13, 2025

The runtimedir is e.g. /run/atomfs
The metadir is e.g. /run/atomfs/meta/NSNAME/encoded-path

The RuntimeDir() fn would return runtimedir in most cases, but in one case, it would return the passed-in metapath.

As a result, it could happen that mount, umount, mount of the same path would fail the final mount, because it saw that runtimedir existed, when it should only care if metadir exists.

@codecov
Copy link

codecov bot commented Jul 13, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.59%. Comparing base (b584303) to head (b754628).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pkg/molecule/molecule.go 83.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
+ Coverage   38.50%   38.59%   +0.08%     
==========================================
  Files          24       24              
  Lines        2254     2257       +3     
==========================================
+ Hits          868      871       +3     
  Misses       1208     1208              
  Partials      178      178              

☔ 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.

@hallyn hallyn force-pushed the 2025-07-13/runtimedir branch from ab19c16 to ed53331 Compare July 16, 2025 15:53
The runtimedir is e.g. /run/atomfs
The metadir is e.g. /run/atomfs/meta/NSNAME/encoded-path

The RuntimeDir() fn would return runtimedir in most cases,
but in one case, it would return the passed-in metapath.

As a result, it could happen that mount, umount, mount of the
same path would fail the final mount, because it saw that
runtimedir existed, when it should only care if metadir exists.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
@hallyn hallyn force-pushed the 2025-07-13/runtimedir branch from ed53331 to b754628 Compare July 16, 2025 15:54
Copy link
Contributor

@mikemccracken mikemccracken left a comment

Choose a reason for hiding this comment

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

Ah now I see. Thanks for tracking this down!

@tych0 tych0 enabled auto-merge (squash) July 16, 2025 16:07
@tych0 tych0 merged commit 3872fac into project-machine:main Aug 12, 2025
8 of 9 checks passed
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