Skip to content
Merged
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
26 changes: 25 additions & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ jobs:
changed=false
# A change that only touches the website, root-level Markdown, the README demo GIFs or the
# skill pages generated from the website docs skips the Python checks and test suites.
# The website builds in its own workflow.
# The website builds in its own workflow, and the Docs skill pages job still checks that
# the skill pages match the website docs.
docs_only=true
# A change that only touches the web UI (and documentation) runs the UI checks and the
# wheels that embed its build, but not the Python and native checks it cannot affect.
Expand Down Expand Up @@ -529,6 +530,21 @@ jobs:
env:
DUPES_BASE: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha || 'origin/main' }}

# Docs-only, UI-only and release-metadata changes skip Static checks, whose check-ci runs
# check-docs-skill, yet a website docs edit can leave the skill pages generated from it out of
# date. This runs that check alone, with no dependencies. It leaves out the investigation guide's
# Recall schema section, which needs the built package and only a code change can move.
docs_skill:
name: Docs skill pages
needs: changes
if: needs.changes.outputs.checks == 'false'
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Check the skill pages against the website docs
run: python3 -m scripts.check_docs_skill --investigation-guide ''

tests:
# check-test-shards, part of the static checks, proves that the TEST_SHARD_*_PATHS lists in
# the Makefile run every test once; each of those lists needs an entry here.
Expand Down Expand Up @@ -1560,6 +1576,7 @@ jobs:
lockfile,
native_build,
checks,
docs_skill,
tests,
native_checks,
e2e_shards,
Expand Down Expand Up @@ -1591,6 +1608,7 @@ jobs:
LOCKFILE_RESULT: ${{ needs.lockfile.result }}
NATIVE_BUILD_RESULT: ${{ needs.native_build.result }}
CHECKS_RESULT: ${{ needs.checks.result }}
DOCS_SKILL_RESULT: ${{ needs.docs_skill.result }}
TESTS_RESULT: ${{ needs.tests.result }}
NATIVE_CHECKS_RESULT: ${{ needs.native_checks.result }}
E2E_SHARDS_RESULT: ${{ needs.e2e_shards.result }}
Expand Down Expand Up @@ -1641,6 +1659,12 @@ jobs:
exit 1
fi
done
# Static checks cover the skill pages when they run; otherwise this job must pass.
if [[ "${DOCS_SKILL_RESULT}" != "success" ]] && \
! [[ "${CHECKS_SELECTED}" == "true" && "${DOCS_SKILL_RESULT}" == "skipped" ]]; then
echo "The docs skill pages check did not pass: ${DOCS_SKILL_RESULT}" >&2
exit 1
fi
if [[ "${WHEELS_RESULT}" == "success" && "${COMPOSE_RESULT}" != "success" ]]; then
echo "Required packaged Compose verification did not pass: ${COMPOSE_RESULT}" >&2
exit 1
Expand Down
Loading