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

Compile manifests instead of interpreting them #2518

Merged
merged 1 commit into from Jan 23, 2020

Conversation

hartbit
Copy link
Collaborator

@hartbit hartbit commented Jan 15, 2020

Notice that this change requires modifications to bootstrap and ManifestLoader to make sure the compiled manifest can find the dynamic PackageDescription runtime library.

@hartbit
Copy link
Collaborator Author

hartbit commented Jan 15, 2020

@swift-ci smoke test

@hartbit
Copy link
Collaborator Author

hartbit commented Jan 15, 2020

@swift-ci smoke test

@hartbit
Copy link
Collaborator Author

hartbit commented Jan 15, 2020

@swift-ci smoke test

@hartbit
Copy link
Collaborator Author

hartbit commented Jan 15, 2020

@aciidb0mb3r Do you have an idea what is causing the failures on Linux? I haven't been able to reproduce them in Docker.

@shahmishal
Copy link
Member

@swift-ci smoke test Linux

Utilities/bootstrap Outdated Show resolved Hide resolved
@ankitspd
Copy link
Member

For linux, can you try reproducing by installing the toolchain in some other directory instead of system's /usr? I think it's somehow looking for the swift runtime object at the default path instead of the toolchain 🤔

@hartbit
Copy link
Collaborator Author

hartbit commented Jan 15, 2020

But that wouldn't be causing the exact same issue for Linux self hosted?

@hartbit
Copy link
Collaborator Author

hartbit commented Jan 15, 2020

@swift-ci smoke test

@ankitspd
Copy link
Member

@swift-ci smoke test self hosted

@ankitspd
Copy link
Member

@swift-ci smoke test self hosted

@ankitspd
Copy link
Member

@swift-ci smoke test

@ankitspd ankitspd merged commit 1a4e3f2 into apple:master Jan 23, 2020
@ankitspd ankitspd deleted the compile-manifests branch January 23, 2020 19:07
@fortmarek
Copy link

Hi, I could not find the reason behind this change - is it a question of performance or is there something else?

@hartbit
Copy link
Collaborator Author

hartbit commented Feb 7, 2020 via email

neonichu added a commit to neonichu/swift-package-manager that referenced this pull request Aug 5, 2020
Manifest loading has been sandboxed on macOS for a while, but the change
in apple#2518 broke it for 5.3.

https://bugs.swift.org/browse/SR-13346
rdar://problem/66586184
neonichu added a commit that referenced this pull request Aug 6, 2020
* Reinstate manifest sandboxing

Manifest loading has been sandboxed on macOS for a while, but the change
in #2518 broke it for 5.3.

https://bugs.swift.org/browse/SR-13346
rdar://problem/66586184

* Test manifest sandboxing

This adds tests for manifest sandboxing. Since we made the sandbox more
restrictive in 5.3, there are two tests:
- in 5.2 we check if we can make a network request
- in 5.3 we check if we can launch a process

* Fix 5.3 sandbox profile

* Use 127.0.0.1 for the attempted network request

It doesn't actually matter whether or not the request would succeed
since the test assumes it will always be blocked.
neonichu added a commit to neonichu/swift-package-manager that referenced this pull request Aug 6, 2020
Manifest loading has been sandboxed on macOS for a while, but the change
in apple#2518 broke it for 5.3.

https://bugs.swift.org/browse/SR-13346
rdar://problem/66586184

(cherry picked from commit 4d720d6)
neonichu added a commit that referenced this pull request Aug 7, 2020
Manifest loading has been sandboxed on macOS for a while, but the change
in #2518 broke it for 5.3.

https://bugs.swift.org/browse/SR-13346
rdar://problem/66586184

(cherry picked from commit 4d720d6)
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.

None yet

4 participants