Skip to content

Reset ACLs between each subtest in granular/05.t - #70

Open
asomers wants to merge 7 commits into
pjd:masterfrom
asomers:reset_acl
Open

asomers wants to merge 7 commits into
pjd:masterfrom
asomers:reset_acl

Conversation

@asomers

@asomers asomers commented Sep 5, 2022

Copy link
Copy Markdown
Collaborator

This way subtests can stand alone rather than depending on each other.

Also, fix several expectations. Comments indicate that the correct
behavior was not observed, but rather than annotate it with a "todo"
statement the assertions were altered to expect incorrect behavior
instead. But in fact the correct behavior is observed when starting
with a fresh ACL for each subtest.

This way subtests can stand alone rather than depending on each other.

Also, fix several expectations.  Comments indicate that the correct
behavior was not observed, but rather than annotate it with a "todo"
statement the assertions were altered to expect incorrect behavior
instead.  But in fact the correct behavior is observed when starting
with a fresh ACL for each subtest.
@asomers
asomers requested a review from ngie-eign September 5, 2022 20:23

@ngie-eign ngie-eign left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  • Why hardcode the full path to setfacl multiple times?
  • The exit code from setfacl isn't being checked.
  • Creating new directories for each subtest seems like the cleanest way to ensure that the state's correct instead of relying on CWD.

@ngie-eign ngie-eign left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/bin should be in $PATH.
Does this test work on Linux or should it be made to work on Linux/ZFS?

Comment thread tests/granular/05.t Outdated
Comment thread tests/granular/05.t Outdated
Comment thread tests/granular/05.t Outdated
Comment thread tests/granular/05.t
Comment thread tests/granular/05.t
Comment thread tests/granular/05.t Outdated
Comment thread tests/granular/05.t Outdated
Comment thread tests/granular/05.t Outdated
Comment thread tests/granular/05.t
Comment thread tests/granular/05.t

@ngie-eign ngie-eign left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@asomers : would you please apply the changes?

@asomers

asomers commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

Sorry, but it's been too long since I worked on this. And I think that nowadays my time would be spent more productively on other projects. Would you like to take over this PR, @ngie-eign ?

@ngie-eign

Copy link
Copy Markdown
Collaborator

Sorry, but it's been too long since I worked on this. And I think that nowadays my time would be spent more productively on other projects. Would you like to take over this PR, @ngie-eign ?

Sure -- I can do that, but I need write access to the repo.

@asomers

asomers commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator Author

Sorry, but it's been too long since I worked on this. And I think that nowadays my time would be spent more productively on other projects. Would you like to take over this PR, @ngie-eign ?

Sure -- I can do that, but I need write access to the repo.

I just invited you to collaborate on my fork.

@ngie-eign

Copy link
Copy Markdown
Collaborator

The test doesn't even seem to pass as-is on FreeBSD 15.1-RELEASE prior to your changes :(...

@ngie-eign

Copy link
Copy Markdown
Collaborator

I've been walking through the tests over the past few hours and I'm trying to isolate each of them into their respective "assertion groups" to help eliminate cascading failures present in 15.1-RELEASE, which your proposed changes don't address since they're issues with ZFS as-is in FreeBSD.

@ngie-eign

ngie-eign commented Aug 9, 2026 •

Copy link
Copy Markdown
Collaborator

I think it's worth just taking the tests, distilling them down to their expectations (as shorthand testplans), then convert it over to the rust-equivalent tests since the tests don't function as-is against FreeBSD 15.1-RELEASE with the default settings noted in zfsprops(7). I'll look at doing that with #88 .

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