Skip to content

Refactor tmpfsMounts() to process tmpfs path correctly - #2103

Merged
katiewasnothere merged 7 commits into
apple:mainfrom
LevelVoid:fix-tmpfs
Aug 10, 2026
Merged

Refactor tmpfsMounts() to process tmpfs path correctly#2103
katiewasnothere merged 7 commits into
apple:mainfrom
LevelVoid:fix-tmpfs

Conversation

@LevelVoid

@LevelVoid LevelVoid commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Fixes #2094 : tmpfs works as stated in issue with tests added

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@jglogan jglogan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@LevelVoid Don't forget the absolute path test, see comment.

Also, you'll need to configure your account for verified commit signatures or we can't merge, see: https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#about-commit-signature-verification.

Thank you!

throw ContainerizationError(.invalidArgument, message: "mount destination cannot be empty")
}

let normalizedDest = FilePath(destination).lexicallyNormalized().string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

compute the filepath first and guard to ensure that isAbsolute is true.
Then do the normalization and continue.

Add a test to ensure non-absolute destinations fail.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

compute the filepath first and guard to ensure that isAbsolute is true. Then do the normalization and continue.

Add a test to ensure non-absolute destinations fail.

Got it, i will do that and push after configuring my account.

@jglogan

jglogan commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

@LevelVoid Still seeing some formatting issues:

❌ The following files require formatting or license header updates:
Tests/ContainerAPIClientTests/ParserTest.swift

@LevelVoid

LevelVoid commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

@LevelVoid Still seeing some formatting issues:

❌ The following files require formatting or license header updates:
Tests/ContainerAPIClientTests/ParserTest.swift

@jglogan I fixed the issues causing failure, and it's ready to review.

Comment thread Tests/ContainerAPIClientTests/ParserTest.swift Outdated
Comment thread Tests/ContainerAPIClientTests/ParserTest.swift Outdated

@jglogan jglogan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

swift format is quite particular, two spaces

@jglogan

jglogan commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

@LevelVoid I touched up the formatting. That means I'll need to have someone else approve the PR tomorrow to get it merged, but everything looks good to go. Thank you for fixing this!

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 24.36%
Integration 66.84%
Combined 76.27%

@LevelVoid

Copy link
Copy Markdown
Contributor Author

Thanks! Appreciate you taking the time to review it.

@katiewasnothere
katiewasnothere merged commit f13b723 into apple:main Aug 10, 2026
3 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.

[Bug]: --tmpfs option for container {create|run} does not split mount options.

3 participants