Repository navigation
CI: scope PR pipelines, deduplicate feature pushes, cancel stale runs #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: CI Routing Policy | ||
| on: | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/**' | ||
| - 'scripts/check_ci_trigger_policy.py' | ||
| - 'docs/CI_WORKFLOW_ROUTING.md' | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - '.github/workflows/**' | ||
| - 'scripts/check_ci_trigger_policy.py' | ||
| - 'docs/CI_WORKFLOW_ROUTING.md' | ||
| permissions: | ||
| contents: read | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
| jobs: | ||
| routing-contract: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 2 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Verify scoped PR workflow routing | ||
| run: python3 scripts/check_ci_trigger_policy.py |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,11 +4,28 @@ on: | |
| push: | ||
| branches: ["agent/phase-4d-d2-dynamic-rcb-live-trial"] | ||
| pull_request: | ||
| paths: | ||
| - 'tools/dynamic_rcb_trial/**' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For PRs changing AGENTS.md reference: AGENTS.md:L249-L263 Useful? React with 👍 / 👎. |
||
| - 'include/ariec61850/mms/**' | ||
| - 'src/mms/**' | ||
| - 'include/ariec61850/control/**' | ||
| - 'src/control/**' | ||
| - 'include/ariec61850/asn1/**' | ||
| - 'src/asn1/**' | ||
| - 'include/ariec61850/osi/**' | ||
| - 'src/osi/**' | ||
| - 'include/ariec61850/acse/**' | ||
| - 'src/acse/**' | ||
| - '.github/workflows/dynamic-rcb-trial-ci.yml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| jobs: | ||
| build: | ||
| strategy: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,8 +35,8 @@ permissions: | |
| contents: read | ||
|
|
||
| concurrency: | ||
| group: esp32p4-smv-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
| group: esp32p4-smv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-${{ github.event.pull_request.head.ref || github.ref_name }} | ||
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
Comment on lines
+38
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a PR changes ESP32-P4 firmware, both this standalone workflow and AGENTS.md reference: AGENTS.md:L249-L263 Useful? React with 👍 / 👎. |
||
|
|
||
| env: | ||
| ARSTACK_FIRMWARE_VERSION: '0.1.1' | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For PRs that modify
tools/control_interop_probe.cpp,tools/control_inventory_probe.cpp, ortools/control_ctlmodel_probe.cpp, this new filter does not trigger becausetools/control_interop_probe/**covers the directory, while all three sources are sibling files undertools/; the workflow's CMake project explicitly compiles them and runs their offline self-tests. Add those source paths so direct harness changes still receive the specialized GCC/Clang/MSVC validation that this filter replaced.AGENTS.md reference: AGENTS.md:L249-L263
Useful? React with 👍 / 👎.