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

fix e2e-tests #329

Closed
wants to merge 4 commits into from
Closed

fix e2e-tests #329

wants to merge 4 commits into from

Conversation

cpanato
Copy link
Member

@cpanato cpanato commented Apr 1, 2024

What type of PR is this?

/kind bug

What this PR does / why we need it:

  • fix e2e-tests
    e2e postsubmit tests were failing for a long time, this PR fix the tests

green run: https://github.com/kubernetes-sigs/release-sdk/actions/runs/8508551487/job/23302306978

/assign @saschagrunert @puerco @xmudrii
cc @kubernetes-sigs/release-engineering

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

fix e2e tests for image signing 

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 1, 2024
@k8s-ci-robot k8s-ci-robot added the sig/release Categorizes an issue or PR as relevant to SIG Release. label Apr 1, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 1, 2024
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 1, 2024
Signed-off-by: cpanato <[email protected]>
@cpanato
Copy link
Member Author

cpanato commented Apr 1, 2024

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 1, 2024
@cpanato cpanato marked this pull request as draft April 1, 2024 14:11
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 1, 2024
}

return true
})

// join unknow refs and remove duplicates
unknownRefs = append(unknownRefs, unknownRefsTemp...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The appending of unknownRefsTemp to unknownRefs changes the initial logic in line 363. This will also make the test fail:

{ // Skip on no signatures listed
fakeReference: &FakeReferenceStub{
image: "gcr.io/fake/honk:99.99.99",
registry: "gcr.io",
repository: "fake/honk",
},
prepare: func(mock *signfakes.FakeImpl) {
m := &sync.Map{}
m.Store("gcr.io/fake/honk:99.99.99", false)
mock.ImagesSignedReturns(m, nil)
},
assert: func(obj *sign.SignedObject, err error) {
require.Nil(t, err)
require.Nil(t, obj)
},

cpanato added 2 commits April 2, 2024 10:33
Signed-off-by: cpanato <[email protected]>
Signed-off-by: cpanato <[email protected]>
@cpanato
Copy link
Member Author

cpanato commented Apr 2, 2024

/test pull-release-sdk-integration-test
/test pull-release-sdk-test

Comment on lines -351 to +349
require.Nil(t, obj)
require.NotNil(t, obj)
Copy link
Member

@saschagrunert saschagrunert Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope we don't regress anything with that. Let's add a release note mentioning the behavioral change.

@cpanato
Copy link
Member Author

cpanato commented Apr 2, 2024

@k8s-ci-robot
Copy link
Contributor

@cpanato: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-release-sdk-verify 9ceba1b link true /test pull-release-sdk-verify
pull-release-sdk-integration-test 835317f link true /test pull-release-sdk-integration-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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/test-infra repository. I understand the commands that are listed here.

@cpanato
Copy link
Member Author

cpanato commented Apr 2, 2024

closing this in favor of another branch with the correct fix

@cpanato cpanato closed this Apr 2, 2024
@cpanato cpanato deleted the fix-tests-e2e branch April 2, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/bug Categorizes issue or PR as related to a bug. sig/release Categorizes an issue or PR as relevant to SIG Release. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants