refactor: single /var/lib SPOT + swarm Playwright artifact upload

SPOT: declare the var-lib base once in default.env as INFINITO_DIR_VAR_LIB; the env build derives INFINITO_PLAYWRIGHT_REPORTS_BASE_DIR from it; reference it everywhere (utils/paths.py, scripts via ${...:?}, tests, the dev inventory's DIR_VAR_LIB injection) instead of hardcoding the literal. group_vars keeps the literal default; the env-lookup lives in the dev inventory per the no-ansible-env-lookups lint rule. pull_specific_host.py --folder is now required and the role passes {{ DIR_BACKUPS }}.

Swarm e2e: collect_playwright_reports.sh docker-cp's the reports off the manager plus a workflow upload step, so swarm Playwright traces reach CI artifacts (was compose-only).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 4.8 committed 2026-06-26 17:01:09 +02:00
1 parent 6d417aa9a4
commit cf765ee00c
24 files changed
+110 -35

No files matched your search

+15
View File
@@ -220,6 +220,21 @@ jobs:
path: /tmp/inventory-swarm-${{ matrix.apps }}.zip
if-no-files-found: ignore
- name: "Collect Playwright reports from the manager"
if: always()
shell: bash
env:
APP_ID: ${{ matrix.apps }}
run: ${{ env.SCRIPTS }}/collect_playwright_reports.sh
- name: "Upload Playwright artifacts"
if: ${{ always() && !env.ACT }}
uses: actions/upload-artifact@v7
with:
name: playwright-swarm-${{ matrix.apps }}
path: /tmp/playwright-artifacts/
if-no-files-found: ignore
- name: "Cleanup"
if: always()
run: ${{ env.SCRIPTS }}/13_cleanup.sh