mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
Main run 41109701017 spends 225 seconds in one documentation shard while the others need 42 to 58 seconds. Reuse the existing whole-suite selector with complete native timing evidence, preserving discovered coverage, sorted isolated execution, every recipe deadline and the mandatory aggregate check. Cover weighted membership, new and stale hints, incomplete selection, invalid hints and every discovered suite's failure through actual runner and workflow commands. Contract-Neutral: CI scheduling of the complete existing documentation suites only; product, installer, release, access and verification acceptance contracts are unchanged. Change-source: pulse-maintainer
98 lines
3.0 KiB
YAML
98 lines
3.0 KiB
YAML
name: Public docs
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "*.md"
|
|
- "docs/**"
|
|
- "frontend-modern/public/docs/**"
|
|
- ".github/ISSUE_TEMPLATE/**"
|
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
- "scripts/check_public_docs.py"
|
|
- "scripts/check_docs_mirror.py"
|
|
- "scripts/readme_entrypoints_test.py"
|
|
- "scripts/tests/**"
|
|
- "scripts/select-smoke-test-shard.py"
|
|
- ".github/scripts/docs-test-seconds.txt"
|
|
- "scripts/test-vm-disk.sh"
|
|
- ".github/workflows/public-docs.yml"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "*.md"
|
|
- "docs/**"
|
|
- "frontend-modern/public/docs/**"
|
|
- ".github/ISSUE_TEMPLATE/**"
|
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
- "scripts/check_public_docs.py"
|
|
- "scripts/check_docs_mirror.py"
|
|
- "scripts/readme_entrypoints_test.py"
|
|
- "scripts/tests/**"
|
|
- "scripts/select-smoke-test-shard.py"
|
|
- ".github/scripts/docs-test-seconds.txt"
|
|
- "scripts/test-vm-disk.sh"
|
|
- ".github/workflows/public-docs.yml"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: public-docs-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
recipes:
|
|
name: Documentation recipes (${{ matrix.shard }})
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 10
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
shard: [0, 1, 2, 3]
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
# Build and Test skips smoke for docs-only changes. Discover the complete
|
|
# current docs suite here, including privacy, authentication and recovery.
|
|
# Measured whole-suite scheduling retains sorted, isolated execution and
|
|
# every recipe deadline; timing hints cannot add or omit coverage.
|
|
- name: Exercise documentation safety and diagnostic recipes
|
|
run: scripts/tests/run.sh --docs-shard "${{ matrix.shard }}"
|
|
|
|
# Preserve the existing required check name and fail closed on every shard.
|
|
check:
|
|
needs: recipes
|
|
if: ${{ always() }}
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Require every documentation recipe shard
|
|
env:
|
|
RECIPE_RESULT: ${{ needs.recipes.result }}
|
|
run: |
|
|
if [[ "$RECIPE_RESULT" != success ]]; then
|
|
echo "Documentation recipe shards did not all succeed: $RECIPE_RESULT" >&2
|
|
exit 1
|
|
fi
|
|
|
|
- name: Validate public documentation
|
|
run: python3 scripts/check_public_docs.py
|
|
|
|
- name: Check getting-started safety and current plans
|
|
run: python3 scripts/readme_entrypoints_test.py
|
|
|
|
- name: Check shipped docs mirror sync
|
|
run: python3 scripts/check_docs_mirror.py
|
|
|
|
- name: Check documentation safety workflow contract
|
|
run: python3 scripts/tests/test_public_docs_workflow.py
|