-
Notifications
You must be signed in to change notification settings - Fork 48
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 searching for base build when triggering OpenScanHub scan #2518
Fix searching for base build when triggering OpenScanHub scan #2518
Conversation
Build succeeded. ✔️ pre-commit SUCCESS in 2m 14s |
it means now for the copr build handler tasks, the git repo would be cloned, which we tried to avoid previously :/ do you think we could solve this in another way? |
I suppose it would be possible (though a bit hacky) to only enable |
I am still not sure we should be cloning the whole repo to get few commit hashes, what about getting it via API? |
It seems possible for GitHub and GitLab, not for Pagure, but I suppose we don't care 🙂 |
Wouldn't it be easier to get last successful build? From the practical PoV I don't really see a difference between:
Or is the issue with different packages in the Copr repo? Can't we just filter by the package name in that case? |
I think the problem is we need to get only builds triggered from the target branch of a PR. Although it would be weird to build in the same Copr project from different branches, it is possible. |
I have opened packit/ogr#857. |
Signed-off-by: Nikola Forró <[email protected]>
40af615
to
030497e
Compare
Build succeeded. ✔️ pre-commit SUCCESS in 2m 11s |
I decided to leave |
We can use Build directories for this purpose. But this would require quite a lot of work. |
Are you referring to this? I like the idea of having commit/release triggered builds in a project and PR builds in its subdirectories (I'm just starting to work on #2432), but I'm not sure if we should force users do configure that if they want to use OSH. Or maybe I just don't get your comment 🙂 |
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.
lgtm 👍
Build succeeded (gate pipeline). ✔️ pre-commit SUCCESS in 9m 19s |
8e54543
into
packit:main
Fixes #2495.
Two notes:
require_git_repo_in_local_project