mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-14 01:41:23 +00:00
e23a83e859
When polling RH Errata, Apollo sets the last sync date to the first advisory we process (advisories are synced in descending order). If a failure happens while processing newer advisories, the sync is already set and the system skips over advisories it has NOT yet processed. This PR sets the mirror state in a parent transaction, then commits that transaction if no failures occur. Skipping advisories when an error occurs is also reworked, where the first failure fails the workflow. The workflow will retry on its normal schedule. |
||
---|---|---|
.. | ||
testdata | ||
autocreate_advisory_test.go | ||
autocreate_advisory.go | ||
BUILD.bazel | ||
collect_cve_data.go | ||
common.go | ||
downstream_check_test.go | ||
downstream_check.go | ||
poll_mirror_cve_test.go | ||
poll_mirror_cve.go | ||
poll_mirror_errata_test.go | ||
poll_mirror_errata.go | ||
update_cve_state_test.go | ||
update_cve_state.go | ||
workflow_test.go | ||
workflow.go |