Skip to content

Commit 58abb8f

Browse files
ColinKinlochemanueleaina
authored andcommitted
monitor: Filter results based on arch and repository
This was causing builds with multiple repositories to alias the final status, every result for a given arch reporting the same fail/pass status.
1 parent a9a7994 commit 58abb8f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/monitor.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,12 @@ impl ObsMonitor {
108108
let result = all_results
109109
.results
110110
.into_iter()
111-
.find(|r| r.arch == self.package.arch)
111+
.find(|r| r.repository == self.package.repository && r.arch == self.package.arch)
112112
.ok_or_else(|| {
113113
eyre!(
114-
"Failed to find results for architecture {}",
115-
self.package.arch
114+
"Failed to find results for repository {} and architecture {}",
115+
self.package.repository,
116+
self.package.arch,
116117
)
117118
})?;
118119

0 commit comments

Comments
 (0)