-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir2][errors] integrate prebuilt and compile actions with new err…
…or handler Summary: One of the most common antlir build errors is Eden failing to setup redirections, so let's integrate `antlir2_receive` and `antlir2 compile` with the new action error handler lib from the previous diff. Test Plan: ```name="break antlir2-out" ❯ sudo mount -t tmpfs tmpfs antlir2-out ``` ```name="Try to download an image" ❯ buck2 build --show-output fbcode//metalos/services/base:base.prebuilt.stripped Action failed: fbcode//metalos/services/base:base.prebuilt.stripped--prebuilt (antlir2_prebuilt_layer) Local command returned non-zero exit code 1 Reproduce locally: `env -- 'BUCK_SCRATCH_PATH=buck-out/v2/tmp/fbcode/7fb6662f2bd64550/antlir2_prebuilt_layer' 'RUST_LOG= ...<omitted>... n/fbcode/6a600a0fd69ee02b/metalos/services/base/__base.prebuilt.stripped--prebuilt__/subvol_symlink' (run `buck2 log what-failed` to get the full command)` stdout: T0701 13:46:00.927001 633289 fbcode/antlir/antlir2/antlir2_receive/src/main.rs:103] [receive] setting up WorkingVolume T0701 13:46:00.927459 633289 fbcode/antlir/antlir2/antlir2_rootless/src/lib.rs:81] [receive] setegid(100) T0701 13:46:00.927525 633289 fbcode/antlir/antlir2/antlir2_rootless/src/lib.rs:88] [receive] seteuid(115203) T0701 13:46:00.927752 633289 fbcode/antlir/antlir2/antlir2_receive/src/main.rs:96] [receive, prepare_dst{working_volume: WorkingVolume { path: "antlir2-out" }}] WorkingVolume gave us new path antlir2-out/2bcaf9b0e3674363b422bdaa2959e2fc I0701 13:46:00.927844 633289 fbcode/antlir/antlir2/antlir2_receive/src/main.rs:93] [receive, prepare_dst{working_volume: WorkingVolume { path: "antlir2-out" }}] return: "antlir2-out/2bcaf9b0e3674363b422bdaa2959e2fc" T0701 13:46:00.927959 633289 fbcode/antlir/antlir2/antlir2_rootless/src/lib.rs:110] [receive] escalating privileges to root T0701 13:46:00.928137 633289 fbcode/antlir/antlir2/antlir2_rootless/src/lib.rs:158] [receive] dropping privileges T0701 13:46:00.928191 633289 fbcode/antlir/antlir2/antlir2_rootless/src/lib.rs:160] [receive] setegid(100) T0701 13:46:00.928242 633289 fbcode/antlir/antlir2/antlir2_rootless/src/lib.rs:169] [receive] seteuid(115203) stderr: antlir2_error_handler: {"category":"btrfs","message":"not a btrfs filesystem","locations":[]} Error: Btrfs(NotBtrfs) Buck UI: https://www.internalfb.com/buck2/418376a8-3c44-40bb-85b8-83a409cee4b5 Note: Using experimental modern dice Network: Up: 0B Down: 0B (reSessionID-10d9e049-e084-410f-ac80-46aec10461a7) Command: build. Jobs completed: 4. Time elapsed: 0.2s. Cache hits: 0%. Commands: 1 (cached: 0, remote: 0, local: 1) BUILD FAILED Failed to build 'fbcode//metalos/services/base:base.prebuilt.stripped--prebuilt (cfg:linux-x86_64-fbcode-platform010-compat-clang15-asan-ubsan-dev#6a600a0fd69ee02b)' ``` ```name="Category gets reported to scuba" ❯ scuba -e $'SELECT `category`, `identifier`, `sub_error_categories`, `target_name`, `target_package` FROM `buck2_action_errors` WHERE 1719262033 <= `time` AND `time` <= 1719866832 AND ((`uuid`) IN (\'7ac68dd9-bd85-473e-ac19-1f588d6c785e\')) LIMIT 100;' +------------------------+------------+----------------------+----------------------------------+-------------------------------+ | category | identifier | sub_error_categories | target_name | target_package | +------------------------+------------+----------------------+----------------------------------+-------------------------------+ | antlir2_prebuilt_layer | | ["btrfs"] | base.prebuilt.stripped--prebuilt | fbcode//metalos/services/base | +------------------------+------------+----------------------+----------------------------------+-------------------------------+ 1 row(s) in set (0.56 sec) ``` Reviewed By: sergeyfd Differential Revision: D59243781 fbshipit-source-id: 1dc4906f604055443c633edebe1d71519e6cab98
- Loading branch information
1 parent
b8fbd7f
commit f637f6b
Showing
8 changed files
with
91 additions
and
22 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
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