-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
Test FlakeTests that work. Wait, no. Actually yes. Hang on. Something is broken.Tests that work. Wait, no. Actually yes. Hang on. Something is broken.
Description
https://github.com/oxidecomputer/omicron/runs/10768352787 / https://buildomat.eng.oxide.computer/wg/0/details/01GQ6DS2KJ0QDM6YWDNRZDTCHZ/B44Zl5JIuOAhkn5GInFdH46LbPhq8Dq00FztPZBK0cQJCm5s/01GQ6DSB1H70J2FKRWK36STEQ6#S11679:
---- integration_tests::instances::test_instance_metrics stdout ----
--
log file: /var/tmp/omicron_tmp/test_all-df03734e17da7df2-test_instance_metrics.51359.58.log
note: configured to log to "/var/tmp/omicron_tmp/test_all-df03734e17da7df2-test_instance_metrics.51359.58.log"
thread 'integration_tests::instances::test_instance_metrics' panicked at 'attempt to subtract with overflow', nexus/tests/integration_tests/metrics.rs:33:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
WARN: dropped CockroachInstance without cleaning it up first (there may still be a child process running and a temporary directory leaked)
WARN: temporary directory leaked: /var/tmp/omicron_tmp/.tmpm1YIU2
WARN: dropped ClickHouseInstance without cleaning it up first (there may still be a child process running and a temporary directory leaked)
omicron/nexus/tests/integration_tests/metrics.rs
Lines 26 to 39 in d6dc72f
| pub async fn query_for_latest_metric( | |
| client: &ClientTestContext, | |
| path: &str, | |
| ) -> i64 { | |
| let measurements: ResultsPage<Measurement> = | |
| objects_list_page_authz(client, path).await; | |
| let item = &measurements.items[measurements.items.len() - 1]; | |
| let datum = match item.datum() { | |
| Datum::I64(c) => c, | |
| _ => panic!("Unexpected datum type {:?}", item.datum()), | |
| }; | |
| return *datum; | |
| } |
This panics if measurements.items.len() == 0.
Metadata
Metadata
Assignees
Labels
Test FlakeTests that work. Wait, no. Actually yes. Hang on. Something is broken.Tests that work. Wait, no. Actually yes. Hang on. Something is broken.