mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 22:37:29 +00:00
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:
1 parent
6d417aa9a4
commit
cf765ee00c
24 files changed
+110
-35
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user