Skip to content

Commit 2a8bfef

Browse files
KSemenenkoclaude
andcommitted
Skip Build and Tests for website-only pushes and run Benchmarks only on product source
Build and Tests ignores pushes and pull requests that change only website inputs. Benchmarks starts automatically only when src/** or the root build/package inputs change; test, harness, documentation and website changes use manual dispatch. Verified: workflow YAML parses; RepositoryGovernance verify passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e4412ac commit 2a8bfef

4 files changed

Lines changed: 29 additions & 2 deletions

File tree

‎.github/workflows/benchmarks.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: Benchmarks
22
on:
33
push:
44
branches: [main]
5+
# Automatic runs follow KeyLoad product source only; tests, harness, docs and site use manual dispatch.
6+
paths:
7+
- 'src/**'
8+
- 'Directory.Build.props'
9+
- 'Directory.Build.targets'
10+
- 'Directory.Packages.props'
11+
- 'global.json'
512
workflow_dispatch:
613
permissions: {contents: read, actions: read}
714
concurrency:

‎.github/workflows/build-and-tests.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,23 @@ name: Build and Tests
22
on:
33
push:
44
branches: [main]
5+
paths-ignore:
6+
- 'site/**'
7+
- 'scripts/Features/BenchmarkComparisons/site-*'
8+
- 'scripts/Features/BenchmarkComparisons/composite-site-*'
9+
- '.github/workflows/website.yml'
10+
- '.github/workflows/Features/BenchmarkComparisons/QualifySite/**'
11+
- '.github/workflows/Features/BenchmarkComparisons/BuildIsolatedSite/**'
12+
- '.github/workflows/Features/BenchmarkComparisons/DeploySite/**'
513
pull_request:
14+
paths-ignore:
15+
- 'site/**'
16+
- 'scripts/Features/BenchmarkComparisons/site-*'
17+
- 'scripts/Features/BenchmarkComparisons/composite-site-*'
18+
- '.github/workflows/website.yml'
19+
- '.github/workflows/Features/BenchmarkComparisons/QualifySite/**'
20+
- '.github/workflows/Features/BenchmarkComparisons/BuildIsolatedSite/**'
21+
- '.github/workflows/Features/BenchmarkComparisons/DeploySite/**'
622
workflow_dispatch:
723
workflow_call:
824
env:

‎docs/Features/BenchmarkComparisons/SessionExecution.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,10 @@ measured workload reports do not close that independent gate.
331331

332332
## Runs and results
333333

334-
A push to main automatically runs the complete set of 32 measurement jobs. A manual run
334+
A push to main that changes KeyLoad product source (`src/**` or the root
335+
`Directory.Build.*`, `Directory.Packages.props` and `global.json` build inputs)
336+
automatically runs the complete set of 32 measurement jobs; pushes that change only
337+
tests, the benchmark harness, documentation or the website do not start it. A manual run
335338
chooses the complete set or only the build/harness contracts. Preflight, cancellation,
336339
malformed-input, permission and provenance checks are TUnit contracts of Benchmarks
337340
and do not multiply the measurement matrix. The selected load profiles use the same

‎docs/implementation/website.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ that change the site or its build, qualification and publication inputs (an expl
1212
path filter, so database-only pushes do not start it) and on manual dispatch. The
1313
final job of Benchmarks dispatches it after a successful producer run. Build and
1414
Tests (`build-and-tests.yml`) builds the complete solution and runs ordinary project
15-
tests; its result is not a dependency of Website. Benchmarks produces authenticated
15+
tests; it ignores pushes and pull requests that change only these website inputs, and
16+
its result is not a dependency of Website. Benchmarks produces authenticated
1617
JSON. Release remains the prepared manual product-release workflow.
1718

1819
Website selects the latest ready authenticated Benchmarks aggregate. With data,

0 commit comments

Comments
 (0)