Skip to content

Commit 132f5b7

Browse files
authored
ls-apis choking on the latest dpd-client (#7853)
1 parent 8dcfd86 commit 132f5b7

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/buildomat/build-and-test.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ banner ls-apis
7070
ptime -m cargo xtask ls-apis apis &&
7171
ptime -m cargo xtask ls-apis deployment-units &&
7272
ptime -m cargo xtask ls-apis servers &&
73-
ptime -m cargo xtask ls-apis check
73+
ptime -m cargo xtask ls-apis check && \
74+
ptime -m cargo xtask ls-apis adoc > /dev/null
7475
)
7576

7677
#

dev-tools/ls-apis/src/workspaces.rs

+8-7
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl Workspaces {
180180
})
181181
.collect();
182182

183-
// TODO As of this writing, we have two distinct packages called
183+
// TODO As of this writing, we have three distinct packages called
184184
// "dpd-client":
185185
//
186186
// - There's one in the "dendrite" repo. This is used by:
@@ -189,6 +189,8 @@ impl Workspaces {
189189
// - `ddm` (in Maghemite)
190190
// - `ddmd` (in Maghemite)
191191
// - `mgd` (via `mg-lower`) (in Maghemite)
192+
// - There's one in the "lldpd" repo. This is used by:
193+
// - `lldpd` (in lldpd)
192194
// - There's one in the "omicron" repo. This is used by:
193195
// - `wicketd` (in Omicron)
194196
// - `omicron-sled-agent` (in Omicron)
@@ -211,12 +213,11 @@ impl Workspaces {
211213
//
212214
// To keep things working, we just have this function always report the
213215
// one in the Omicron repo.
214-
if server_pkgname == "dpd-client" && found_in_workspaces.len() == 2 {
215-
if found_in_workspaces[0].0.name() == "omicron" {
216-
return Ok(found_in_workspaces[0]);
217-
}
218-
if found_in_workspaces[1].0.name() == "omicron" {
219-
return Ok(found_in_workspaces[1]);
216+
if server_pkgname == "dpd-client" && found_in_workspaces.len() == 3 {
217+
if let Some(rv) =
218+
found_in_workspaces.iter().find(|w| w.0.name() == "omicron")
219+
{
220+
return Ok(*rv);
220221
}
221222
}
222223
ensure!(

0 commit comments

Comments
 (0)