Repository navigation
upstreaming: promptly acknowledge command comments #145
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2026 The RISE Project | |
| # SPDX-License-Identifier: MIT | |
| # Control validation for the riscv64 upstreaming pipeline: unit/acceptance | |
| # tests of the trusted controller and publisher code, schema validation of | |
| # committed state, and the trigger-compatibility audit that a state-only push | |
| # to main starts no workflow. Read-only; no secrets. | |
| name: Upstreaming control validation | |
| on: | |
| pull_request: | |
| paths: | |
| - 'upstreaming/**' | |
| - 'upstreaming-state/**' | |
| - '.github/workflows/upstreaming-*.yml' | |
| - '.github/workflows/*.yml' | |
| - '.github/ISSUE_TEMPLATE/package-request.yml' | |
| - '.github/workflows/aw.json' | |
| - '.github/workflows/shared/**' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'upstreaming/**' | |
| - '.github/workflows/upstreaming-*.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | |
| with: | |
| enable-cache: false | |
| - name: Runtime dependency inventory matches authored workflow pins | |
| run: uv run --no-project python upstreaming/dependencies/sync.py | |
| - name: Unit and acceptance tests | |
| run: uv run --no-project --with-requirements upstreaming/requirements.txt python -m unittest discover -s upstreaming/tests -t . -v | |
| - name: Native artifact compatibility regression tests (pinned gh-aw v1.2.2) | |
| run: sh upstreaming/gh-aw-compat/check.sh | |
| - name: Validate committed state | |
| run: uv run --no-project --with-requirements upstreaming/requirements.txt python -m upstreaming validate-state | |
| - name: Compiled gh-aw locks match gh-aw v1.2.2; rejected routes still rejected | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| set -euo pipefail | |
| upstreaming/check_gh_aw.sh "$(upstreaming/install_gh_aw.sh "$RUNNER_TEMP/gh-aw-cli")" | |
| - name: A state-only push may refresh only the website | |
| run: | | |
| uv run --no-project --with-requirements upstreaming/requirements.txt \ | |
| python -m upstreaming audit-triggers \ | |
| --paths upstreaming-state/contributions/x.json upstreaming-state/events/x/00000000.json \ | |
| > trigger-report.json | |
| jq -e '.triggered | map(.workflow) == ["website.yml"]' trigger-report.json |