full-smoke-enrichment-weekly #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: full-smoke-enrichment-weekly | |
| on: | |
| schedule: | |
| - cron: "0 4 * * 0" | |
| workflow_dispatch: | |
| concurrency: | |
| group: full-smoke-enrichment-weekly | |
| cancel-in-progress: false | |
| jobs: | |
| full-smoke-enrichment: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 120 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: | | |
| services/api/package-lock.json | |
| services/frontend/package-lock.json | |
| - name: Install API dependencies | |
| working-directory: services/api | |
| run: npm ci | |
| - name: Run API tests | |
| working-directory: services/api | |
| run: npm test | |
| - name: Install frontend dependencies | |
| working-directory: services/frontend | |
| run: npm ci | |
| - name: Build frontend | |
| working-directory: services/frontend | |
| run: npm run build | |
| - name: Compose up (enrichment stack, retry) | |
| env: | |
| COMPOSE_UP_RETRIES: "1" | |
| COMPOSE_UP_RETRY_DELAY_SEC: "30" | |
| R_ENGINE_INSTALL_ENRICHMENT_PACKAGES: "1" | |
| run: scripts/compose-up-retry.sh | |
| - name: Compose ps | |
| run: docker compose --env-file .env.example ps | |
| - name: Full smoke (runtime path) | |
| env: | |
| SKIP_BUILD: "1" | |
| EXPECT_STORAGE_MODE: "blob" | |
| run: scripts/compose-smoke.sh | |
| - name: Collect compose logs | |
| if: always() | |
| env: | |
| COMPOSE_LOG_MAX_SERVICES_BYTES: "5242880" | |
| COMPOSE_LOG_MAX_EVENTS_BYTES: "10485760" | |
| COMPOSE_LOG_TAIL_SERVICES_BYTES: "262144" | |
| COMPOSE_LOG_TAIL_EVENTS_BYTES: "524288" | |
| run: scripts/collect-compose-logs.sh /tmp/compose-logs-enrichment | |
| - name: Upload compose logs artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: compose-logs-enrichment | |
| path: /tmp/compose-logs-enrichment | |
| retention-days: 7 | |
| - name: Publish smoke summary | |
| if: always() | |
| run: | | |
| { | |
| echo "### Full Smoke Enrichment Weekly" | |
| echo "- install_enrichment: 1 (fixed)" | |
| echo "- logs_artifact: compose-logs-enrichment" | |
| if [[ -f /tmp/compose-logs-enrichment/manifest.txt ]]; then | |
| echo "- manifest:" | |
| echo '```text' | |
| sed -n '1,80p' /tmp/compose-logs-enrichment/manifest.txt | |
| echo '```' | |
| fi | |
| } >> "$GITHUB_STEP_SUMMARY" | |
| - name: Compose down | |
| if: always() | |
| run: docker compose --env-file .env.example down -v --remove-orphans |