Skip to content

Conversation

asodja
Copy link
Member

@asodja asodja commented Dec 20, 2024

Relates to #31394

@asodja asodja self-assigned this Dec 20, 2024
@asodja asodja added a:feature A new functionality in:daemon labels Dec 20, 2024
@asodja asodja force-pushed the asodja/unix-domain-sockets branch from b330a46 to 0a3f978 Compare December 20, 2024 15:26
Comment on lines +176 to +181
// TODO: Where to put domain sockets? If we put them in gradleUserHomeDir, we can get
// java.net.SocketException: Unix domain path too long
File unixDomainSocketsDir = new File("/tmp/gradle");
Copy link
Member

@octylFractal octylFractal Dec 20, 2024

Choose a reason for hiding this comment

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

I'm unsure where macOS expects them, but the Linux standard is to put these things in $XDG_RUNTIME_DIR or failing that $TMPDIR.

Looking at https://github.com/dirs-dev/directories-jvm/blob/main/src/main/java/dev/dirs/ProjectDirectories.java#L237, it seems like there's no equivalent directory for macOS/Windows.

So I think using $XDG_RUNTIME_DIR/gradle on Linux if possible, and using the actual temporary directory ${java.io.tmpdir}/gradle otherwise, would be the best option.

Copy link
Member Author

@asodja asodja Dec 21, 2024

Choose a reason for hiding this comment

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

Thanks for looking in to that! It might make more sense to use that. 🤔

Note that I checked System.getProperty("java.io.tmpdir") value and it looks like it can be long path too, e.g. /Users/asodja/workspace/gradle/subprojects/core/build/tmp for some tests when running locally.

So maybe we need a different fallback. I wonder what location others use, e.g. I know Docker uses docker.sock

@asodja asodja force-pushed the asodja/unix-domain-sockets branch from fb4db64 to b009470 Compare December 21, 2024 14:20
@gradle gradle deleted a comment from asodja Dec 21, 2024
@gradle gradle deleted a comment from asodja Dec 21, 2024
@gradle gradle deleted a comment from asodja Dec 21, 2024
@gradle gradle deleted a comment from asodja Dec 21, 2024
@gradle gradle deleted a comment from asodja Dec 21, 2024
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If you don't want the stale bot to close it, then set a milestone for it.

@github-actions github-actions bot added the stale label Jan 20, 2025
Copy link
Contributor

github-actions bot commented Feb 3, 2025

This pull request has been automatically closed due to inactivity.

@github-actions github-actions bot closed this Feb 3, 2025
@asodja asodja reopened this Feb 28, 2025
@github-actions github-actions bot removed the stale label Feb 28, 2025
Adjust tests to work with UnixDomainSocketFileCommunicatorProvider

Handle cases where we have multiple instances of UnixDomainSocketFileLockCommunicator
@asodja asodja force-pushed the asodja/unix-domain-sockets branch from b009470 to 18f38a7 Compare February 28, 2025 10:20
@asodja
Copy link
Member Author

asodja commented Feb 28, 2025

@bot-gradle test this

@bot-gradle

This comment has been minimized.

@bot-gradle
Copy link
Collaborator

The following builds have failed:

Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If you don't want the stale bot to close it, then set a milestone for it.

@github-actions github-actions bot added the stale label Mar 30, 2025
Copy link
Contributor

This pull request has been automatically closed due to inactivity.

@github-actions github-actions bot closed this Apr 13, 2025
@asodja asodja reopened this May 19, 2025
@github-actions github-actions bot removed the stale label May 19, 2025
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If you don't want the stale bot to close it, then set a milestone for it.

@github-actions github-actions bot added the stale label Jun 18, 2025
Copy link
Contributor

github-actions bot commented Jul 2, 2025

This pull request has been automatically closed due to inactivity.

@github-actions github-actions bot closed this Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants