fix: harden renovate datasource access and registry reliability
Some checks failed
CICD / Build CICD Image Failure Postmortem (push) Blocked by required conditions
CICD / Backend Tests (push) Blocked by required conditions
CICD / Pre-commit Checks (push) Blocked by required conditions
CICD / Frontend Tests (push) Blocked by required conditions
CICD / Backend Doctests (push) Blocked by required conditions
CICD / Frontend Dependency Audit (push) Blocked by required conditions
CICD / Backend Dependency Audit (push) Blocked by required conditions
CICD / CICD Tests Complete (push) Blocked by required conditions
CICD / Build Backend Base Image (push) Blocked by required conditions
CICD / Build Frontend Base Image (push) Blocked by required conditions
CICD / Build Integration Tester Image (push) Blocked by required conditions
CICD / Build E2E Tester Image (push) Blocked by required conditions
CICD / Build Backend Main Image (push) Blocked by required conditions
CICD / Build Frontend Main Image (push) Blocked by required conditions
CICD / Production Images Complete (push) Blocked by required conditions
CICD / Production Image Failures Postmortem (push) Blocked by required conditions
CICD / Source Lanes Failure Postmortem (push) Blocked by required conditions
CICD / Build and Publish CICD Base Image (push) Successful in 25s
CICD / Runtime Black-Box Integration Tests (push) Blocked by required conditions
CICD / Integration Tests Failure Postmortem (push) Blocked by required conditions
CICD / End-to-End Tests (push) Blocked by required conditions
CICD / E2E Tests Failure Postmortem (push) Blocked by required conditions
CICD / Build and Publish CICD Base Image (pull_request) Successful in 1m19s
CICD / Build and Push CICD Image (push) Has been cancelled
CICD / Build and Push CICD Image (pull_request) Successful in 1h20m2s
CICD / Build CICD Image Failure Postmortem (pull_request) Has been skipped
CICD / Backend Tests (pull_request) Failing after 2m2s
CICD / Backend Doctests (pull_request) Successful in 47s
CICD / Frontend Dependency Audit (pull_request) Failing after 2m27s
CICD / Backend Dependency Audit (pull_request) Failing after 2m3s
CICD / Pre-commit Checks (pull_request) Failing after 10m36s
CICD / Frontend Tests (pull_request) Failing after 15m32s
CICD / CICD Tests Complete (pull_request) Failing after 34s
CICD / Build Backend Base Image (pull_request) Has been skipped
CICD / Build Frontend Base Image (pull_request) Has been skipped
CICD / Build Integration Tester Image (pull_request) Has been skipped
CICD / Build E2E Tester Image (pull_request) Has been skipped
CICD / Build Backend Main Image (pull_request) Has been skipped
CICD / Build Frontend Main Image (pull_request) Has been skipped
CICD / Source Lanes Failure Postmortem (pull_request) Successful in 31s
CICD / Production Images Complete (pull_request) Failing after 34s
CICD / Production Image Failures Postmortem (pull_request) Has been skipped
CICD / Runtime Black-Box Integration Tests (pull_request) Has been skipped
CICD / End-to-End Tests (pull_request) Has been skipped
CICD / Integration Tests Failure Postmortem (pull_request) Has been skipped
CICD / E2E Tests Failure Postmortem (pull_request) Has been skipped
Some checks failed
CICD / Build CICD Image Failure Postmortem (push) Blocked by required conditions
CICD / Backend Tests (push) Blocked by required conditions
CICD / Pre-commit Checks (push) Blocked by required conditions
CICD / Frontend Tests (push) Blocked by required conditions
CICD / Backend Doctests (push) Blocked by required conditions
CICD / Frontend Dependency Audit (push) Blocked by required conditions
CICD / Backend Dependency Audit (push) Blocked by required conditions
CICD / CICD Tests Complete (push) Blocked by required conditions
CICD / Build Backend Base Image (push) Blocked by required conditions
CICD / Build Frontend Base Image (push) Blocked by required conditions
CICD / Build Integration Tester Image (push) Blocked by required conditions
CICD / Build E2E Tester Image (push) Blocked by required conditions
CICD / Build Backend Main Image (push) Blocked by required conditions
CICD / Build Frontend Main Image (push) Blocked by required conditions
CICD / Production Images Complete (push) Blocked by required conditions
CICD / Production Image Failures Postmortem (push) Blocked by required conditions
CICD / Source Lanes Failure Postmortem (push) Blocked by required conditions
CICD / Build and Publish CICD Base Image (push) Successful in 25s
CICD / Runtime Black-Box Integration Tests (push) Blocked by required conditions
CICD / Integration Tests Failure Postmortem (push) Blocked by required conditions
CICD / End-to-End Tests (push) Blocked by required conditions
CICD / E2E Tests Failure Postmortem (push) Blocked by required conditions
CICD / Build and Publish CICD Base Image (pull_request) Successful in 1m19s
CICD / Build and Push CICD Image (push) Has been cancelled
CICD / Build and Push CICD Image (pull_request) Successful in 1h20m2s
CICD / Build CICD Image Failure Postmortem (pull_request) Has been skipped
CICD / Backend Tests (pull_request) Failing after 2m2s
CICD / Backend Doctests (pull_request) Successful in 47s
CICD / Frontend Dependency Audit (pull_request) Failing after 2m27s
CICD / Backend Dependency Audit (pull_request) Failing after 2m3s
CICD / Pre-commit Checks (pull_request) Failing after 10m36s
CICD / Frontend Tests (pull_request) Failing after 15m32s
CICD / CICD Tests Complete (pull_request) Failing after 34s
CICD / Build Backend Base Image (pull_request) Has been skipped
CICD / Build Frontend Base Image (pull_request) Has been skipped
CICD / Build Integration Tester Image (pull_request) Has been skipped
CICD / Build E2E Tester Image (pull_request) Has been skipped
CICD / Build Backend Main Image (pull_request) Has been skipped
CICD / Build Frontend Main Image (pull_request) Has been skipped
CICD / Source Lanes Failure Postmortem (pull_request) Successful in 31s
CICD / Production Images Complete (pull_request) Failing after 34s
CICD / Production Image Failures Postmortem (pull_request) Has been skipped
CICD / Runtime Black-Box Integration Tests (pull_request) Has been skipped
CICD / End-to-End Tests (pull_request) Has been skipped
CICD / Integration Tests Failure Postmortem (pull_request) Has been skipped
CICD / E2E Tests Failure Postmortem (pull_request) Has been skipped
This commit is contained in:
@@ -103,6 +103,7 @@ jobs:
|
||||
env:
|
||||
# Prefer dedicated Renovate token, then fall back to existing CI tokens.
|
||||
RENOVATE_TOKEN_SECRET: ${{ secrets.RENOVATE_TOKEN }}
|
||||
RENOVATE_GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_COM_TOKEN }}
|
||||
ACTIONS_TRIGGER_TOKEN: ${{ secrets.ACTIONS_TRIGGER_TOKEN }}
|
||||
PACKAGE_ACCESS_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
|
||||
RENOVATE_DRY_RUN: ${{ inputs.dry_run }}
|
||||
@@ -120,6 +121,7 @@ jobs:
|
||||
RENOVATE_BRANCH_CONCURRENT_LIMIT: "5"
|
||||
RENOVATE_NODE_ARGS: --max-old-space-size=768
|
||||
RENOVATE_OSV_VULNERABILITY_ALERTS: "false"
|
||||
RENOVATE_FETCH_CHANGELOGS: "off"
|
||||
LOG_LEVEL: debug
|
||||
run: |
|
||||
set -euo pipefail
|
||||
@@ -288,7 +290,18 @@ jobs:
|
||||
SELECTED_TOKEN_SOURCE="${SELECTED_TOKEN_RESULT%%:*}"
|
||||
SELECTED_TOKEN="${SELECTED_TOKEN_RESULT#*:}"
|
||||
export RENOVATE_TOKEN="${SELECTED_TOKEN}"
|
||||
export RENOVATE_HOST_RULES="[{\"matchHost\":\"${ENDPOINT_AUTHORITY}\",\"token\":\"${SELECTED_TOKEN}\",\"authType\":\"Token-Only\"}]"
|
||||
RENOVATE_HOST_RULES_PAYLOAD="[{\"matchHost\":\"${ENDPOINT_AUTHORITY}\",\"token\":\"${SELECTED_TOKEN}\",\"authType\":\"Token-Only\"},{\"matchHost\":\"registry.npmjs.org\",\"timeout\":180000,\"concurrentRequestLimit\":4},{\"matchHost\":\"mcr.microsoft.com\",\"timeout\":180000,\"concurrentRequestLimit\":2}]"
|
||||
|
||||
# Authenticate GitHub datasource calls to avoid anonymous GraphQL rate limiting.
|
||||
if [ -n "${RENOVATE_GITHUB_COM_TOKEN:-}" ]; then
|
||||
RENOVATE_HOST_RULES_PAYLOAD="${RENOVATE_HOST_RULES_PAYLOAD%]}"
|
||||
RENOVATE_HOST_RULES_PAYLOAD="${RENOVATE_HOST_RULES_PAYLOAD},{\"matchHost\":\"api.github.com\",\"hostType\":\"github\",\"token\":\"${RENOVATE_GITHUB_COM_TOKEN}\"}]"
|
||||
echo "✓ Using RENOVATE_GITHUB_COM_TOKEN for GitHub datasource requests"
|
||||
else
|
||||
echo "⚠ RENOVATE_GITHUB_COM_TOKEN is not set; GitHub datasource may hit anonymous rate limits"
|
||||
fi
|
||||
|
||||
export RENOVATE_HOST_RULES="${RENOVATE_HOST_RULES_PAYLOAD}"
|
||||
# Rewrite external clone URLs to local-network git transport.
|
||||
export RENOVATE_GIT_REWRITE_FROM="https://dogar.darkhelm.org/"
|
||||
export RENOVATE_GIT_REWRITE_TO="http://${RENOVATE_GIT_USERNAME}:${SELECTED_TOKEN}@kankali.darkhelm.lan:3001/"
|
||||
@@ -327,6 +340,14 @@ jobs:
|
||||
unset RENOVATE_DRY_RUN
|
||||
fi
|
||||
|
||||
# Manual workflow dispatch should execute immediately, regardless of repository schedule windows.
|
||||
if [ "${GITHUB_EVENT_NAME:-}" = "workflow_dispatch" ]; then
|
||||
export RENOVATE_IGNORE_SCHEDULE="true"
|
||||
echo "✓ Manual run detected: ignoring Renovate schedule constraints"
|
||||
else
|
||||
unset RENOVATE_IGNORE_SCHEDULE
|
||||
fi
|
||||
|
||||
run_renovate_with_endpoint() {
|
||||
endpoint="$1"
|
||||
export RENOVATE_ENDPOINT="${endpoint}"
|
||||
@@ -355,6 +376,8 @@ jobs:
|
||||
-e RENOVATE_BRANCH_CONCURRENT_LIMIT \
|
||||
-e RENOVATE_NODE_ARGS \
|
||||
-e RENOVATE_OSV_VULNERABILITY_ALERTS \
|
||||
-e RENOVATE_FETCH_CHANGELOGS \
|
||||
-e RENOVATE_IGNORE_SCHEDULE \
|
||||
--entrypoint /bin/sh \
|
||||
"${RENOVATE_IMAGE}" \
|
||||
-lc 'set -e
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ARG PLAYWRIGHT_BASE_IMAGE=mcr.microsoft/playwright:v1.56.1-jammy
|
||||
ARG PLAYWRIGHT_BASE_IMAGE=mcr.microsoft.com/playwright:v1.56.1-jammy
|
||||
FROM ${PLAYWRIGHT_BASE_IMAGE}
|
||||
|
||||
WORKDIR /workspace/frontend
|
||||
|
||||
@@ -34,5 +34,5 @@ docker run --rm \
|
||||
-e PLAYWRIGHT_JUNIT_OUTPUT_FILE=/tmp/playwright-artifacts/playwright-results.xml \
|
||||
-v "${ROOT_DIR}/frontend:/workspace/frontend" \
|
||||
-v "${E2E_ARTIFACT_DIR}:/tmp/playwright-artifacts" \
|
||||
mcr.microsoft/playwright:v1.56.1-jammy \
|
||||
mcr.microsoft.com/playwright:v1.56.1-jammy \
|
||||
bash -lc "cd /workspace/frontend && corepack enable && yarn install --immutable && yarn test:e2e --reporter=list --timeout=90000"
|
||||
|
||||
Reference in New Issue
Block a user