feat: add BundleAnalysisFlow checkpoint logger#714
Open
thomasrockhu-codecov wants to merge 2 commits intomainfrom
Open
feat: add BundleAnalysisFlow checkpoint logger#714thomasrockhu-codecov wants to merge 2 commits intomainfrom
thomasrockhu-codecov wants to merge 2 commits intomainfrom
Conversation
Add a new BundleAnalysisFlow to the checkpoint logger system, mirroring UploadFlow and TestResultsFlow. This enables metrics tracking (processing duration, notification latency) and reliability counters for bundle analysis task chains. Integrates BundleAnalysisFlow into BaseCodecovTask for timeout, failure, and retry checkpoint logging. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #714 +/- ##
==========================================
- Coverage 92.25% 92.23% -0.03%
==========================================
Files 1302 1302
Lines 47837 47909 +72
Branches 1628 1628
==========================================
+ Hits 44131 44187 +56
- Misses 3397 3413 +16
Partials 309 309
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Add LOCK_ACQUIRING, LOCK_ACQUIRED, LOCK_RELEASED milestones to the Milestones enum for tracking lock lifecycle events in breadcrumbs. Add task_name and parent_task_id fields to BreadcrumbData so each breadcrumb records which Celery task produced it and the parent task in the chain. Update _call_upload_breadcrumb_task to accept and pass these new fields. No migration needed -- Milestones is only used within BreadcrumbData (JSONField) and the new Pydantic fields default to None. Co-authored-by: Cursor <cursoragent@cursor.com>
5 tasks
thomasrockhu-codecov
added a commit
that referenced
this pull request
Feb 19, 2026
Add an upload_pipeline_timeline readonly field to the Django admin CommitAdmin page that queries UploadBreadcrumb records for the commit and renders them as an HTML table. The timeline shows: - Timestamp of each breadcrumb - Task name (Celery task that produced the breadcrumb) - Parent task ID (preceding task in the chain) - Detail (milestone, endpoint, error info) - Upload IDs associated with each breadcrumb Depends on PR #714 for new BreadcrumbData fields (task_name, parent_task_id) and lock lifecycle milestones. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
BundleAnalysisFlowcheckpoint logger tohelpers/checkpoint_logger/flows.py, mirroring the existingUploadFlowandTestResultsFlowpatternsBundleAnalysisFlowintoBaseCodecovTaskfor timeout, failure, and retry checkpoint loggingTest plan
BundleAnalysisFlowcheckpoints are logged correctly during BA task chain executionUploadFlowandTestResultsFlowbehavior is unchangedMade with Cursor
Note
Medium Risk
Touches core worker task error/timeout/retry paths and breadcrumb validation payload shape; while mostly additive, it could affect observability and failure handling if integration assumptions are wrong.
Overview
Adds a new
BundleAnalysisFlowcheckpoint logger with success/failure events, subflow timers, and reliability counters for bundle analysis task chains.Integrates this flow into
BaseCodecovTaskso timeouts, Celery failures, and max-retry scenarios logBundleAnalysisFlowcheckpoints, and ensures checkpoints are rehydrated from task kwargs alongside existing flows.Extends upload breadcrumb tracking by adding lock-related milestones (
LOCK_ACQUIRING/ACQUIRED/RELEASED) and augmentingBreadcrumbData/_call_upload_breadcrumb_taskto optionally includetask_nameandparent_task_id.Written by Cursor Bugbot for commit e54a237. This will update automatically on new commits. Configure here.