mirror of
https://github.com/mattermost/mattermost.git
synced 2026-11-03 12:48:37 -06:00
Points at mattermost/mattermost-test-automation-toolkit b51a481e3fe6332053be09800d59da1a8c3e3e2e, which upgrades anthropics/claude-code-action from v1.0.70 → v1.0.210. v1.0.210 includes anthropics/claude-code-action#1580 (shipped in v1.0.188), which passes no-cache: true to oven-sh/setup-bun. The upstream setup-bun key is not ref-aware, so every second-and-subsequent run against the same PR ref hit a 409 on save, and @actions/cache treated the HTML error body as transient and burned ~20-30s on 5 retries plus emitted a noisy warning per PR push. Disabling the cache is a net wallclock win — the 35 MB Bun binary downloads in 2-3s. Refs: - https://github.com/anthropics/claude-code-action/pull/1580 - https://github.com/anthropics/claude-code-action/issues/1252 - https://github.com/anthropics/claude-code-action/releases/tag/v1.0.210
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
---
|
|
name: PR Test Analysis
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
branches:
|
|
- master
|
|
- 'release-*'
|
|
workflow_dispatch:
|
|
inputs:
|
|
pr_number:
|
|
description: 'PR number to analyze'
|
|
required: true
|
|
type: number
|
|
claude_model:
|
|
description: 'Claude model to use (default: claude-sonnet-4-6)'
|
|
required: false
|
|
type: string
|
|
|
|
concurrency:
|
|
group: test-analyzer-${{ github.event.pull_request.number || inputs.pr_number }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
analyze:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
statuses: write
|
|
id-token: write
|
|
# pull_request: skip drafts and forks (drafts are not ready for analysis;
|
|
# fork runs do not receive this repo's Actions secrets).
|
|
# workflow_dispatch: always allowed — runs in this repo with secrets, so you can pass a fork PR number manually.
|
|
if: >-
|
|
github.event_name == 'workflow_dispatch' ||
|
|
(github.event.pull_request.draft == false &&
|
|
github.event.pull_request.head.repo.full_name == 'mattermost/mattermost')
|
|
uses: mattermost/mattermost-test-automation-toolkit/.github/workflows/pr-test-analysis.yml@b51a481e3fe6332053be09800d59da1a8c3e3e2e # 2026-09-04
|
|
with:
|
|
pr_number: ${{ github.event.pull_request.number || inputs.pr_number }}
|
|
target_repo: mattermost/mattermost
|
|
claude_model: ${{ inputs.claude_model || vars.CLAUDE_MODEL || 'claude-sonnet-4-6' }}
|
|
secrets:
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL_TEST_PR_ANALYSIS_HUB }}
|