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

Improve compose tests to report test errors as failures #21046

Merged

Conversation

gavinkflam
Copy link
Contributor

@gavinkflam gavinkflam commented Dec 16, 2023

@Luap99 raised a concern about test errors being ignored and not causing failures #21013 (comment). cc @edsantiago

Improvements

  • Add traps to report setup, tests, and teardown errors as failures
  • Pass through return code of podman commands
  • Fix unset variables
  • Fix simple_port_map image build when installing flask (PEP 668 - externally managed environment error)
  • Ignore kill errors in slirp4netns_opts teardown steps

Does this PR introduce a user-facing change?

None

* Add traps to report setup, tests, and teardown errors as failures
* Pass through return code of podman commands
* Fix unset variables
* Fix simple_port_map image build when installing flask (PEP 668 - externally managed environment error)
* Ignore kill errors in slirp4netns_opts teardown steps

Signed-off-by: Gavin Lam <[email protected]>
@gavinkflam gavinkflam changed the title Improve compose tests Improve compose tests to report test script errors as failures Dec 16, 2023
@gavinkflam gavinkflam changed the title Improve compose tests to report test script errors as failures Improve compose tests to report test errors as failures Dec 16, 2023
@rhatdan
Copy link
Member

rhatdan commented Dec 17, 2023

Thanks @gavinkflam
@edsantiago PTAL

@edsantiago
Copy link
Member

Nice work @gavinkflam, thank you.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2023
@rhatdan
Copy link
Member

rhatdan commented Dec 18, 2023

/approve

Copy link
Contributor

openshift-ci bot commented Dec 18, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gavinkflam, rhatdan

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-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 18, 2023
@openshift-merge-bot openshift-merge-bot bot merged commit d161cf3 into containers:main Dec 18, 2023
91 of 92 checks passed
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Mar 18, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 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.

3 participants