Skip to content

fix schedule update progress intermitent failure#1334

Merged
openshift-merge-bot[bot] merged 1 commit intostolostron:mainfrom
birsanv:vb_0812_25
Aug 19, 2025
Merged

fix schedule update progress intermitent failure#1334
openshift-merge-bot[bot] merged 1 commit intostolostron:mainfrom
birsanv:vb_0812_25

Conversation

@birsanv
Copy link
Copy Markdown
Collaborator

@birsanv birsanv commented Aug 19, 2025

Issue : the reconciler updates Velero Schedules then returns with a requeue. The test updates the spec again immediately and expects all 5 Schedules to reflect the new cron within 20s. Under envtest with controller cache sync and background work, reconcile can lag; the function returns an error for any partial progress which keeps Eventually in “error” state until it times out.
Fix: changed the test to stop failing on partial progress. It now keeps polling until all 5 Velero Schedules reflect the new cron, without emitting an error per tick.

The error:
[38;5;243m------------------------------[0m
[38;5;9m• [FAILED] [28.478 seconds][0m
[0mBackupSchedule controller [38;5;243mbasic backup schedule functionality [0mwhen testing schedule spec updates [38;5;9m[1m[It] should update velero schedules when BackupSchedule spec is changed[0m
[38;5;243m/go/src/github.com/stolostron/cluster-backup-operator/controllers/schedule_controller_test.go:1073[0m

[38;5;243mTimeline >>[0m
[1mSTEP:[0m creating backup schedule and waiting for all velero schedules [38;5;243m@ 08/19/25 14:34:29.828[0m
[1mSTEP:[0m verifying initial velero schedule configuration [38;5;243m@ 08/19/25 14:34:30.083[0m
[1mSTEP:[0m updating backup schedule spec with new cron and TTL values [38;5;243m@ 08/19/25 14:34:30.083[0m
[1mSTEP:[0m verifying backup schedule spec was updated [38;5;243m@ 08/19/25 14:34:30.088[0m
[1mSTEP:[0m waiting for controller to detect spec changes and update velero schedules [38;5;243m@ 08/19/25 14:34:30.089[0m
[1mSTEP:[0m verifying all velero schedules have new configuration [38;5;243m@ 08/19/25 14:34:32.204[0m
[1mSTEP:[0m verifying backup schedule status reflects successful update [38;5;243m@ 08/19/25 14:34:32.205[0m
[1mSTEP:[0m testing cron schedule update without TTL change [38;5;243m@ 08/19/25 14:34:32.207[0m
[1mSTEP:[0m waiting for controller to propagate cron schedule changes to all velero schedules [38;5;243m@ 08/19/25 14:34:32.212[0m
[38;5;9m[FAILED][0m in [It] - /go/src/github.com/stolostron/cluster-backup-operator/controllers/schedule_controller_test.go:1287 [38;5;243m@ 08/19/25 14:34:58.285[0m
[38;5;243m<< Timeline[0m

[38;5;9m[FAILED] Timed out after 20.001s.
All Velero schedules should be updated
The function passed to Eventually returned the following error:
<*errors.errorString | 0xc00051f540>:
schedule update progress: 0/5 updated
{
s: "schedule update progress: 0/5 updated",
}[0m

Signed-off-by: Valentina Birsan <vbirsan@redhat.com>
@sonarqubecloud
Copy link
Copy Markdown

@birsanv
Copy link
Copy Markdown
Collaborator Author

birsanv commented Aug 19, 2025

/retest

@birsanv birsanv requested a review from sahare August 19, 2025 15:53
Copy link
Copy Markdown
Collaborator

@sahare sahare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Aug 19, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: birsanv, sahare

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 068bd0f into stolostron:main Aug 19, 2025
10 of 11 checks passed
@birsanv birsanv deleted the vb_0812_25 branch August 19, 2025 16:59
@birsanv birsanv restored the vb_0812_25 branch February 23, 2026 18:55
@birsanv birsanv deleted the vb_0812_25 branch March 9, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants