Repository navigation
feat: record the pcc projects whose creation is blocked - #5446
Conversation
PR SummaryLow Risk Overview A new Unit tests cover blocked, incomplete PCC data, and creatable (no-op) cases. Reviewed by Cursor Bugbot for commit 4871d1e. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
@ulemons I'm starting review 1 of this pull request now (started 2026-11-25 15:25 UTC using review agent v0.1.34). This usually takes a few minutes. I'll update this comment with the summary when I'm done. If there's no summary here after about 45 minutes, the review stopped: push a new commit, or post a comment that begins with a mention of me followed by Hi @ulemons, thanks for the PR. SummaryThis pull request records each PCC project whose creation is blocked as a Decision✅ Approved DetailsOverall impression: The change adds one helper, Other reviewers and CI checks: Cursor Bugbot's summary agrees: low risk, with no change to what gets created. The required Documentation reminder: changed Rule files: read Questions, problems, or feedback: https://github.com/linuxfoundation/lfx-review-agent/issues |
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the blocked-project sync-error reporting change.
No open issues 🎉
What changed in this PR
This PR makes blocked PCC project creation visible in CDP’s sync-error records, rather than only in completion logs, without changing which projects are created.
Changes:
- Records blocked projects as
PROJECT_CREATION_BLOCKED, independently of the creation setting. - Includes the project name, blocking reason, and available conflicting segment details.
- Adds unit tests for blocked, incomplete, and creatable project plans.
| File | Description |
|---|---|
services/apps/pcc_sync_worker/src/consumer/pccProjectConsumer.ts |
Records blocked creation plans through the existing sync-error mechanism. |
services/apps/pcc_sync_worker/src/consumer/missingProjectCreation.ts |
Defines the blocked-error type and builds its diagnostic details. |
services/apps/pcc_sync_worker/src/consumer/missingProjectCreation.test.ts |
Tests diagnostic details and excludes creatable plans from blocked reporting. |
Review effort: Balanced
lfx-one
left a comment
There was a problem hiding this comment.
No blocking or minor findings. The blocked-creation rows reuse the existing sync-error upsert and the existing resolve sweep, and nothing about what gets created changes.
Documentation
This pull request changes behavior that may also be described outside this repository, such as product pages or an external docs site. I can't read those, so please check them; the author and maintainers own those updates. Changed here:
PROJECT_CREATION_BLOCKED(new sync error type recorded inpcc_projects_sync_errors)
Refs linuxfoundation/lfx-cdp-insights-ops#180 Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
ec48486 to
4871d1e
Compare
What
A missing PCC project that the sync cannot create because CDP and PCC disagree is now recorded in
pcc_projects_sync_errorsasPROJECT_CREATION_BLOCKED, with the reason and the CDP segments in the way.Until now these projects were only counted in the
PCC job completedlog line, so there was no list to review.Behaviour
PCC_PROJECT_CREATION: the list is useful also while creation is off.Testing
Unit tests in
missingProjectCreation.test.ts.Refs linuxfoundation/lfx-cdp-insights-ops#180
🤖 Generated with Claude Code