-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge cleanup tasks into a single Housekeeping task #829
Conversation
Signed-off-by: nscuro <[email protected]>
It doesn't make sense that plugins are defined by DT, and cannot be provided by users. Instead, DT defines "extension points", for which plugins can provide implementations ("extensions"). This change also enabled plugins to provide multiple extensions, not just one. Signed-off-by: nscuro <[email protected]>
Making it easier to eventually move the API to a separate module altogether. Signed-off-by: nscuro <[email protected]>
Plugin and extension names are not necessarily unique, but in combination with their classes, they should be. So always include both the name and class in log statements to avoid any ambiguity. Make use of MDC to ensure consistent inclusion of contextual information in log statement. Signed-off-by: nscuro <[email protected]>
Signed-off-by: nscuro <[email protected]>
Signed-off-by: nscuro <[email protected]>
Signed-off-by: nscuro <[email protected]>
Signed-off-by: nscuro <[email protected]>
Signed-off-by: nscuro <[email protected]>
Signed-off-by: nscuro <[email protected]>
Signed-off-by: nscuro <[email protected]>
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Description
Warning
This PR is based on #805 and #794.
Merges cleanup tasks into a single Housekeeping task.
Addressed Issue
N/A
Additional Details
Before #794, we already had:
VulnerabilityScanCleanupTask
: Deletes allVULNERABILITYSCAN
records that have not been updated for over an hour.WorkflowStateCleanupTask
WORKFLOW_STATE
records fromSTATUS=PENDING
toSTATUS=TIMED_OUT
that have not been updated for a configurable duration.WORKFLOW_STATE
records fromSTATUS=TIMED_OUT
toSTATUS=FAILED
that have not been updated for a configurable duration.WORKFLOW_STEP
records that had their parent transitioned toSTATUS=FAILED
WORKFLOW_STATE
records that have not been updated for a configurable retention time.With #794, a new task for enforcing BOM upload retention would've been necessary. And there are more cases in which we'd benefit from retention enforcement (added
TODO
s in the code for those).It's easier to configure, and reason about these things if there's only a single task that executes them.
Checklist
This PR fixes a defect, and I have provided tests to verify that the fix is effectiveThis PR introduces changes to the database model, and I have updated the migration changelog accordinglyThis PR introduces new or alters existing behavior, and I have updated the documentation accordingly