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

Require copr build job definition for tests #2012

Merged

Conversation

lbarcziova
Copy link
Member

@lbarcziova lbarcziova commented Apr 18, 2023

Add pre-check for TestingFarmHandler that checks whether there is a copr build job definition in the config, if not, report it to user and do not run the tests.

Related to #1775

Do not merge this before the configurations in affected repos are updated (or at least wait some time after PRs are opened)


RELEASE NOTES BEGIN
Packit will now additionally require for each test job requiring build a build job definition to be present in the Packit configuration file.
RELEASE NOTES END

@softwarefactory-project-zuul
Copy link
Contributor

@lbarcziova
Copy link
Member Author

recheck

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/3de38b5d1a6844ababd5adf0ac9aab9e

✔️ pre-commit SUCCESS in 1m 59s
✔️ packit-service-tests SUCCESS in 1m 58s
✔️ packit-service-tests-openshift SUCCESS in 12m 53s

@LecrisUT
Copy link
Contributor

Shouldn't #1981 be fixed before this? It might not run any tests or at least create constant notifications otherwise

@lbarcziova
Copy link
Member Author

@LecrisUT as you can see, that one is also in progress, and I will merge that one first, don't worry..and this one will also need to wait for the updates in affected PRs

Copy link
Member

@lachmanfrantisek lachmanfrantisek left a comment

Choose a reason for hiding this comment

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

I am wondering if we can't remove more. E.g. the required_for decorator.

Add pre-check for TestingFarmHandler that checks whether there is a copr
build job definition in the config, if not, report it to user and do
not run the tests.

Related to packit#1775
Since now it is required to have a build job configuration for
test configuration, this decorator is no longer needed.
@lbarcziova lbarcziova force-pushed the test-build-required branch from e5e4aab to 36a2ebc Compare May 17, 2023 07:59
@lbarcziova
Copy link
Member Author

@lachmanfrantisek good point 👍 removed

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/1d8fee977dd643eb9412fb56e0e4a3ce

✔️ pre-commit SUCCESS in 2m 14s
✔️ packit-service-tests SUCCESS in 2m 33s
✔️ packit-service-tests-openshift SUCCESS in 12m 10s

@lbarcziova lbarcziova added the mergeit When set, zuul wil gate and merge the PR. label May 17, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/15668fc3bb4a4339b8941baa05d629de

✔️ pre-commit SUCCESS in 2m 14s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 7add044 into packit:main May 17, 2023
@lbarcziova lbarcziova deleted the test-build-required branch May 17, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants