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
No need to configure build for tests #324
No need to configure build for tests #324
Conversation
Build failed.
|
f2993ee
to
693fc48
Compare
Build failed.
|
Build failed.
|
23a6a10
to
c492d83
Compare
Build failed.
|
Build failed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's ship it to stage!
The first commit is impossible to review, the rest looks great!
), | ||
], | ||
) | ||
def test_targets(jobs, build_targets, test_targets): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these test cases <3
is_copr_build: Callable[ | ||
[JobConfig], bool | ||
] = lambda job: job.type == JobType.copr_build | ||
|
||
if self.job.job == JobType.tests and any( | ||
filter(is_copr_build, self.package_config.jobs) | ||
): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd write this with a for loop, or at least pass the lambda directly to the filter call
but if you and Jirka think this is fine, let's roll
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's (currently) impossible to type lambda directly... I would be glad to see a better way to satisfy mypy
...
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
bccc7b5
to
40c71a5
Compare
Build succeeded.
|
Build succeeded (gate pipeline).
|
CoprBuildHandler
toCoprBuildJobHelper
because it's not related to theHandler
classes in the code.TestingFarmJobHelper
and share the code with the common superclass of theCoprBuildJobHelper
.CoprBuildJobHelper
to not need the copr_build job and calculate the right chroots.