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: ClassPathEntryTest and ResourceAccumulatorTest fail on macOS #10069

Open
jnehlmeier opened this issue Dec 23, 2024 · 1 comment
Open

Comments

@jnehlmeier
Copy link
Member

Description

Both tests depend on JDK FileWatcher and macOS is known to have a bad implementation of it. It is relatively slow and resource intensive.

I am not yet sure if these tests are implemented to aggressively or if ClassPathEntry and ResourceAccumulator simply do not work correctly on macOS.

  • ClassPathEntryTest
    • testResourceRenamed
    • testResourceDeleted
    • testResourceCreated
  • ResourceAccumulatorTest
    • testListensInNewDirectories
    • testRenameParentDirectory
    • testRenameDirectory
    • testRenameFile
    • testSymlinkInfiniteLoop
    • testSymlinks
    • testMultipleListeners
    • testDeleteFile
Steps to reproduce

Run dev tests via ANT on macOS.

Known workarounds
Links to further discussions
@jnehlmeier
Copy link
Member Author

The following tests in ClassPathEntryTest are flaky as well. Sometimes they work, sometimes they don't. Seems like they don't work if they are executed last in the test run. ResourceAccumulatorManager.getActiveListenerCount() does not return the expected 0 in the failing case.

  • testForResourceListenerLeaks_pathPrefixSetIsCollected
  • testForResourceListenerLeaks_classPathEntryIsCollected

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

1 participant