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

Allow disabling SwiftPM sandboxing #1386

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

award999
Copy link
Contributor

To get our tests to run in a sandbox, we need to disable sandboxing because you cannot create a new sandbox when you're already running under a sandbox

  • Add new swift.disableSandbox setting
  • Disable sandboxing for tasks and commands run by the extension
  • Disable hardware acceleration since ci.swift.org will run on x64
  • Fix failing xcode watcher unit test
  • Increase some timeouts as build times seem slower on these nodes
  • Skip any LSP dependent tests for 6.0 or earlier. The LSP will only allow disabling sandboxing in 6.1+
  • Disable debugging tests since need shareport permission

@award999 award999 changed the title Allow disabling SwiftPM sanboxing Allow disabling SwiftPM sandboxing Feb 13, 2025
@award999
Copy link
Contributor Author

@swift-ci please test

@award999
Copy link
Contributor Author

@swift-ci please test

@award999
Copy link
Contributor Author

@swift-ci please test

@award999
Copy link
Contributor Author

@swift-ci please test

@award999
Copy link
Contributor Author

@swift-ci please test

@award999
Copy link
Contributor Author

@swift-ci please test

@award999 award999 force-pushed the sandbox-rebased branch 3 times, most recently from e326b02 to ff19a00 Compare February 13, 2025 17:47
@award999 award999 requested a review from plemarquand February 13, 2025 17:48
@award999 award999 marked this pull request as ready for review February 13, 2025 17:48
Copy link
Contributor

@plemarquand plemarquand left a comment

Choose a reason for hiding this comment

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

Looks good to me. CI failure on 6.0 linux should hopefully be resolved by #1387

src/toolchain/BuildFlags.ts Outdated Show resolved Hide resolved
To get our tests to run in a sandbox, we need to disable sandboxing
because you cannot create a new sandbox when you're already running
under a sandbox

- Add new `swift.disableSandbox` setting
- Disable sandboxing for tasks and commands run by the extension
- Disable hardware acceleration since ci.swift.org will run on x64
- Fix failing xcode watcher unit test
- Increase some timeouts as build times seem slower on these nodes
- Skip any LSP dependent tests for 6.0 or earlier. The LSP will
  only allow disabling sandboxing in 6.1+
- Disable debugging tests since need shareport permission
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