envtest flake: VolumeReplicationGroupVolRepController restore test case for existing and bound PV/PVC PVC selection when two are deselected with volume unprotection disabled [It] updates the status #1372
VRG read a config map that had not enabled VolumeUnprotectionEnabled and so never updated status to remove the PVC (and so the resource revision stayed the same) and caused the failure
Q: The CM is written out and read per VRG reconcile using the APIReader, so ideally it should have fetched the updated CM as the test updates it first before fetching the current resource version, unsure why there is still a race here
VolumeReplicationGroupVolRepController restore test case for existing and bound PV/PVC PVC selection when two are deselected with volume unprotection disabled [It] updates the status
.../ramen/controllers/vrg_volrep_test.go:397
<huge snip of logs>
[FAILED] in [It] - /home/somari/go/src/github.com/ramendr/ramen/controllers/vrg_volrep_test.go:398 @ 05/03/24 10:36:26.097
<< Timeline
[FAILED] Timed out after 1.000s.
Expected
<string>: 2299
not to equal
<string>: 2299
In [It] at: .../ramen/controllers/vrg_volrep_test.go:398 @ 05/03/24 10:36:26.097
Summarizing 1 Failure:
[FAIL] VolumeReplicationGroupVolRepController restore test case for existing and bound PV/PVC PVC selection when two are deselected with volume unprotection disabled [It] updates the status
.../ramen/controllers/vrg_volrep_test.go:398
Issue seems to be as follows:
Instance: https://github.com/ShyamsundarR/ramen/actions/runs/8950110219/job/24585118592 (also occurred about 2 out of 75 times locally)