Commit graph

1653 commits

Author SHA1 Message Date
Mike McLean
850db82881 fix int encoding in list_rpms 2015-09-23 16:15:42 -04:00
Mike McLean
0842e53abf BuildRoot.cg_new() and related updates 2015-09-23 16:15:42 -04:00
Mike McLean
c31ad75740 partial work 2015-09-21 18:35:30 -04:00
Mike McLean
a09a898cf0 assert cg access 2015-09-21 16:58:54 -04:00
Mike McLean
d31e774a1c Merge remote-tracking branch 'origin/master' into cgen 2015-09-21 15:43:01 -04:00
Mike McLean
4bb191cbcf check for tag existence in add-pkg 2015-09-21 15:39:27 -04:00
Mike McLean
91c877d359 add/remove user from cg 2015-09-21 15:37:50 -04:00
Mike McLean
77e26b7e19 cgen cli stub 2015-09-21 15:37:50 -04:00
Mike McLean
1d22b65e21 include new br info in queries 2015-09-17 15:44:49 -04:00
Mike McLean
ba80fc1141 fix br components data in cg_export 2015-09-17 15:44:48 -04:00
Mike McLean
28abac4958 cg_export fixes 2015-09-17 15:44:48 -04:00
Mike McLean
c2caf04c5e fix ambiguous buildroot_id column ref 2015-09-17 15:44:48 -04:00
Mike McLean
019786d969 cg_export 2015-09-17 15:44:48 -04:00
Mike McLean
29f1c568b3 provide CGImport call 2015-09-17 15:44:48 -04:00
Mike McLean
f64914a0e5 cg_import stub 2015-09-17 15:44:48 -04:00
Mike McLean
37c6eed562 use encode_int on rpm sizes 2015-09-17 15:38:35 -04:00
Ralph Bean
6a075b05f2 Remove koji._forceAscii.
It isn't used anywhere else in the source and its presence is confusing.

(We're supposed to use koji.fixEncoding(..) now, right?)
2015-09-17 15:38:35 -04:00
Mike Bonnet
42647193fb Resolve the canonical hostname when constructing the Kerberos server principal
Kerberos authentication will fail if the server principal uses a CNAME.  Resolving
the hostname in the server URL to the canonical hostname associated with the IP
address allows authentication to succeed.
2015-09-17 15:38:35 -04:00
Ian McLeod
ae71801f29 add support for Image Factory generation of VMWare Fusion Vagrant boxes 2015-09-11 15:47:22 -04:00
Ralph Bean
9103bda257 Be more careful when detect cert-expiry exceptions.
We ran into this in the Fedora koji instance today after an upgrade last night.
The inline comments explain the reasoning
2015-08-18 15:45:35 -04:00
Mike McLean
875b24306e don't omit debuginfos on buildinfo page 2015-08-06 14:31:07 -04:00
Mike McLean
94d95cbd84 correct error message in fastUpload 2015-08-05 15:53:49 -04:00
Dennis Gilmore
8fe713566b cli: rename download-scratch-build to download-task
since you can download any task  not just scratch builds it seems
silly to call it download-scratch-build

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-07-30 14:56:36 -05:00
Dennis Gilmore
4ec6cd34ad koji cli: add download-scratch-build command
patch from Jan Vcelak https://fedorahosted.org/koji/ticket/237

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-07-30 14:34:08 -05:00
Mathieu Bridon
ab0b2e465d Better catch SSL errors
Commit 4de27c52de made Koji to not retry
on SSL errors.

However, it turns out that some SSL errors are transient, and Koji
should still retry for them.

This commit changes that, so that we are more specific about which SSL
errors should be fatal: expired or revoked certificates.

https://bugzilla.redhat.com/show_bug.cgi?id=1207178
2015-07-24 14:16:11 -05:00
Dennis Gilmore
4d296f11be Check task method before trying to determine "scratch" status.
reabsed patch from https://lists.fedoraproject.org/pipermail/buildsys/2015-May/004685.html

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-07-23 21:43:01 -05:00
Mike McLean
b8b03099c8 fix changelog date 2015-07-14 23:45:08 -04:00
Mike McLean
ad9755a520 1.10 release 2015-07-14 23:37:07 -04:00
Mike McLean
0e66cc71ff migration doc for 1.10 2015-07-14 23:37:07 -04:00
Mike McLean
7c527d7d08 schema update script for 1.10 2015-07-14 23:37:07 -04:00
Mathieu Bridon
4de27c52de Don't retry on SSL failures
With the current code, trying to SSL-login with a bad certificate will
just make it look like the client code is hanging.

That's because it tries and tries again, silently, until it reaches it's
maximum retry limit.

But in the case of an SSL error, such as an expired client cert, there's
really no point in retrying.
2015-07-10 12:51:08 -05:00
Mathieu Bridon
8097ffce7b runroot: Avoid squashing path components with os.path.join
Although this is often a surprising behaviour, the Python documentation
is quite clear on this:

    If a component is an absolute path, all previous components are
    thrown away and joining continues from the absolute path component.

    https://docs.python.org/2/library/os.path.html#os.path.join

That means we need to ensure that we don't end up in this case.
2015-07-10 12:34:32 -05:00
Mike McLean
f426fdb05d show tag options in web ui 2015-06-24 09:46:16 -04:00
Mike McLean
0fb670598b show tag_extra in cli list-history 2015-06-24 09:46:16 -04:00
Mike McLean
9c8832f3c1 show/edit tag extra options in cli 2015-06-24 09:46:15 -04:00
Mike McLean
a0285163b5 honor tag['extra']['mock.package_manager'] 2015-06-24 09:46:15 -04:00
Mike McLean
ba7eb75886 initial support for tag extra options
tag_extra table in schema
report tag extras in taginfo and buildconfig
2015-06-24 09:46:15 -04:00
Mike McLean
22f720f085 download-logs: print a message when there are no logs to download
see: https://bugzilla.redhat.com/show_bug.cgi?id=1232916
2015-06-24 09:40:54 -04:00
Mike McLean
dee860ae44 capture mock output even if it exits immediately 2015-06-24 09:40:54 -04:00
Mike McLean
e8a30591fa Merge remote-tracking branch 'origin' into cgen 2015-06-18 14:26:18 -04:00
Dennis Gilmore
9c69602a65 Add systemd unit file for kojira
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Zbigniew Jędrzejewski-Szmek
7c435492cf Add systemd unit file for kojivmd
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Zbigniew Jędrzejewski-Szmek
10a75fc22f Add systemd unit file for kojid
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Dennis Gilmore
3260dbebdb schema: add missing image channel from the default schema
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Brian Stinson
d3eee76ce7 inject the url of the install tree into the kickstart used for generating images 2015-06-06 18:02:31 -04:00
Mike McLean
554a244876 Avoid errors logging anonymous retries (ticket 317)
see: https://fedorahosted.org/koji/ticket/317
2015-06-06 17:39:01 -04:00
Mike McLean
f68099f584 fix more #pylint issues 2015-06-06 17:38:52 -04:00
Mike McLean
1929eb320f handle symlinks in BuildMavenTask._zip_dir() 2015-06-06 17:38:45 -04:00
Ralph Bean
8ec72226d4 Make the templated footer configurable.
We ran into a problem[1] where old footers would cause syntax errors when
interpreted as templates.  This makes that behavior configurable and defaults
to the old literal interpretation.

[1] https://lists.fedoraproject.org/pipermail/buildsys/2015-May/004751.html
2015-06-06 16:34:07 -04:00
Ralph Bean
cf96a3f037 Catch the case where the runroot plugin is not installed. 2015-06-06 16:22:04 -04:00