Skip to content

ci(dashboard): rename workflow, cancel stale PR runs, and skip non-dashboard PRs - #11640

Merged
mantoujun12 merged 2 commits into
AstrBotDevs:masterfrom
whatevertogo:ci/dashboard-pr-path-filter
Dec 4, 2026
Merged

mantoujun12 merged 2 commits into
AstrBotDevs:masterfrom
whatevertogo:ci/dashboard-pr-path-filter

Conversation

@whatevertogo

Copy link
Copy Markdown
Contributor

Split out from #11468 as an independent, self-contained workflow change.

Previously, AstrBot Dashboard CI ran full pnpm install --frozen-lockfile, i18n:check, and pnpm run build on every backend-only or docs-only pull request, and lacked PR concurrency cancellation when pushing follow-up commits.

Modifications

  • Rename .github/workflows/dashboard_ci.yml to .github/workflows/dashboard-ci.yml (kept as a dedicated pure-rename commit) for kebab-case consistency with the other workflow files.

  • Add PR-only concurrency cancellation so superseded runs on the same PR are cancelled automatically while push runs on master are never cancelled.

  • Add a lightweight job-level changes filter (timeout-minutes: 5, fail-open) that runs build on pull_request only when dashboard/**, .github/workflows/dashboard-ci.yml, or astrbot/core/utils/t2i/template/shiki_runtime.iife.js (referenced by dashboard/vite.config.ts) changes.

  • Preserve the build job name (avoiding pending required-check hangs on skipped PRs) and always run build on push to master so astrbot-release-harbour releases remain unaffected.

  • This is NOT a breaking change.

Screenshots or Test Results

  • Validated .github/workflows/dashboard-ci.yml syntax via yaml.safe_load.
  • Verified dashboard/vite.config.ts references ../astrbot/core/utils/t2i/template/shiki_runtime.iife.js and no other files in the repository reference the old dashboard_ci.yml filename.
  • Verified commit history preserves a 100% pure rename (dashboard_ci.yml => dashboard-ci.yml) followed by the concurrency and path-filter commit.

Checklist

  • 😊 If there are new features added in the PR, I have discussed it with the authors through issues/emails, etc. (CI workflow optimization split from ci(tests): add PR concurrency cancellation, AST selective pytest runs, and clean up conftest #11468; no new user-facing feature)

  • 👀 My changes have been well-tested, and "Verification Steps" and "Screenshots" have been provided above.

  • 📚 I checked the affected WebUI instructions and screenshots in docs/zh and docs/en against the changed navigation, page structure, and labels, and updated them in this PR (or explained why no documentation update is needed). (CI workflow only; no WebUI changes)

  • 🤓 I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations in requirements.txt and pyproject.toml. (No new dependencies)

  • 😮 My changes do not introduce malicious code.

@sourcery-ai

sourcery-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Sorry @whatevertogo, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 13 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-04T02:59:42.491074Z
We couldn’t complete this review. Comment @codex review to try again.
4d81ff0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@mantoujun12
mantoujun12 merged commit 6dc6d31 into AstrBotDevs:master Dec 4, 2026
9 checks passed
@mantoujun12

Copy link
Copy Markdown
Collaborator

changes job 失败时(比如 checkout 或脚本报错)build 会被跳过而不是"fail-open"跑一遍,等于 dashboard 验证被静默关掉。建议在检测前先往 $GITHUB_OUTPUT 写入 run_build=true 兜底,或给检测命令加 || echo "run_build=true" >> $GITHUB_OUTPUT。

如果后面有问题再提这个修复 PR 。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants