Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -896,25 +896,6 @@ jobs:
- name: Install dependencies
run: uv sync --group dev

- name: Set up Node.js for TypeScript comment parsing
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
with:
node-version: '20'

- name: Install locked TypeScript parser
shell: bash
run: |
set -euo pipefail
package_dir="$RUNNER_TEMP/comment-policy-node"
mkdir -p "$package_dir"
cp quality/comment-policy-package.json "$package_dir/package.json"
cp quality/comment-policy-package-lock.json "$package_dir/package-lock.json"
(
cd "$package_dir"
npm ci --ignore-scripts --no-audit --no-fund
)
echo "COMMENT_POLICY_TYPESCRIPT=$package_dir/node_modules/typescript" >> "$GITHUB_ENV"

- name: Download medium collection evidence
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
with:
Expand Down
49 changes: 42 additions & 7 deletions .github/workflows/publication-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,13 @@ jobs:
[ -n "${ARTIFACT_ID:-}" ] || continue
RUN_META=$(gh api "repos/${{ github.repository }}/actions/runs/$RUN_ID" --jq '[.name, .status, .conclusion, .event] | @tsv')
IFS=$'\t' read -r RUN_NAME RUN_STATUS RUN_CONCLUSION RUN_EVENT <<< "$RUN_META"
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" || "$RUN_STATUS" != "completed" || "$RUN_EVENT" != "workflow_dispatch" ]]; then
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" ]]; then
continue
fi
if [[ "$RUN_STATUS" != "completed" ]]; then
continue
fi
if [[ "$RUN_EVENT" != "workflow_dispatch" ]]; then
continue
fi
rm -rf prior-candidate && mkdir prior-candidate
Expand Down Expand Up @@ -359,9 +365,27 @@ jobs:
RUN_META=$(gh api "repos/${{ github.repository }}/actions/runs/$CANDIDATE_RUN_ID" \
--jq '[.name, .status, .conclusion, .event, .head_branch, .head_sha] | @tsv')
IFS=$'\t' read -r RUN_NAME RUN_STATUS RUN_CONCLUSION RUN_EVENT RUN_BRANCH RUN_HEAD_SHA <<< "$RUN_META"
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" || "$RUN_STATUS" != "completed" || \
"$RUN_CONCLUSION" != "success" || "$RUN_EVENT" != "workflow_dispatch" || \
"$RUN_BRANCH" != "develop" || "$RUN_HEAD_SHA" != "$EXPECTED_WORKFLOW_SHA" ]]; then
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" ]]; then
echo "::error::approved candidate run is not a successful develop publication rehearsal"
exit 1
fi
if [[ "$RUN_STATUS" != "completed" ]]; then
echo "::error::approved candidate run is not a successful develop publication rehearsal"
exit 1
fi
if [[ "$RUN_CONCLUSION" != "success" ]]; then
echo "::error::approved candidate run is not a successful develop publication rehearsal"
exit 1
fi
if [[ "$RUN_EVENT" != "workflow_dispatch" ]]; then
echo "::error::approved candidate run is not a successful develop publication rehearsal"
exit 1
fi
if [[ "$RUN_BRANCH" != "develop" ]]; then
echo "::error::approved candidate run is not a successful develop publication rehearsal"
exit 1
fi
if [[ "$RUN_HEAD_SHA" != "$EXPECTED_WORKFLOW_SHA" ]]; then
echo "::error::approved candidate run is not a successful develop publication rehearsal"
exit 1
fi
Expand Down Expand Up @@ -833,8 +857,13 @@ jobs:
[ -n "${ARTIFACT_ID:-}" ] || continue
RUN_META=$(gh api "repos/${{ github.repository }}/actions/runs/$RUN_ID" --jq '[.name, .status, .conclusion, .event] | @tsv')
IFS=$'\t' read -r RUN_NAME RUN_STATUS RUN_CONCLUSION RUN_EVENT <<< "$RUN_META"
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" && "$RUN_NAME" != "Publication Transactions" ]] || \
[[ "$RUN_STATUS" != "completed" || "$RUN_EVENT" != "workflow_dispatch" ]]; then
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" && "$RUN_NAME" != "Publication Transactions" ]]; then
continue
fi
if [[ "$RUN_STATUS" != "completed" ]]; then
continue
fi
if [[ "$RUN_EVENT" != "workflow_dispatch" ]]; then
continue
fi
rm -rf current-candidate && mkdir current-candidate
Expand Down Expand Up @@ -1067,7 +1096,13 @@ jobs:
[ -n "${ARTIFACT_ID:-}" ] || continue
RUN_META=$(gh api "repos/${{ github.repository }}/actions/runs/$RUN_ID" --jq '[.name, .status, .conclusion, .event] | @tsv')
IFS=$'\t' read -r RUN_NAME RUN_STATUS RUN_CONCLUSION RUN_EVENT <<< "$RUN_META"
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" || "$RUN_STATUS" != "completed" || "$RUN_EVENT" != "workflow_dispatch" ]]; then
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" ]]; then
continue
fi
if [[ "$RUN_STATUS" != "completed" ]]; then
continue
fi
if [[ "$RUN_EVENT" != "workflow_dispatch" ]]; then
continue
fi
rm -rf candidate && mkdir candidate
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/publication-preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,16 @@ jobs:
RUN_META=$(gh api "repos/${{ github.repository }}/actions/runs/$RUN_ID" \
--jq '[.name, .status, .conclusion, .event, .head_branch] | @tsv')
IFS=$'\t' read -r RUN_NAME RUN_STATUS RUN_CONCLUSION RUN_EVENT RUN_BRANCH <<< "$RUN_META"
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" || "$RUN_STATUS" != "completed" || \
"$RUN_EVENT" != "workflow_dispatch" || "$RUN_BRANCH" != "develop" ]]; then
if [[ "$RUN_NAME" != "Publication Control Plane Deployment" ]]; then
continue
fi
if [[ "$RUN_STATUS" != "completed" ]]; then
continue
fi
if [[ "$RUN_EVENT" != "workflow_dispatch" ]]; then
continue
fi
if [[ "$RUN_BRANCH" != "develop" ]]; then
continue
fi
rm -rf independent-receipt && mkdir independent-receipt
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/sync-results-data-to-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,15 @@ jobs:
STALE_REASON=""
if [[ "${CURRENT_PUBLISHED_SHA}" != "${PUBLISHED_BASE_SHA}" ]]; then
STALE_REASON="published-results advanced after the mirror was built"
elif [[ "${PR_STATE}" != "OPEN" || "${PR_BASE_REF}" != "published-results" ]]; then
elif [[ "${PR_STATE}" != "OPEN" ]]; then
STALE_REASON="the created proposal no longer targets the expected base"
elif [[ "${PR_BASE_REF}" != "published-results" ]]; then
STALE_REASON="the created proposal no longer targets the expected base"
elif [[ "${PR_BASE_SHA}" != "${PUBLISHED_BASE_SHA}" ]]; then
STALE_REASON="the proposal base does not match the captured published-results revision"
elif [[ "${PR_HEAD_REF}" != "${MIRROR_BRANCH}" || "${PR_HEAD_SHA}" != "${MIRROR_HEAD_SHA}" ]]; then
elif [[ "${PR_HEAD_REF}" != "${MIRROR_BRANCH}" ]]; then
STALE_REASON="the created proposal head does not match the built mirror revision"
elif [[ "${PR_HEAD_SHA}" != "${MIRROR_HEAD_SHA}" ]]; then
STALE_REASON="the created proposal head does not match the built mirror revision"
fi

Expand Down
Loading
Loading