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

Use temporary directory for debug sockets on NIX systems #4637

Merged
merged 5 commits into from
Jul 1, 2021

Conversation

valters-tomsons
Copy link
Contributor

@valters-tomsons valters-tomsons commented Jul 1, 2021

Fixes: #4523

This PR stores debug sockets in /tmp/ or $TMPDIR (if set) on Linux & OSX platforms.

@gregg-miskelly
Copy link
Contributor

I haven't investigated much, but this feels like the wrong fix to me -- in your exact case this is going to get you under the limit, but if your user alias would be a bit longer then it wouldn't help.

Isn't a better fix to move this under $TMP on OSX?

@dnfadmin
Copy link

dnfadmin commented Jul 1, 2021

CLA assistant check
All CLA requirements met.

@valters-tomsons
Copy link
Contributor Author

Agreed.

I have added functionality which overrides socket paths to $TMPDIR and /tmp/ for Linux & OSX.

I apologize in advance if code is not clean, I have not worked with typescript much in the past.

@valters-tomsons valters-tomsons changed the title Reduce pipeSuffix length Use temporary directory for debug sockets on NIX systems Jul 1, 2021
Copy link
Contributor

@gregg-miskelly gregg-miskelly left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM. Thanks for doing this.

src/features/dotnetTest.ts Outdated Show resolved Hide resolved
src/features/dotnetTest.ts Outdated Show resolved Hide resolved
@gregg-miskelly gregg-miskelly enabled auto-merge (squash) July 1, 2021 22:39
@gregg-miskelly gregg-miskelly merged commit 69711c2 into dotnet:master Jul 1, 2021
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.

Tests debug socket too long on domain users
3 participants