mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-26 18:04:31 +01:00
Let Trunk watch the Windows checks, quality gate and eval jobs on pull requests, learning only (GST-1847) (#4148)
* Let Trunk watch the Windows checks, quality gate and eval jobs on pull requests, learning only (GST-1847) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * Say in the testing docs that the Trunk observer is the only secret-holding job in Free Tests only, and list its new test Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * Say in the testing docs which skipped jobs to leave out when reviewing Trunk's verdicts, workflow by workflow Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --------- Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
aa46032f2b
commit
892c3b13cd
11 files changed
+261
-24
No files matched your search
@@ -69,6 +69,37 @@ env:
|
||||
EVALS_FRESH: ${{ ((github.event_name == 'workflow_dispatch' && inputs.pr_receipts == '') || contains(github.event.pull_request.labels.*.name, 'evals-fresh')) && '1' || '' }}
|
||||
|
||||
jobs:
|
||||
# Trunk Dynamic CI, LEARNING ONLY (GST-1847; free-tests.yml has the full
|
||||
# rationale). Trunk records whether it would have run or skipped build-image and eval-slices
|
||||
# on same-repository pull requests; every job still runs. Trunk keys verdicts
|
||||
# by workflow file, so each observed workflow carries its own observer. No job
|
||||
# needs it, no condition reads it and it exports no outputs, so a mode change
|
||||
# in Trunk's dashboard cannot skip anything. It checks out nothing, runs no
|
||||
# pull-request code, holds no GITHUB_TOKEN scopes, never fails the run, and
|
||||
# skips fork pull requests, pushes and dispatches. docs/TESTING_INTERNALS.md.
|
||||
trunk-dynamic-ci:
|
||||
name: Trunk Dynamic CI (learning only, evals)
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
continue-on-error: true
|
||||
permissions: {}
|
||||
env:
|
||||
TRUNK_API_TOKEN: ${{ secrets.TRUNK_API_TOKEN }}
|
||||
steps:
|
||||
- name: Record Trunk's verdicts for build-image and eval-slices (nothing reads them)
|
||||
if: env.TRUNK_API_TOKEN != ''
|
||||
timeout-minutes: 3
|
||||
continue-on-error: true
|
||||
uses: trunk-io/dynamic-ci@5bcddbf3615c2b032c21eed1b514c91164bda4a8 # v0.1.7
|
||||
env:
|
||||
TRUNK_DISABLE_TELEMETRY: 'true'
|
||||
with:
|
||||
token: ${{ env.TRUNK_API_TOKEN }}
|
||||
job-keys: build-image,eval-slices
|
||||
github-token: ''
|
||||
enable-annotation: 'true'
|
||||
|
||||
# Build Docker image with pre-baked toolchain (cached — only rebuilds on Dockerfile/lockfile change)
|
||||
build-image:
|
||||
# Dependabot-triggered pull_request runs get a read-only GITHUB_TOKEN, so
|
||||
|
||||
@@ -31,6 +31,37 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# Trunk Dynamic CI, LEARNING ONLY (GST-1847; free-tests.yml has the full
|
||||
# rationale). Trunk records whether it would have run or skipped quality
|
||||
# on same-repository pull requests; every job still runs. Trunk keys verdicts
|
||||
# by workflow file, so each observed workflow carries its own observer. No job
|
||||
# needs it, no condition reads it and it exports no outputs, so a mode change
|
||||
# in Trunk's dashboard cannot skip anything. It checks out nothing, runs no
|
||||
# pull-request code, holds no GITHUB_TOKEN scopes, never fails the run, and
|
||||
# skips fork pull requests, pushes and dispatches. docs/TESTING_INTERNALS.md.
|
||||
trunk-dynamic-ci:
|
||||
name: Trunk Dynamic CI (learning only, quality-gate)
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
continue-on-error: true
|
||||
permissions: {}
|
||||
env:
|
||||
TRUNK_API_TOKEN: ${{ secrets.TRUNK_API_TOKEN }}
|
||||
steps:
|
||||
- name: Record Trunk's verdicts for quality (nothing reads them)
|
||||
if: env.TRUNK_API_TOKEN != ''
|
||||
timeout-minutes: 3
|
||||
continue-on-error: true
|
||||
uses: trunk-io/dynamic-ci@5bcddbf3615c2b032c21eed1b514c91164bda4a8 # v0.1.7
|
||||
env:
|
||||
TRUNK_DISABLE_TELEMETRY: 'true'
|
||||
with:
|
||||
token: ${{ env.TRUNK_API_TOKEN }}
|
||||
job-keys: quality
|
||||
github-token: ''
|
||||
enable-annotation: 'true'
|
||||
|
||||
quality:
|
||||
# A ~1-minute job: GitHub's free hosted runner (public repo), not a
|
||||
# billed 8-vCPU Ubicloud machine.
|
||||
|
||||
@@ -57,6 +57,37 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
# Trunk Dynamic CI, LEARNING ONLY (GST-1847; free-tests.yml has the full
|
||||
# rationale). Trunk records whether it would have run or skipped windows-scoped-shard
|
||||
# on same-repository pull requests; every job still runs. Trunk keys verdicts
|
||||
# by workflow file, so each observed workflow carries its own observer. No job
|
||||
# needs it, no condition reads it and it exports no outputs, so a mode change
|
||||
# in Trunk's dashboard cannot skip anything. It checks out nothing, runs no
|
||||
# pull-request code, holds no GITHUB_TOKEN scopes, never fails the run, and
|
||||
# skips fork pull requests, pushes and dispatches. docs/TESTING_INTERNALS.md.
|
||||
trunk-dynamic-ci:
|
||||
name: Trunk Dynamic CI (learning only, windows-scoped-tests)
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
continue-on-error: true
|
||||
permissions: {}
|
||||
env:
|
||||
TRUNK_API_TOKEN: ${{ secrets.TRUNK_API_TOKEN }}
|
||||
steps:
|
||||
- name: Record Trunk's verdicts for windows-scoped-shard (nothing reads them)
|
||||
if: env.TRUNK_API_TOKEN != ''
|
||||
timeout-minutes: 3
|
||||
continue-on-error: true
|
||||
uses: trunk-io/dynamic-ci@5bcddbf3615c2b032c21eed1b514c91164bda4a8 # v0.1.7
|
||||
env:
|
||||
TRUNK_DISABLE_TELEMETRY: 'true'
|
||||
with:
|
||||
token: ${{ env.TRUNK_API_TOKEN }}
|
||||
job-keys: windows-scoped-shard
|
||||
github-token: ''
|
||||
enable-annotation: 'true'
|
||||
|
||||
windows-scope:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
|
||||
@@ -101,6 +101,37 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
# Trunk Dynamic CI, LEARNING ONLY (GST-1847; free-tests.yml has the full
|
||||
# rationale). Trunk records whether it would have run or skipped windows-setup and held-install-journey
|
||||
# on same-repository pull requests; every job still runs. Trunk keys verdicts
|
||||
# by workflow file, so each observed workflow carries its own observer. No job
|
||||
# needs it, no condition reads it and it exports no outputs, so a mode change
|
||||
# in Trunk's dashboard cannot skip anything. It checks out nothing, runs no
|
||||
# pull-request code, holds no GITHUB_TOKEN scopes, never fails the run, and
|
||||
# skips fork pull requests, pushes and dispatches. docs/TESTING_INTERNALS.md.
|
||||
trunk-dynamic-ci:
|
||||
name: Trunk Dynamic CI (learning only, windows-setup-e2e)
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
continue-on-error: true
|
||||
permissions: {}
|
||||
env:
|
||||
TRUNK_API_TOKEN: ${{ secrets.TRUNK_API_TOKEN }}
|
||||
steps:
|
||||
- name: Record Trunk's verdicts for windows-setup and held-install-journey (nothing reads them)
|
||||
if: env.TRUNK_API_TOKEN != ''
|
||||
timeout-minutes: 3
|
||||
continue-on-error: true
|
||||
uses: trunk-io/dynamic-ci@5bcddbf3615c2b032c21eed1b514c91164bda4a8 # v0.1.7
|
||||
env:
|
||||
TRUNK_DISABLE_TELEMETRY: 'true'
|
||||
with:
|
||||
token: ${{ env.TRUNK_API_TOKEN }}
|
||||
job-keys: windows-setup,held-install-journey
|
||||
github-token: ''
|
||||
enable-annotation: 'true'
|
||||
|
||||
windows-scope:
|
||||
# The paths filter above starts this workflow; this job decides whether
|
||||
# the Windows jobs run. A workflow_dispatch run always runs them.
|
||||
|
||||
@@ -31,6 +31,37 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
# Trunk Dynamic CI, LEARNING ONLY (GST-1847; free-tests.yml has the full
|
||||
# rationale). Trunk records whether it would have run or skipped windows-smoke
|
||||
# on same-repository pull requests; every job still runs. Trunk keys verdicts
|
||||
# by workflow file, so each observed workflow carries its own observer. No job
|
||||
# needs it, no condition reads it and it exports no outputs, so a mode change
|
||||
# in Trunk's dashboard cannot skip anything. It checks out nothing, runs no
|
||||
# pull-request code, holds no GITHUB_TOKEN scopes, never fails the run, and
|
||||
# skips fork pull requests, pushes and dispatches. docs/TESTING_INTERNALS.md.
|
||||
trunk-dynamic-ci:
|
||||
name: Trunk Dynamic CI (learning only, windows-smoke)
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
continue-on-error: true
|
||||
permissions: {}
|
||||
env:
|
||||
TRUNK_API_TOKEN: ${{ secrets.TRUNK_API_TOKEN }}
|
||||
steps:
|
||||
- name: Record Trunk's verdicts for windows-smoke (nothing reads them)
|
||||
if: env.TRUNK_API_TOKEN != ''
|
||||
timeout-minutes: 3
|
||||
continue-on-error: true
|
||||
uses: trunk-io/dynamic-ci@5bcddbf3615c2b032c21eed1b514c91164bda4a8 # v0.1.7
|
||||
env:
|
||||
TRUNK_DISABLE_TELEMETRY: 'true'
|
||||
with:
|
||||
token: ${{ env.TRUNK_API_TOKEN }}
|
||||
job-keys: windows-smoke
|
||||
github-token: ''
|
||||
enable-annotation: 'true'
|
||||
|
||||
windows-smoke:
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 15
|
||||
|
||||
Reference in new issue
Block a user