Skip to content

Commit 34804e1

Browse files
authored
fix(e2e): replace Docker Hub images in E2E tests to avoid rate limits (#369)
1 parent 241e95d commit 34804e1

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

e2e/rust/tests/custom_image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::io::Write;
1515
use openshell_e2e::harness::output::strip_ansi;
1616
use openshell_e2e::harness::sandbox::SandboxGuard;
1717

18-
const DOCKERFILE_CONTENT: &str = r#"FROM python:3.13-slim
18+
const DOCKERFILE_CONTENT: &str = r#"FROM public.ecr.aws/docker/library/python:3.13-slim
1919
2020
# iproute2 is required for sandbox network namespace isolation.
2121
RUN apt-get update && apt-get install -y --no-install-recommends iproute2 \

e2e/rust/tests/forward_proxy_l7_bypass.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use openshell_e2e::harness::sandbox::SandboxGuard;
1717
use tempfile::NamedTempFile;
1818
use tokio::time::{interval, timeout};
1919

20-
const TEST_SERVER_IMAGE: &str = "python:3.13-alpine";
20+
const TEST_SERVER_IMAGE: &str = "public.ecr.aws/docker/library/python:3.13-alpine";
2121

2222
struct DockerServer {
2323
port: u16,
@@ -79,7 +79,7 @@ HTTPServer(("0.0.0.0", 8000), Handler).serve_forever()
7979

8080
async fn wait_until_ready(&self) -> Result<(), String> {
8181
let container_id = self.container_id.clone();
82-
timeout(Duration::from_secs(30), async move {
82+
timeout(Duration::from_secs(60), async move {
8383
let mut tick = interval(Duration::from_millis(500));
8484
loop {
8585
tick.tick().await;
@@ -99,7 +99,7 @@ HTTPServer(("0.0.0.0", 8000), Handler).serve_forever()
9999
}
100100
})
101101
.await
102-
.map_err(|_| "docker test server did not become ready within 30s".to_string())
102+
.map_err(|_| "docker test server did not become ready within 60s".to_string())
103103
}
104104
}
105105

e2e/rust/tests/host_gateway_alias.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use tokio::time::{interval, timeout};
1717

1818
const INFERENCE_PROVIDER_NAME: &str = "e2e-host-inference";
1919
const INFERENCE_PROVIDER_UNREACHABLE_NAME: &str = "e2e-host-inference-unreachable";
20-
const TEST_SERVER_IMAGE: &str = "python:3.13-alpine";
20+
const TEST_SERVER_IMAGE: &str = "public.ecr.aws/docker/library/python:3.13-alpine";
2121
static INFERENCE_ROUTE_LOCK: Mutex<()> = Mutex::new(());
2222

2323
async fn run_cli(args: &[&str]) -> Result<String, String> {
@@ -118,7 +118,7 @@ HTTPServer(("0.0.0.0", 8000), Handler).serve_forever()
118118

119119
async fn wait_until_ready(&self) -> Result<(), String> {
120120
let container_id = self.container_id.clone();
121-
timeout(Duration::from_secs(30), async move {
121+
timeout(Duration::from_secs(60), async move {
122122
let mut tick = interval(Duration::from_millis(500));
123123
loop {
124124
tick.tick().await;
@@ -141,7 +141,7 @@ HTTPServer(("0.0.0.0", 8000), Handler).serve_forever()
141141
.await
142142
.map_err(|_| {
143143
format!(
144-
"docker test server {} did not become ready within 30s",
144+
"docker test server {} did not become ready within 60s",
145145
self.container_id
146146
)
147147
})?

0 commit comments

Comments
 (0)