mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* ci: let a running main CI run finish instead of cancelling it A CI run takes about 18 minutes and merges often land closer together than that, so cancel-in-progress on refs/heads/main stopped runs partway through: from 2026-10-05 to 2026-10-09, 77 of 138 CI runs on main were cancelled, leaving most main commits without a result and a break pointing at the wrong commit. Cancel only on pull requests. On main the concurrency group still holds one pending run that a newer merge replaces before it starts, so a burst of merges is tested once, at its newest commit, and no run stops halfway. Refs #5085 * ci: stop cancelling main runs in the other workflows that run on pushes to main Checkstyle, Docs in sync and Partition Literals run on pull requests and on pushes to main, so they get the same rule as ci.yml: cancel a superseded run only on pull requests. The docs deploy never runs on pull requests, so it stops cancelling altogether. The remaining workflows named in #5085 (compatibility, compat-partitions, iam-namespace-drift, nightly) have no push trigger, so a merge to main never cancels them and they are left as they are. Refs #5085 * ci: state the measured cancellation figures in the ci.yml comment The comment quoted one-day figures (30 of 47 runs, a 13 minute median gap, 546 runner-minutes) that the run history does not reproduce. Replace them with the count measured from it: 77 of 138 CI runs on main cancelled from 2026-10-05 to 2026-10-09. Refs #5085 Signed-off-by: Hector Ventura <hectorvent@gmail.com> --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>
63 lines
1.8 KiB
YAML
63 lines
1.8 KiB
YAML
name: Docs Action Tables
|
|
|
|
# Keeps the generated tables in docs/services/*.md in sync with their sources: the
|
|
# "Supported Actions" tables with handler source, and the CloudFormation "Supported Resource
|
|
# Types" table with the provisioner inventory TSV. Runs on handler changes (which can add or
|
|
# remove actions), inventory changes (which add or move resource types), and on doc or tooling
|
|
# changes. Python-only, so it is fast and independent of the Java build job.
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'src/main/**'
|
|
- 'src/test/resources/cloudformation/**'
|
|
- 'docs/**'
|
|
- 'mkdocs.yml'
|
|
- 'tools/docs/**'
|
|
- 'Makefile'
|
|
- '.github/workflows/docs-actions.yml'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'src/main/**'
|
|
- 'src/test/resources/cloudformation/**'
|
|
- 'docs/**'
|
|
- 'mkdocs.yml'
|
|
- 'tools/docs/**'
|
|
- 'Makefile'
|
|
- '.github/workflows/docs-actions.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
# Cancel a superseded run only on pull requests; a run on main is left to finish (see ci.yml).
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
action-tables:
|
|
name: Docs in sync
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: "3.x"
|
|
|
|
- name: Install tooling deps
|
|
run: pip install -r tools/docs/requirements.txt -r docs/requirements.txt
|
|
|
|
- name: Run action-table tests
|
|
run: make docs-test
|
|
|
|
- name: Check action tables are in sync
|
|
run: make docs-check
|
|
|
|
- name: Build docs (strict)
|
|
run: mkdocs build --strict --site-dir /tmp/site
|