springdocker 1.0.2__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {springdocker-1.0.2 → springdocker-1.0.3}/PKG-INFO +1 -1
- {springdocker-1.0.2 → springdocker-1.0.3}/pyproject.toml +1 -1
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/benchmarks/runner.py +6 -6
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker.egg-info/PKG-INFO +1 -1
- {springdocker-1.0.2 → springdocker-1.0.3}/LICENSE +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/README.md +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/cli/README.md +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/setup.cfg +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/__init__.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/analyze.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/benchmarks/__init__.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/benchmarks/generate.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/cli.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/commands.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/compare.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/config.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/dockerfile.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/errors.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/plugins.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/project_detect.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/regression.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/services/__init__.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/services/benchmark_service.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/services/dockerfile_service.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/services/project_service.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/services/verify_service.py +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/templates/_section.j2 +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker/templates/dockerfile.j2 +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker.egg-info/SOURCES.txt +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker.egg-info/dependency_links.txt +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker.egg-info/entry_points.txt +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker.egg-info/requires.txt +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/src/springdocker.egg-info/top_level.txt +0 -0
- {springdocker-1.0.2 → springdocker-1.0.3}/tests/test_support.py +0 -0
|
@@ -5,12 +5,12 @@ import csv
|
|
|
5
5
|
import socket
|
|
6
6
|
import subprocess
|
|
7
7
|
import time
|
|
8
|
+
import urllib.error
|
|
9
|
+
import urllib.request
|
|
8
10
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
|
9
11
|
from dataclasses import dataclass
|
|
10
12
|
from pathlib import Path
|
|
11
13
|
|
|
12
|
-
import requests
|
|
13
|
-
|
|
14
14
|
from springdocker.benchmarks.generate import (
|
|
15
15
|
EXPECTED_CSV_HEADER,
|
|
16
16
|
NativeScenarioDefinition,
|
|
@@ -101,10 +101,10 @@ def _wait_readiness(base_url: str, timeout_seconds: float = 40.0) -> int:
|
|
|
101
101
|
start = time.time()
|
|
102
102
|
while time.time() - start < timeout_seconds:
|
|
103
103
|
try:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
except
|
|
104
|
+
with urllib.request.urlopen(base_url, timeout=2.0) as response:
|
|
105
|
+
if response.status < 400:
|
|
106
|
+
return int((time.time() - start) * 1000)
|
|
107
|
+
except (TimeoutError, urllib.error.URLError):
|
|
108
108
|
pass
|
|
109
109
|
time.sleep(0.25)
|
|
110
110
|
return -1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|