fix: don't run a action operation after creation - #10374
Conversation
Signed-off-by: Olblak <me@olblak.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughSCM publishing and working-branch cleanup now skip targets without conclusive results. Pipeline actions record current-run publication state, and cleanup excludes those actions and dry-run executions. ChangesPublish and cleanup safeguards
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Pipeline
participant Action
participant ActionHandler
Pipeline->>Action: create or update action
Pipeline->>Action: set Published=true
Pipeline->>ActionHandler: clean unpublished action
Pipeline-->>ActionHandler: skip published action or dry-run cleanup
Merge Risk: ⚪ Minimal · up to This change prevents actions created in the current run from being cleaned up and avoids SCM side effects for inconclusive targets. The guarded behaviors are covered by focused tests, with no remaining merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Tick the box to add this pull request to the merge queue (same as
|
Don't clean an open action just after creating it
Test
To test this pull request, you can run the following commands:
Additional Information
Checklist
Tradeoff
Potential improvement
Summary by CodeRabbit