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

ExitWithError() - pod_xxx tests #22552

Merged

Conversation

edsantiago
Copy link
Member

Followup to #22270: wherever possible/practical, extend command
error checks to include explicit exit status codes and error strings.

This commit handles a subset of test/e2e/pod_xxxx_test.go
(I stopped before this grew too huge for review)

Signed-off-by: Ed Santiago santiago@redhat.com

None

@openshift-ci openshift-ci bot added release-note-none approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 30, 2024
@edsantiago edsantiago force-pushed the exitwitherror-part3 branch from 95f9b7f to 79ad900 Compare April 30, 2024 17:52
Copy link
Member

@lsm5 lsm5 left a comment

Choose a reason for hiding this comment

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

LGTM

@edsantiago edsantiago force-pushed the exitwitherror-part3 branch from 79ad900 to c68024c Compare April 30, 2024 19:02
Copy link
Member Author

@edsantiago edsantiago left a comment

Choose a reason for hiding this comment

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

CI is green (except for the usual machine flake). Ready for review. Pointing out a few areas that merit special attention.

test/e2e/pod_create_test.go Outdated Show resolved Hide resolved
test/e2e/pod_create_test.go Outdated Show resolved Hide resolved
Comment on lines +15 to +16
if IsRemote() {
expect = `no such pod "foobar"`
Copy link
Member Author

Choose a reason for hiding this comment

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

I love conditionals. I love inconsistent error messages. They make life so interesting.

test/e2e/pod_rm_test.go Outdated Show resolved Hide resolved
@mheon
Copy link
Member

mheon commented May 1, 2024

The nondeterministic error messages are wierd - I don't see how those could be racing.

@giuseppe
Copy link
Member

giuseppe commented May 2, 2024

The nondeterministic error messages are wierd - I don't see how those could be racing.

we run the removal jobs in parallel. Could it depend from that?

@edsantiago edsantiago force-pushed the exitwitherror-part3 branch from 54087f8 to 88e26ee Compare May 2, 2024 13:15
Followup to containers#22270: wherever possible/practical, extend command
error checks to include explicit exit status codes and error strings.

This commit handles a subset of test/e2e/pod_xxxx_test.go
(I stopped before this grew too huge for review)

Signed-off-by: Ed Santiago <santiago@redhat.com>
@edsantiago edsantiago force-pushed the exitwitherror-part3 branch from 88e26ee to 275c068 Compare May 2, 2024 14:48
@cevich
Copy link
Member

cevich commented May 2, 2024

Does anyone know (@cevich maybe) if there's a way to find past Cirrus runs?

Yes, if it's on a PR, click (or find) the historical commit ID in question. For example in this PR there's 79ad900df95f1e36bc60d1904ca5e716acf24eb9. In the upper-left of the commit title will be a Red X or green check you can use to interact with any Github check that ran vs that commit.

For branches it's a bit trickier, but the technique is the same: Find the commit.

@mheon
Copy link
Member

mheon commented May 2, 2024

LGTM

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 3, 2024
Copy link
Contributor

openshift-ci bot commented May 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: edsantiago, Luap99

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

@openshift-merge-bot openshift-merge-bot bot merged commit 6ec2c0b into containers:main May 3, 2024
91 checks passed
@edsantiago edsantiago deleted the exitwitherror-part3 branch May 5, 2024 17:37
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Aug 4, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Aug 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants