-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add a git-snapshot (tarball) generator #72
base: main
Are you sure you want to change the base?
Add a git-snapshot (tarball) generator #72
Conversation
@praiskup The OpenScanHub task submitted for this pull request seems to introduce shellcheck warnings: https://openscanhub.fedoraproject.org/task/25262/ Shall those files be packaged with the sources? |
Are those issues really new? Seems like some csdiff mismatch. |
For some reason, these warnings do not show up in the base scan: https://openscanhub.fedoraproject.org/task/25265/log/stdout.log And it happened a couple of times. Previous scan can be seen at https://openscanhub.fedoraproject.org/task/25254/ |
Isn't it because we did a rather non-trivial code movement within this repository recently aae2272? |
@praiskup It actually happened because Packit is submitting multiple scans for @lbarcziova It looks like another bug in Packit. |
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 didn't try to run this yet, ... only a first quick review.
_, distgit_instance_config = get_distgit_config(config, args.forked_from) | ||
spec = _get_preprocessed_specfile(distgit_instance_config, args) | ||
|
||
with tempfile.TemporaryDirectory(prefix="copr-test-walk") as workdir: |
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.
We should probably not use "copr" in the prefix
@@ -494,6 +570,8 @@ def main(): | |||
srpm(args, config) | |||
elif args.action == "clone": | |||
clone(args, config) | |||
elif args.action == "snapshot": | |||
snapshot(args, config) |
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.
Bikeshedding ... not sure if we should call this feature "snahpshot", or maybe "archive", or something else.
The src.rpm is distribution-specific format; the `rpmbuild -bs` doesn't necessarily generate the same output SRC.RPM if run on different distributions. The `snapshot` tarball is though generated in a distribution-agnostic way. Note that this tarball generator still requires specfile parsing by RPM, and it may fail easily, see release-engineering#71 for more info.
2283ea9
to
01f9ed1
Compare
The src.rpm is distribution-specific format; the
rpmbuild -bs
doesn't necessarily generate the same output SRC.RPM if run on different distributions. Thesnapshot
tarball is though generated in a distribution-agnostic way.Note that this tarball generator still requires specfile parsing by RPM, and it may fail easily, see #71 for more info.