Skip to content

Commit

Permalink
Add a test case to exercise the fact that parallel export in different
Browse files Browse the repository at this point in the history
image formats generated different metadata.

Signed-off-by: a-palchikov <[email protected]>
  • Loading branch information
a-palchikov committed Jan 20, 2025
1 parent c4349ee commit 8305d6e
Show file tree
Hide file tree
Showing 8 changed files with 1,386 additions and 523 deletions.
955 changes: 547 additions & 408 deletions api/services/control/control.pb.go

Large diffs are not rendered by default.

19 changes: 17 additions & 2 deletions api/services/control/control.proto
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ message CacheOptionsEntry {

message SolveResponse {
// ExporterResponseDeprecated is a combined exporter response - it aggregates
// responses from all exporters running in parallel.
// It is deprecated in favor of the structured exporter response but will be
// responses from all exporters (including cache exporters) running in parallel.
// It is deprecated in favor of the structured exporter responses but will be
// populated as long as it is supported.
map<string, string> ExporterResponseDeprecated = 1;
repeated ExporterResponse exporterResponses = 2;
repeated CacheExporterResponse cacheExporterResponses = 3;
}

message StatusRequest {
Expand Down Expand Up @@ -268,3 +269,17 @@ message ExporterMetadata {
// ID identifies the exporter
string ID = 1;
}

// CacheExporterResponse describes the output of an exporter
message CacheExporterResponse {
// Metadata describes the exporter
CacheExporterMetadata metadata = 1;
// Data is the exporter's output
map<string, string> data = 2;
}

// CacheExporterMetadata describes the cache exporter
message CacheExporterMetadata {
// Name uniquely identifies the exporter
string name = 1;
}
Loading

0 comments on commit 8305d6e

Please sign in to comment.