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

test: Fix artifact collection for FQDN matchPattern test #16759

Merged
merged 2 commits into from
Jul 5, 2021

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Jul 2, 2021

This pull request fixes a couple artifact collection bugs. See the commits for details.

It was tested with a purposely-broken test at https://jenkins.cilium.io/job/Cilium-PR-Runtime-4.9/5208/testReport/junit/(root)/Suite-runtime/RuntimeFQDNPolicies_Implements_matchPattern___/. You can see the artifact there and it also has the bugtool report. To be compared to the broken artifact collection at https://jenkins.cilium.io/job/cilium-master-runtime-kernel-4.9/2247/testReport/junit/(root)/Suite-runtime/RuntimeFQDNPolicies_Implements_matchPattern_____/.

Fixes: #16753.
Fixes: #16754.

@pchaigno pchaigno added kind/bug/CI This is a bug in the testing code. area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Jul 2, 2021
@pchaigno pchaigno force-pushed the fqdn-fix-artifact-collection branch from 88fc424 to 0a4e013 Compare July 2, 2021 14:48
test/helpers/cilium.go Outdated Show resolved Hide resolved
@pchaigno pchaigno force-pushed the fqdn-fix-artifact-collection branch from 0a4e013 to 532f35d Compare July 2, 2021 16:04
@pchaigno pchaigno marked this pull request as ready for review July 2, 2021 16:05
@pchaigno pchaigno requested review from a team as code owners July 2, 2021 16:05
@pchaigno pchaigno force-pushed the fqdn-fix-artifact-collection branch from 532f35d to d62a42b Compare July 2, 2021 16:06
The file path wasn't properly escaped and therefore failed for our one
test named:

    RuntimeFQDNPolicies Implements matchPattern: "*"

Fixes: d1798b3 ("Test: Add variadic argument on Node.Exec functions")
Signed-off-by: Paul Chaignon <paul@cilium.io>
Jenkins' TestDataPublishers is failing to link the artifact for this
test to the test itself in the interface, likely due to a escaping bug:

    Recording test results
    Attachment ad391c17_RuntimeFQDNPolicies_Implements_matchPattern:_"*".zip was referenced from the test 'Suite-runtime' but it doesn't exist. Skipping.

We can rename the test to avoid that issue.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno force-pushed the fqdn-fix-artifact-collection branch from d62a42b to 9bb4cde Compare July 5, 2021 14:17
@pchaigno
Copy link
Member Author

pchaigno commented Jul 5, 2021

test-runtime

@pchaigno
Copy link
Member Author

pchaigno commented Jul 5, 2021

I don't think we need the @cilium/proxy review here. Other team reviews are covered and tests are passing. Merging.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 5, 2021
@pchaigno pchaigno merged commit 39163ae into cilium:master Jul 5, 2021
@pchaigno pchaigno deleted the fqdn-fix-artifact-collection branch July 5, 2021 19:28
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.9.9 Jul 16, 2021
@pchaigno
Copy link
Member Author

Marking for backports as it can significantly help flake debugging.

@joestringer joestringer added this to Needs backport from master in 1.9.10 Jul 19, 2021
@joestringer joestringer removed this from Needs backport from master in 1.9.9 Jul 19, 2021
@joestringer joestringer moved this from Needs backport from master to Backport done to v1.9 in 1.9.10 Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake kind/bug/CI This is a bug in the testing code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
No open projects
1.9.10
Backport done to v1.9
6 participants