fix: bake promtool into ci-full image, add download timeout, speed up tests
CI / auto-merge (pull_request) Has been skipped
CI / validate (pull_request) Waiting to run

- Add promtool to ci-full Dockerfile so it's pre-installed in the
  runner image instead of downloaded at runtime on every infra CI run
- Add 60s timeout to _download() in install_tools.py to prevent
  indefinite hangs when GitHub release downloads stall
- Use -n 8 workers for test-unit target (3s vs 4s with auto/16)
- Update test_download to mock urlopen instead of urlretrieve

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
emil
2026-07-17 03:31:15 +02:00
co-authored by Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent 4de11bfc18
commit 101b6a709f
6 changed files with 36 additions and 22 deletions
+3 -2
View File
@@ -20,5 +20,6 @@ COPY . /tmp/devx
RUN pip install --no-cache-dir /tmp/devx[release,molecule,deploy] \
&& rm -rf /tmp/devx
# Install git-cliff (changelog generator for release job) and OpenTofu (for infra deploy jobs)
RUN python3 -m devx.tools.install_tools --tool git-cliff --tool tofu
# Install git-cliff (changelog generator for release job), OpenTofu (for infra deploy jobs),
# and promtool (Prometheus rule validator — used by every infra CI run for alert validation)
RUN python3 -m devx.tools.install_tools --tool git-cliff --tool tofu --tool promtool