feat: add configurable battle loss cooldown in Web 2.0.13
Web image / image (push) Waiting to run

This commit is contained in:
AttilaNet
2026-11-17 00:17:52 +08:00
parent 598bdf5c1c
commit b976151263
23 changed files with 297 additions and 43 deletions
+8
View File
@@ -59,6 +59,8 @@ jobs:
PY
- name: Install Web runtime and test dependencies
run: python -m pip install -r ranch_web/requirements-test.txt
- name: Offline battle loss cooldown and progression regression
run: python -B -m unittest ranch_assistant.tests.test_battle_retry ranch_assistant.tests.test_progression_replay_loop ranch_web.tests.test_web_policies -v
- name: Offline sweep hidden handoff, battles, and engine regression
timeout-minutes: 3
run: |
@@ -111,6 +113,12 @@ jobs:
WEB_VERSION: ${{ steps.version.outputs.version }}
VCS_REF: ${{ github.sha }}
run: docker build --build-arg "WEB_VERSION=$WEB_VERSION" --build-arg "VCS_REF=$VCS_REF" --tag ranch-web-smoke .
- name: Verify image version and source revision
env:
VCS_REF: ${{ github.sha }}
run: |
docker image inspect ranch-web-smoke --format '{{json .Config.Labels}}' > /tmp/ranch-web-image-labels.json
python -c "import json,os; from ranch_web import __version__; labels=json.load(open('/tmp/ranch-web-image-labels.json')); assert labels['org.opencontainers.image.version']==__version__; assert labels['org.opencontainers.image.revision']==os.environ['VCS_REF']"
- name: Offline container health, persistence permissions, and graceful stop
run: |
docker run --detach --name ranch-web-smoke --network none --read-only \