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 mountpoint issues on macOS #9351

Merged
merged 4 commits into from
Jan 17, 2025
Merged

Conversation

FirelightFlagboy
Copy link
Contributor

No description provided.

@FirelightFlagboy FirelightFlagboy requested a review from a team as a code owner January 16, 2025 08:13
Copy link
Member

@touilleMan touilleMan left a comment

Choose a reason for hiding this comment

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

Can you add a test, that would rely on a subprocess running your snippet of osascript

(typically put in libparsec/crates/platform_mountpoint/tests/unit/operations/unix_setattr.rs)

And we also need some linux tests given the code change impact them too (and besides there is no tests for setattr right now !)

For instances:

  • macos only test with osascript the copy of a file
  • (linux, macos) test setattr used for truncate to an arbitrary size (same size as current one, bigger size, smaller size, zero size)
  • (linux, macos) test setattr used to change the others fields allowed by it but not supported (atime, etc.)
  • (linux, macos) test setattr on a non-existing file
  • (linux, macos) test setattr to change size on a folder

Obviously we can create an issue to implement part of them in a separated PR

@mmmarcos
Copy link
Contributor

@FirelightFlagboy this PR fixes multiple issues (#8976, #8991, #9173) but it is not clearly specified which changes fix which issues. Please summarize it in the PR description.

@FirelightFlagboy
Copy link
Contributor Author

@FirelightFlagboy this PR fixes multiple issues (#8976, #8991, #9173) but it is not clearly specified which changes fix which issues. Please summarize it in the PR description.

Those are specified in the body of the first 2 commits

@FirelightFlagboy FirelightFlagboy force-pushed the 8907-macos-mounpoint-issue branch from 8c9c40c to 4f057ec Compare January 16, 2025 10:20
@FirelightFlagboy
Copy link
Contributor Author

Can you add a test, that would rely on a subprocess running your snippet of osascript [...]

I've created the issue #9353

@FirelightFlagboy FirelightFlagboy force-pushed the 8907-macos-mounpoint-issue branch from 4f057ec to 1b0a71a Compare January 16, 2025 10:27
@mmmarcos
Copy link
Contributor

Can you add a test, that would rely on a subprocess running your snippet of osascript [...]

I've created the issue #9353

I'd still add some tests in this PR because it fixes major bugs. IMO we should add at least test regarding unix_setattr.rs.

@mmmarcos mmmarcos removed their request for review January 17, 2025 13:23
FirelightFlagboy added a commit that referenced this pull request Jan 21, 2025
* [rust] update `fuser` to `0.15.1`

Fix #9173

* Make `setattr` always return file attr even if no attr where changed

Fix #8976, fix #8991

Co-authored-by: Emmanuel Leblond <[email protected]>

* [rust] Update `ruzstd` to `0.7.3`

* Ignore `RUSTSEC-2024-0398`

Related to #8990

---------

Co-authored-by: Emmanuel Leblond <[email protected]>
FirelightFlagboy added a commit that referenced this pull request Jan 21, 2025
* [rust] update `fuser` to `0.15.1`

Fix #9173

* Make `setattr` always return file attr even if no attr where changed

Fix #8976, fix #8991

Co-authored-by: Emmanuel Leblond <[email protected]>

* [rust] Update `ruzstd` to `0.7.3`

* Ignore `RUSTSEC-2024-0398`

Related to #8990

---------

Co-authored-by: Emmanuel Leblond <[email protected]>
FirelightFlagboy added a commit that referenced this pull request Jan 21, 2025
* [rust] update `fuser` to `0.15.1`

Fix #9173

* Make `setattr` always return file attr even if no attr where changed

Fix #8976, fix #8991

Co-authored-by: Emmanuel Leblond <[email protected]>

* [rust] Update `ruzstd` to `0.7.3`

* Ignore `RUSTSEC-2024-0398`

Related to #8990

---------

Co-authored-by: Emmanuel Leblond <[email protected]>
FirelightFlagboy added a commit that referenced this pull request Jan 21, 2025
* [rust] update `fuser` to `0.15.1`

Fix #9173

* Make `setattr` always return file attr even if no attr where changed

Fix #8976, fix #8991

Co-authored-by: Emmanuel Leblond <[email protected]>

* [rust] Update `ruzstd` to `0.7.3`

* Ignore `RUSTSEC-2024-0398`

Related to #8990

---------

Co-authored-by: Emmanuel Leblond <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Jan 21, 2025
* [rust] update `fuser` to `0.15.1`

Fix #9173

* Make `setattr` always return file attr even if no attr where changed

Fix #8976, fix #8991

Co-authored-by: Emmanuel Leblond <[email protected]>

* [rust] Update `ruzstd` to `0.7.3`

* Ignore `RUSTSEC-2024-0398`

Related to #8990

---------

Co-authored-by: Emmanuel Leblond <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Jan 21, 2025
* [rust] update `fuser` to `0.15.1`

Fix #9173

* Make `setattr` always return file attr even if no attr where changed

Fix #8976, fix #8991

Co-authored-by: Emmanuel Leblond <[email protected]>

* [rust] Update `ruzstd` to `0.7.3`

* Ignore `RUSTSEC-2024-0398`

Related to #8990

---------

Co-authored-by: Emmanuel Leblond <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants