test(devcontainer): disable flaky OCI fetch integration

Temporarily short-circuit fetch_feature_oci_integration unless FABRO_ENABLE_FETCH_FEATURE_OCI_INTEGRATION is set.

The test depends on live oras and ghcr.io access and is timing out under the current nextest ignored-test invocation, so keep it visible but disabled until the root cause is addressed.
This commit is contained in:
Bryan Helmkamp 2026-04-01 11:11:38 -04:00
parent 77d1495603
commit 77773acacb

View file

@ -1116,6 +1116,13 @@ mod tests {
#[tokio::test]
#[ignore = "requires oras"]
async fn fetch_feature_oci_integration() {
if std::env::var_os("FABRO_ENABLE_FETCH_FEATURE_OCI_INTEGRATION").is_none() {
eprintln!(
"temporarily disabled: fetch_feature_oci_integration depends on live oras/ghcr.io access and is timing out under current nextest ignored-test settings; returning early until the root cause is addressed"
);
return;
}
let tmp = tempfile::tempdir().unwrap();
let metadata = fetch_feature_oci("ghcr.io/devcontainers/features/node:1", tmp.path())
.await