fix: make CSAF import resilient to CPE import order - #1958
Merged
jdobes merged 1 commit intoSep 14, 2026
Merged
Conversation
Reviewer's GuideThe PR consolidates CPE and CSAF imports into a single CPE-first synchronization workflow, so CSAF processing always has the required CPE data regardless of import order, while retaining stage-specific failure reporting and removing the standalone CPE sync interface. Sequence diagram for the consolidated CPE-first CSAF syncsequenceDiagram
participant Client
participant CsafSyncHandler
participant CpeController
participant CsafController
participant Database
Client->>CsafSyncHandler: put(sync_all)
CsafSyncHandler->>CpeController: store()
CpeController->>Database: import CPE metadata
CpeController-->>CsafSyncHandler: success
CsafSyncHandler->>CsafController: store(sync_all)
CsafController->>Database: import CSAF metadata
CsafController-->>CsafSyncHandler: success
CsafSyncHandler-->>Client: OK
alt CPE import fails
CpeController-->>CsafSyncHandler: exception
CsafSyncHandler->>Database: rollback()
CsafSyncHandler-->>Client: ERROR or DB_ERROR
else CSAF import fails
CsafController-->>CsafSyncHandler: exception
CsafSyncHandler->>Database: rollback()
CsafSyncHandler-->>Client: ERROR or DB_ERROR
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
RostyslavKachan
force-pushed
the
add_cpe_sync_to_csaf
branch
from
September 11, 2026 14:20
a547bf9 to
d67f907
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1958 +/- ##
==========================================
- Coverage 62.98% 54.32% -8.67%
==========================================
Files 70 93 +23
Lines 6800 6338 -462
==========================================
- Hits 4283 3443 -840
- Misses 2517 2870 +353
- Partials 0 25 +25 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jdobes
requested changes
Sep 11, 2026
RostyslavKachan
force-pushed
the
add_cpe_sync_to_csaf
branch
2 times, most recently
from
September 14, 2026 11:09
70e12a2 to
1d042b4
Compare
jdobes
requested changes
Sep 14, 2026
| @staticmethod | ||
| def run_task(*args, **kwargs): | ||
| """Function to start syncing CSAFs.""" | ||
| def run_task(*args, **kwargs): # pylint: disable=too-many-return-statements |
Member
|
Also
|
RHINENG-29933
RostyslavKachan
force-pushed
the
add_cpe_sync_to_csaf
branch
from
September 14, 2026 14:33
1d042b4 to
1c9a2a4
Compare
jdobes
approved these changes
Sep 14, 2026
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.
RHINENG-29933
Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist
Summary by Sourcery
Run CPE synchronization before CSAF synchronization to ensure imports work regardless of CPE import order.
Bug Fixes:
Enhancements:
Documentation: