Skip to content

fix(ci): 恒报 fallback 锚定 repo root,修复 checkout 跳过时 cwd 缺失 - #1837

Merged
DeliciousBuding merged 1 commit into
masterfrom
fix/ci-fallback-cwd
Aug 21, 2026
Merged

fix(ci): 恒报 fallback 锚定 repo root,修复 checkout 跳过时 cwd 缺失#1837
DeliciousBuding merged 1 commit into
masterfrom
fix/ci-fallback-cwd

Conversation

@DeliciousBuding

Copy link
Copy Markdown
Collaborator

概要

#1829 恒报改造的回归修复:go-edge/go-hub 的 fallback 与 fail-closed step 继承了 job 级 working-directory: edge-server|hub-server,但当 path filter 跳过 checkout 时该目录不存在,bash 无法启动 → 纯前端 PR 的 required check 反而硬 fail。

根因

  • fallback step 的 run:working-directory 覆盖,继承 job defaults
  • checkout step 带 if: go == 'true',fallback 场景下 repo 目录为空

修复

4 个 step(go-edge/go-hub 各 fallback + fail-closed)显式 working-directory: . 锚定 repo root。

验证

  • YAML 解析通过;verify-ci-gates.py 自测通过
  • 本 PR 走真实 Go 路径(checks.yml 属 go 分类),fallback 生效验证依赖合并后前端 PR rebase 重跑

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@DeliciousBuding, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 48 minutes

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d668c19d-e943-4d81-aa12-9ac907373e55

📥 Commits

Reviewing files that changed from the base of the PR and between 66507fa and 9a4c2ed.

📒 Files selected for processing (2)
  • .github/workflows/checks.yml
  • scripts/verify/tests/verify-ci-gates.Tests.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DeliciousBuding
DeliciousBuding merged commit 1eae07f into master Aug 21, 2026
38 checks passed
@DeliciousBuding
DeliciousBuding deleted the fix/ci-fallback-cwd branch August 21, 2026 14:54
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.

1 participant