peridot/apollo/workflow
Mustafa Gezen e23a83e859
Fix Apollo skipping errata if failure happens after updating last sync
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.
2022-11-06 04:39:28 +01:00
..
testdata Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
autocreate_advisory_test.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
autocreate_advisory.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
BUILD.bazel Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
collect_cve_data.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
common.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
downstream_check_test.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
downstream_check.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
poll_mirror_cve_test.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
poll_mirror_cve.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
poll_mirror_errata_test.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
poll_mirror_errata.go Fix Apollo skipping errata if failure happens after updating last sync 2022-11-06 04:39:28 +01:00
update_cve_state_test.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
update_cve_state.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
workflow_test.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00
workflow.go Sync-01 - 10/30/2022 2022-10-30 02:59:43 +01:00