New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HBO Unit test flaky #3506
Comments
Another instance of the flake here [1]
[1] https://github.com/ovn-org/ovn-kubernetes/actions/runs/4670010801/jobs/8269215240?pr=3328 |
https://github.com/ovn-org/ovn-kubernetes/actions/runs/4913009061/jobs/8772692637?pr=3575 another flake
|
/assign @flavio-fernandes |
Found an easy way of reproducing this issue!
Comment out OR duplicate call to addSyncFlows :
And start debugging Unit Test using this launch.json file below.Wait a few seconds; it will be enough time to make the extra commands happen and cause the test to fail.
|
Add support in FakeExec to handle cases where the expected command may happen more than once. This was causing CI flakes for a Hybrid Overlay tests where periodically generated events would render duplicates that were not accounted for, but were benign to the test itself. Reported-at: https://issues.redhat.com/browse/OCPBUGS-13979 Fixes: ovn-org#3506 Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
Add support in FakeExec to handle cases where the expected command may happen more than once. This was causing CI flakes for Hybrid Overlay tests where periodically generated events would render duplicates that were not accounted for, but were benign to the test itself. Reported-at: https://issues.redhat.com/browse/OCPBUGS-13979 Fixes: ovn-org#3506 Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
The test had to be changed to account for additional fake commands that may happen during its execution. More specifically, xxx would invoke yyy, which invokes the following commands: ZZZ Reported-at: https://issues.redhat.com/browse/OCPBUGS-13979 Fixes: ovn-org#3506 Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
The test had to be changed to account for additional fake commands that may happen during its execution. More specifically, an async callback to ReplaceOFFlows() would invoke these 2 fake commands during the test: /fake-bin/ovs-ofctl dump-flows --no-stats br-ext table=20 /fake-bin/ovs-ofctl -O OpenFlow13 --bundle replace-flows br-ext - The origin of this callback is located in: func (n *NodeController) RunFlowSync(stopCh <-chan struct{}) More details on the stack trace is available in: ovn-org#3506 Reported-at: https://issues.redhat.com/browse/OCPBUGS-13979 Fixes: ovn-org#3506 Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
Details on the issue that caused this flake is located here: #3610 (comment) |
The test had to be changed to account for additional fake commands that may happen during its execution. More specifically, an async callback to ReplaceOFFlows() would invoke these 2 fake commands during the test: /fake-bin/ovs-ofctl dump-flows --no-stats br-ext table=20 /fake-bin/ovs-ofctl -O OpenFlow13 --bundle replace-flows br-ext - The origin of this callback is located in: func (n *NodeController) RunFlowSync(stopCh <-chan struct{}) More details on the stack trace is available in: ovn-org#3506 Reported-at: https://issues.redhat.com/browse/OCPBUGS-13979 Fixes: ovn-org#3506 Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
testing make the timeout for the periodic syncing of the ovs flows so high during testing that there will be no impact and this should eliminate testing flakes Reported as: https://issues.redhat.com/browse/OCPBUGS-13979 Fixes: ovn-org#3506 Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com>
testing make the timeout for the periodic syncing of the ovs flows so high during testing that there will be no impact and this should eliminate testing flakes Reported as: https://issues.redhat.com/browse/OCPBUGS-13979 Fixes: ovn-org#3506 Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com>
testing make the timeout for the periodic syncing of the ovs flows so high during testing that there will be no impact and this should eliminate testing flakes Reported as: https://issues.redhat.com/browse/OCPBUGS-13979 Fixes: ovn-org#3506 Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com>
See https://github.com/ovn-org/ovn-kubernetes/actions/runs/4540645068/jobs/8001816447?pr=3505
The text was updated successfully, but these errors were encountered: