-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Nested Cargo calls and session IDs #16477
Copy link
Copy link
Open
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Z-build-analysisNightly: build-analysisNightly: build-analysis
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Z-build-analysisNightly: build-analysisNightly: build-analysis
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
With
-Zbuild-analysis, Cargo assigns a unique session ID to each invocation for logging purpose. However, this creates challenges when Cargo calls itself recursively (for examplecargo fix) or when external build orchestrators call Cargo multiple times within a single "build session." These use cases might want a way to correlate all calls.Currently, each nested call gets its own session ID, making it difficult to associate related logs across the entire build process.
Proposed Solution
Some possible solutions:
build-startedevent can have acustom_metadatafield for external build orchestratorsNotes
Part of #15844
See also