Skip to content

Commit

Permalink
ci: Fix nightly. (#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Jul 18, 2023
1 parent fedd542 commit 96fdfd7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions e2e/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

setup:
python3 -m venv venv
./venv/bin/pip install --upgrade pip
./venv/bin/pip install -r requirements.txt
./venv/bin/python -m pip install --editable ../py/h2o_wave
./venv/bin/playwright install
Expand Down
4 changes: 2 additions & 2 deletions e2e/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
cwd = os.path.join(os.path.dirname(__file__))
wave_executable = os.path.join(cwd, 'venv', 'bin', 'wave')
s = requests.Session()
s.mount('http://', HTTPAdapter(max_retries=Retry(total=15, backoff_factor=2)))
s.mount('http://', HTTPAdapter(max_retries=Retry(total=5, backoff_factor=2)))


def start_waved(env: Optional[Dict[str, str]] = None):
Expand All @@ -21,7 +21,7 @@ def start_waved(env: Optional[Dict[str, str]] = None):
if waved_p.returncode is not None:
raise Exception('Failed to start waved')

res = s.get(f'http://localhost:10101/{os.environ.get("H2O_WAVE_BASE_URL", "/")}')
res = s.get(f'http://localhost:10101/{os.environ.get("H2O_WAVE_BASE_URL", "/")}', timeout=10)
if res.status_code != 200:
raise Exception('Failed to start waved')

Expand Down
3 changes: 2 additions & 1 deletion py/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ setup: ## Install dependencies

setup-tests: ## Install dependencies for tests only
python3 -m venv venv
echo "# Generated in hatch_build.py\n__platform__ = 'linux'\n__arch__ = 'amd64'" > h2o_wave/h2o_wave/metadata.py
./venv/bin/python -m pip install --editable h2o_wave
./venv/bin/pip install httpx
./venv/bin/pip install httpx typing_extensions

.PHONY: docs
docs: ## Build API docs
Expand Down
4 changes: 3 additions & 1 deletion setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ Set-Location ..
# Setup Py tests.
Set-Location py
python -m venv venv
.\venv\Scripts\python -m pip install --upgrade pip
.\venv\Scripts\python -m pip install --editable h2o_wave
.\venv\Scripts\pip install httpx
.\venv\Scripts\pip install httpx typing_extensions
echo "# Generated in hatch_build.py\n__platform__ = 'linux'\n__arch__ = 'amd64'" > h2o_wave/h2o_wave/metadata.py
if ($LastExitCode -ne 0) { exit $LastExitCode }

Set-Location ..
Expand Down

0 comments on commit 96fdfd7

Please sign in to comment.