Commit Graph

34 Commits

Author SHA1 Message Date
Owen W. Taylor
646b0590ee MBSConsoleHandler: show status of ongoing repository downloads
When downloading files from Koji to make a local repository, display
a temporary status of which files are being displayed to the console
appended after any log messages. Updates are done by erasing the status
that was written, adding a log message, then writing the status again.
2023-03-15 17:16:24 +00:00
Brendan Reilly
d4c213d678 Resolve issues reported by bandit 2022-07-21 09:09:12 -04:00
Owen W. Taylor
e06a7e33cd Move 'Connecting to koji <url>' messages to debug 2022-04-25 12:27:02 -04:00
Chenxiong Qi
1c0715662a Cleanup module_build_service/__init__.py
Most of the code are moved to dedicated subpackages, but some others
can't due to the cycle dependencies.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-03-03 14:48:48 -05:00
mprahl
81f2bffdda Rearrange the imports to meet the style guide
This also includes `from __future__ import absolute_import`
in every file so that the imports are consistent in Python 2 and 3.
The Python 2 tests fail without this.
2020-03-03 14:48:47 -05:00
mprahl
9ddb35b8d3 Move models.py to common/models.py and views.py to web/views.py 2020-03-03 14:48:47 -05:00
mprahl
d9f32bff9d Move errors.py to common/errors.py 2020-03-03 14:48:47 -05:00
mprahl
b0a27081f4 Split utils/general.py
This puts backend specific code in either the builder or scheduler
subpackage. This puts API specific code in the new web subpackage.
Lastly, any code shared between the API and backend is placed in the
common subpackage.
2020-03-03 14:48:47 -05:00
mprahl
1160d47e7a Stop adding repo entries for empty tags for local builds
DNF fails on Fedora 31 when there is a repo entry to an empty directory.
2019-11-07 11:18:50 -05:00
mprahl
8c6cfb702d Use small license headers in the Python files
This also removes the outdated comments around authorship of each
file. If there is still interest in this information, one can just
look at the git history.
2019-10-03 08:47:24 -04:00
mprahl
453d871e03 Make the log message in execute_cmd easier to read for local builds 2019-09-25 17:30:21 -04:00
mprahl
66c3f82160 Format the coding style across the codebase using "black" and manual tweaks
The main benefit of this commit is that the use of double quotes
is now consistent.
2019-04-26 00:32:13 -04:00
Ralph Bean
84762891f7 Close threadpools after use. 2018-08-15 12:47:18 -04:00
mprahl
55d07aa8f5 Use Koji repos if possible during local builds 2018-01-18 17:02:03 -05:00
mprahl
c0ec0f82c1 Remove urlgrabber as a dependency 2018-01-03 10:21:37 -05:00
mprahl
ea34df0fd1 Set the timeout on Koji sessions to 10 minutes 2017-11-15 12:57:49 -05:00
Martin Curlej
60b3d97c97 flake8 cleanup
Signed-off-by: Martin Curlej <mcurlej@redhat.com>

removed some noqa tags
2017-10-25 12:13:59 +02:00
Filip Valder
7ef2975984 PEP8 fixes 2017-07-17 18:29:10 +02:00
Ralph Bean
a755104bd4 Fix the test suite.
We had some circular imports that caused the tests (and more?) to fail.

I ran into this when looking at the tests for #583 and #595.
2017-07-06 21:02:32 -04:00
Jakub Kadlčík
cdb2c50266 foo 2017-06-01 20:48:21 +02:00
Jakub Kadlčík
0aee22b753 Move the hackish code to CoprModuleBuilder 2017-05-30 15:22:34 +02:00
Jakub Kadlčík
56efd10db9 Allow CoprModuleBuilder to obtain packages from copr-dist-git 2017-05-30 13:13:46 +02:00
Jakub Kadlčík
91e08d723f Allow build_from_scm to build even from custom distgits 2017-05-29 23:32:51 +02:00
Jakub Kadlčík
aee7c0b299 Return proc.communicate() output 2017-05-29 23:28:00 +02:00
Jakub Kadlčík
53c00dc074 Allow stdout and stderr to be something else than file 2017-05-29 23:26:42 +02:00
Jan Kaluza
91758a9d4e Output urlgrabber to stdout, so it is not lost when LOG_LEVEL is info. 2017-05-25 17:26:39 +02:00
Jakub Kadlčík
6e92ed6b97 Add function to find srpm in given directory 2017-05-16 14:51:40 +02:00
Jan Kaluža
5bdc87b8bb Merge #518 Mock backend: Create repository from Koji tag locally instead of using the one stored in kojipkgs. 2017-04-24 14:50:44 +00:00
Jan Kaluza
ccf66804e5 Store built modules using mock in ~/modulebuild by default and use that directory for koji_tags cache by default too. 2017-04-24 16:15:35 +02:00
Nils Philippsen
ec2be36d6e pep8: don't surround '=' with spaces for keyword args 2017-04-21 12:54:06 +02:00
Jan Kaluza
94848511e3 Mock backend: Create repository from Koji tag locally instead of using the one stored in kojipkgs. 2017-04-21 10:37:00 +02:00
Jakub Kadlčík
3817d37e35 Move send_repo_done to utils 2017-04-07 08:22:59 +02:00
Jakub Kadlčík
18502030f2 Rename _execute_cmd to not be private 2017-04-07 08:22:59 +02:00
Jakub Kadlčík
a4a3f1734d Move common functions to utils file 2017-04-07 08:22:59 +02:00