Skip to content

Comments

tests: Fix timing race in legacy ConfigMap upgrade test#559

Merged
kubevirt-bot merged 1 commit intok8snetworkplumbingwg:mainfrom
RamLavi:fix_stale_race
Aug 7, 2025
Merged

tests: Fix timing race in legacy ConfigMap upgrade test#559
kubevirt-bot merged 1 commit intok8snetworkplumbingwg:mainfrom
RamLavi:fix_stale_race

Conversation

@RamLavi
Copy link
Member

@RamLavi RamLavi commented Aug 7, 2025

What this PR does / why we need it:
This PR is fixing a test flake. The test for legacy ConfigMap migration was failing due to a timing race condition. The MAC entry was becoming stale too quickly (after 1 minute) before the test could verify the "occupied" state.

Changed the stale timeout from 1 minute to 3 minutes in simulateSoonToBeStaleEntryInConfigMap() to give the test sufficient time.
Special notes for your reviewer:
Fix #558

Release note:

NONE

The test for legacy ConfigMap migration was failing due to a timing race
condition. The MAC entry was becoming stale too quickly (after 1 minute)
before the test could verify the "occupied" state.

Changed the stale timeout from 1 minute to 3 minutes in
simulateSoonToBeStaleEntryInConfigMap() to give the test sufficient
time.

Signed-off-by: Ram Lavi <ralavi@redhat.com>
@RamLavi
Copy link
Member Author

RamLavi commented Aug 7, 2025

/retest

@oshoval
Copy link
Member

oshoval commented Aug 7, 2025

Thanks

/lgtm

@RamLavi
Copy link
Member Author

RamLavi commented Aug 7, 2025

/approve

/cherry-pick release-0.49

@kubevirt-bot
Copy link
Collaborator

@RamLavi: once the present PR merges, I will cherry-pick it on top of release-0.49 in a new PR and assign it to you.

Details

In response to this:

/approve

/cherry-pick release-0.49

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubevirt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RamLavi

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

@kubevirt-bot kubevirt-bot merged commit 20f3508 into k8snetworkplumbingwg:main Aug 7, 2025
5 checks passed
@kubevirt-bot
Copy link
Collaborator

@RamLavi: new pull request created: #560

Details

In response to this:

/approve

/cherry-pick release-0.49

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

RamLavi added a commit to RamLavi/kubemacpool that referenced this pull request Aug 18, 2025
Following [0] the e2e takes longer, making it timeout on some CI cases.
Increasing the timeout to 90m.

[0] k8snetworkplumbingwg#559

Signed-off-by: Ram Lavi <ralavi@redhat.com>
kubevirt-bot pushed a commit to kubevirt-bot/kubemacpool that referenced this pull request Aug 19, 2025
Following [0] the e2e takes longer, making it timeout on some CI cases.
Increasing the timeout to 90m.

[0] k8snetworkplumbingwg#559

Signed-off-by: Ram Lavi <ralavi@redhat.com>
kubevirt-bot added a commit that referenced this pull request Aug 19, 2025
Following [0] the e2e takes longer, making it timeout on some CI cases.
Increasing the timeout to 90m.

[0] #559

Signed-off-by: Ram Lavi <ralavi@redhat.com>
Co-authored-by: Ram Lavi <ralavi@redhat.com>
kubevirt-bot pushed a commit to kubevirt-bot/kubemacpool that referenced this pull request Aug 19, 2025
Following [0] the e2e takes longer, making it timeout on some CI cases.
Increasing the timeout to 90m.

[0] k8snetworkplumbingwg#559

Signed-off-by: Ram Lavi <ralavi@redhat.com>
kubevirt-bot added a commit that referenced this pull request Aug 19, 2025
Following [0] the e2e takes longer, making it timeout on some CI cases.
Increasing the timeout to 90m.

[0] #559

Signed-off-by: Ram Lavi <ralavi@redhat.com>
Co-authored-by: Ram Lavi <ralavi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants