Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: post-merge 熔断闸 3——24h 已合并 auto-revert ≥3 暂停自动回滚(P2-6 T3,ADR-0041,#91) #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
feat: post-merge 熔断闸 3——24h 已合并 auto-revert ≥3 暂停自动回滚(P2-6 T3,ADR-0041,#91) #170
Changes from all commits
fc94185File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4. 24h count may undercount
🐞 Bug☼ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Jq regex escape invalid
🐞 Bug≡ CorrectnessThe new 24h counter uses test("\[auto-revert\]") inside a jq string, where \[ is not a valid jq/JSON string escape, causing the jq program to fail and the guard step to error. This will prevent auto-revert and route runs into the P0 fallback path unexpectedly.Agent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
修复自动回滚闸的计数与并发处理:
[auto-revert]。gh api --paginate并汇总全部页面,避免per_page=50低估 24 小时内的回滚数量。fromJSON(steps.guard.outputs.reverts_24h)与数字3比较,避免字符串比较错误。${{ github.repository }}增加concurrency,并设置cancel-in-progress: false,避免并发运行创建多个回滚 PR。📍 Affects 1 file
.github/workflows/post-merge-verify.yml#L74-L78(this comment).github/workflows/post-merge-verify.yml#L76-L76.github/workflows/post-merge-verify.yml#L76-L77.github/workflows/post-merge-verify.yml#L91-L91🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. String compare in breaker
🐞 Bug≡ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools