Don't verify when pushing, add debug#6548
Conversation
WalkthroughThis PR modifies the GitHub Actions workflow for updating visual regression test snapshots by adding a debugging step to expose runtime event details, extending PR metadata to include base_branch, refactoring the main branch commit and push logic to create pull requests instead, introducing no-verify flags for commits and pushes, and adding a dedicated flow with messaging for handling updates on closed PRs. Changes
Sequence Diagram(s)sequenceDiagram
actor GitHub
participant Workflow as update-vr-snapshots Workflow
participant VR as Visual Regression Tests
participant Git as Git Operations
participant PR as PR Creation
GitHub->>Workflow: Trigger (workflow_dispatch or PR)
Workflow->>Workflow: Print Event Info (new)
Workflow->>VR: Run VR Tests
alt Updates Generated
alt On Main Branch
VR->>Git: Commit (--no-verify)
Git->>PR: Create PR to main
PR->>Workflow: PR Created
Workflow->>Workflow: Comment on PR
else On PR Branch
VR->>Git: Commit (--no-verify)
Git->>Git: Push (--no-verify)
Workflow->>Workflow: Comment on PR
else On Closed PR
VR->>Git: Commit (--no-verify)
Git->>PR: Create new PR
PR->>Workflow: PR Created
Workflow->>Workflow: Comment on new PR
end
else No Updates
Workflow->>Workflow: Comment: No changes
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-10-25T07:34:46.558ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (9)
Comment |
The snapshot update script ALMOST worked but it had two small problems:
Summary by CodeRabbit