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 leave behind unremovable file. #194

Open
gbaz opened this issue Oct 20, 2024 · 6 comments
Open

tests leave behind unremovable file. #194

gbaz opened this issue Oct 20, 2024 · 6 comments

Comments

@gbaz
Copy link

gbaz commented Oct 20, 2024

After resolving #97 (i think), running the tests for directory leaves a file that cannot be removed except by root.

This caused the hackage builder to stall for roughly a week because it was unable to remove the following file:

/home/builder/builder-dir/build-cache/tmp-install/directory-1.3.9.0/dist/test-RemovePathForcibly.tmp/removePathForcibly.tmp/f

It would be good if the test suite were fixed to avoid this issue.

@Rufflewind
Copy link
Member

Rufflewind commented Oct 24, 2024

Were the tests interrupted or did any of them fail? Under normal circumstances, RemovePathForcibly.hs is supposed to remove f successfully and there are assertions to verify the removal.

@gbaz
Copy link
Author

gbaz commented Nov 5, 2024

they failed but the available logs don't explain why -- https://hackage.haskell.org/package/directory-1.3.9.0/reports/1

i do think its bad practice for a failing test suite to leave a file that needs to be fixed by hand.

@gbaz
Copy link
Author

gbaz commented Nov 5, 2024

Reran on the builder and here are some lines in the log that seem suspicious:

*** LongPaths: exception: yeah_its_longyeah_its_longyeah_its_longyeah_its_longyeah_its_longyeah_its_longyeah_its_longyeah_its_long: removePathForcibly:openFdAt: permission denied (Permission denied)

*** RemovePathForcibly: exception: f: removePathForcibly:openFdAt: permission denied (Permission denied)

The failures appear to be precisely that removePathForcibly does not work!

@hasufell
Copy link
Member

hasufell commented Nov 5, 2024

Do you have more information on the system that this runs on?

@gbaz
Copy link
Author

gbaz commented Nov 5, 2024

Indeed, I can't remove the created file by hand as the builder user even with rm -f -- I need to change to superuser to do it.

@gbaz
Copy link
Author

gbaz commented Nov 5, 2024

Linux hackage-docbuilder 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 with a nonsuperuser account.

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

No branches or pull requests

3 participants