-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir2][feature] make features .so plugins
Summary: Compile features as `.so` plugins instead of full-on `rust_binary` targets. This makes a lot of things nicer, safer and easier to do, but primarily this makes it so that we get `tracing` to "just work (TM)". NOTE: If we actually want to implement features in some other language, we can still have a rust version that just proxies to a separate binary as the previous setup did. Test Plan: ``` ❯ buck2 test fbcode//antlir/antlir2/test_images/... Buck UI: https://www.internalfb.com/buck2/f5c9cff6-74aa-463f-b4e2-9c3986a171df Test UI: https://www.internalfb.com/intern/testinfra/testrun/2533274988662716 Network: Up: 1.2MiB Down: 288B (reSessionID-738635b3-71a3-4a9b-a443-c81076a006ae) Jobs completed: 184. Time elapsed: 1:57.2s. Cache hits: 0%. Commands: 21 (cached: 0, remote: 0, local: 21) Tests finished: Pass 72. Fail 0. Fatal 0. Skip 0. Build failure 0 ``` Logs work ``` ❯ buck2 build --show-output fbcode//antlir/antlir2/test_images/install:install-file[debug][compile][logs] Buck UI: https://www.internalfb.com/buck2/da8c2a37-114b-41f4-82c2-4ad98f8476cb Network: Up: 30MiB Down: 960B (reSessionID-cb3ea9f0-0576-4ee1-96ac-8f1857c6e928) Jobs completed: 75886. Time elapsed: 24.7s. Cache hits: 0%. Commands: 16 (cached: 0, remote: 0, local: 16) BUILD SUCCEEDED fbcode//antlir/antlir2/test_images/install:install-file[debug][compile][logs] buck-out/v2/gen/fbcode/fdd3fedc5f835a2f/antlir/antlir2/test_images/install/__install-file__/compile_logs [email protected] in fbsource ❯ tail buck-out/v2/gen/fbcode/fdd3fedc5f835a2f/antlir/antlir2/test_images/install/__install-file__/compile_logs/compile.log ... I1002 17:30:18.376307 2 fbcode/antlir/antlir2/features/install.rs:278] [compile, install{self: Install { dst: "/hello", group: "root", mode: Mode(438), src: "fbcode/antlir/antlir2/test_images/install/hello.txt", user: "root", binary_info: None }}] return: () ... ``` Reviewed By: sergeyfd Differential Revision: D48046541 fbshipit-source-id: 46e41d984092f3c34040d000e5bf7b8a0eb5a9c5
- Loading branch information
1 parent
a5e3a58
commit fd4d56a
Showing
32 changed files
with
374 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.