Skip to content
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

[v1.14] bgpv1: Fix BGP component tests using the same VirtualRouter config #29453

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

rastislavs
Copy link
Contributor

@rastislavs rastislavs commented Nov 28, 2023

This is an author's backport of #28420 potentially fixing the CI issue #28415

As some of the BGP component tests mutate the VirtualRouter config,
we need to make sure that mutated config is not used by the following tests.
That was the case before this fix, as multiple tests are using the
same baseBGPPolicy. Now each test creates a deep copy of the base config,
which is fine to mutate within the test.
This change also ensures that fixture.config.policy always contains
the most up-to-date policy.

Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
@rastislavs rastislavs added kind/backports This PR provides functionality previously merged into master. backport/1.14 This PR represents a backport for Cilium 1.14.x of a PR that was merged to main. labels Nov 28, 2023
@rastislavs
Copy link
Contributor Author

/test-backport-1.14

@rastislavs rastislavs marked this pull request as ready for review November 28, 2023 20:59
@rastislavs rastislavs requested a review from a team as a code owner November 28, 2023 20:59
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 29, 2023
@youngnick youngnick merged commit a8e6923 into cilium:v1.14 Nov 29, 2023
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.14 This PR represents a backport for Cilium 1.14.x of a PR that was merged to main. kind/backports This PR provides functionality previously merged into master. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants