Commit Graph

513 Commits

Author SHA1 Message Date
Filip Valder
dd4790f514 fix: issue #159 return state_url in JSON after module build submission 2016-11-07 13:13:01 +01:00
Jan Kaluza
8339e389be Fix out-of-memory caused by loading ModuleBuild for every ComponentBuild row from database. Now we lazyload it. 2016-11-03 10:17:03 +01:00
Ralph Bean
6a0434d8b5 Set KOJI_PROXYUSER=True on the devnode.
See the inline comment in config.py.

Relates to https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/?id=a28a93dad75248c30c1792ec35f588c8e317c067
2016-11-02 12:44:50 -04:00
Ralph Bean
28183b9d3f Fix an error in the KojiBuilder.
The issue is that _get_task_by_artifact returns either None or a dict of
info and we weren't handling that correctly.  My mistake.
2016-11-02 10:23:42 -04:00
Ralph Bean
b2d1cf9f0d Merge #154 Fix #126 - remove Builder class 2016-11-02 12:54:04 +00:00
Ralph Bean
4238d67eaa Merge #152 Install copr instead of copr-backend to fix error 2016-11-02 12:51:12 +00:00
Jan Kaluza
d9916a1634 Fix #126 - remove Builder class 2016-11-01 14:44:42 +01:00
Jan Kaluza
42138810d5 Fix KojiModuleBuilder.build return values in tests 2016-11-01 12:05:08 +01:00
Matt Prahl
725157d253 Install copr instead of copr-backend to fix error 2016-10-31 12:21:13 -04:00
Ralph Bean
737a6f8b19 Merge #151 Another try at portable fedmsg-relay dev config. 2016-10-31 15:15:04 +00:00
Ralph Bean
7ff97cbe43 Merge #147 Pass around more info on pre-built components 2016-10-31 15:14:38 +00:00
Ralph Bean
cb050b92c8 Use a less hacky way to determine if we're running inside Docker. 2016-10-31 10:47:50 -04:00
Ralph Bean
77b5e93d6f Another try at portable fedmsg-relay dev config. 2016-10-31 09:38:21 -04:00
Matt Prahl
fdbdd6a2c2 Merge #145 Allow handlers to return extra work to the scheduler. 2016-10-31 13:25:06 +00:00
Ralph Bean
c2101df92b Add comment explaining what's going on here. 2016-10-31 09:06:43 -04:00
Ralph Bean
725fa9f3e0 Merge #150 Ignore repository builds without the '-build' suffix. 2016-10-31 13:03:58 +00:00
Jan Kaluza
6fd16587bc Ignore repository builds without the '-build' suffix. 2016-10-31 13:14:31 +01:00
Jan Kaluza
cc5836d3ce Fix 'We have no record of ...' when Koji task finishes by comparing task_id with task_id and not with buil_id. 2016-10-31 11:27:42 +01:00
Jan Kaluža
2d862bf36a Merge #148 Adjustments to the dev config. 2016-10-31 09:11:27 +00:00
Jan Kaluža
ef395fcaeb Merge #146 Use the local session, not the Flask-managed one. 2016-10-31 09:09:35 +00:00
Jan Kaluža
9124a24f21 Merge #144 Some helpful kerberos logging. 2016-10-31 09:06:42 +00:00
Ralph Bean
77a01a3b33 Adjustments to the dev config.
This should make it easier to have a common configuration between local
docker-compose environments and the config for the modularity.fic.org
cloud node.
2016-10-29 16:21:09 -04:00
Ralph Bean
99b0993fe0 Pass around more info on pre-built components so we can resume module builds. 2016-10-29 16:12:24 -04:00
Ralph Bean
b3ae06f824 Use the local session, not the Flask-managed one. 2016-10-29 16:00:11 -04:00
Ralph Bean
fdb735de44 Allow handlers to return extra work to the scheduler. 2016-10-29 15:55:06 -04:00
Ralph Bean
77d8756384 Some helpful kerberos logging. 2016-10-29 15:50:48 -04:00
Ralph Bean
22e0472bb6 Typofix. 2016-10-29 14:25:21 -04:00
Ralph Bean
b35b7d9577 Log the authtype. 2016-10-28 16:48:41 -04:00
Ralph Bean
7ec22b2009 Merge #141 Migrate Vagrant to use Kerberos auth instead of certs 2016-10-28 20:38:55 +00:00
Matt Prahl
5dff72c903 Migrate Vagrant to use Kerberos auth instead of certs 2016-10-28 16:25:33 -04:00
Matt Prahl
86a1a1d3a9 Merge #142 Add instructions on how to kinit against stg. 2016-10-28 20:24:36 +00:00
Ralph Bean
79a72ac056 Add instructions on how to kinit against stg.
Instructions from @puiterwijk.  Thanks!
2016-10-28 16:23:10 -04:00
Matt Prahl
531480ed6c Merge #140 Make our use of proxyuser configurable. 2016-10-28 20:17:28 +00:00
Ralph Bean
f3ebe112a2 Make our use of proxyuser configurable. 2016-10-28 15:46:15 -04:00
Ralph Bean
70ec4b369f Configure our docker dev setup to use krb for koji.
Our code in `module_build_service/builder.py` can already do kerberos
authentication with koji.  This commit changes our docker development
tools to use that instead of ssl authentication.

Relates to #111.
2016-10-28 15:42:39 -04:00
Ralph Bean
f877b377d3 Merge #138 Add a HACKING.rst doc alongside README.rst. 2016-10-28 16:03:43 +00:00
Ralph Bean
61a260d020 Adjust CONTRIBUTING.rst doc based on PR feedback. 2016-10-28 11:51:39 -04:00
Matt Prahl
2c800a63b9 Merge #137 Disable our usage of the koji proxyuser feature. 2016-10-28 14:13:52 +00:00
Matt Prahl
3d767151cf Merge #135 Get docker-compose actually working! 2016-10-28 14:12:44 +00:00
Ralph Bean
bf33dfbb95 Move the db initialization to a side container so we don't have to rebuild to nuke the db. 2016-10-28 10:11:28 -04:00
Ralph Bean
6a12323242 Whitespace, for readability. 2016-10-28 10:11:28 -04:00
Ralph Bean
d5aca36098 Simplify these build lines. 2016-10-28 10:11:28 -04:00
Ralph Bean
2eb03ca32e Silence one really noisy logger from python-requests. 2016-10-28 10:11:28 -04:00
Ralph Bean
3a18e156ed Adjust fedmsg config to work in our docker-compose environment. 2016-10-28 10:11:28 -04:00
Ralph Bean
fffb7d341f Get the network and database shared across our containers correctly. 2016-10-28 10:11:28 -04:00
Ralph Bean
f9bc94cc92 Add network utilities to help debug docker-compose container network. 2016-10-28 10:10:09 -04:00
Ralph Bean
174a4b66cf Add a HACKING.rst doc alongside README.rst. 2016-10-27 16:17:25 -04:00
Ralph Bean
3786af7467 Disable our usage of the koji proxyuser feature.
Unfortunately, the proxyuser method requires that we add all of the
modularity developers to the ProxyDNs entry in the staging koji-hub
config, and that's just not going to happen.

We get to re-work this in this ticket anyways,
https://pagure.io/fm-orchestrator/issue/112

While the proxyuser argument is in place, we can submit no builds to
koji at all (as far as I can tell), so this blocks further development.
2016-10-27 16:03:22 -04:00
Ralph Bean
bb317a9323 Fix typo bug in our existence check.
This gave a traceback every time before.  We need a trailing comma there
in order to make that an `iterable`, otherwise our `in` check doesn't
make any sense.
2016-10-27 15:59:41 -04:00
Ralph Bean
8e6ce2ef6f Merge #134 Remove 'module-' prefix from koji_tag in module_depsolving_wrapper 2016-10-27 15:12:43 +00:00