Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Introducing new handlers to maintain an rpm dep chain. #15

Merged
merged 45 commits into from
Sep 26, 2016

Conversation

ralphbean
Copy link
Contributor


# TODO - look for any further special psuedo-error handling cases here.
import pprint
pprint.pprint(body)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to keep this in for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should probably change it to log.something(body).

I'd like to keep it because I'm not sure what kind of error PDC might throw back at me. If it is a new error I've never seen before, I'd like to know the details in the logs so I can make an appropriate patch to handle it in the future.

@pypingou
Copy link
Member

pypingou commented Sep 9, 2016

Ok, nothing widly standing out for me, but I must confess I'm not sure to follow everything and I might have been running low on coffee when I reviewed this one

return ['buildsys.tag']

def can_handle(self, msg):
if not msg['topic'].endswith('buildsys.tag'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if it'd be a good idea to use 'self.topic_suffixes' instead of hardcoding 'buildsys.tag'. Not a big deal for now, but as things grow, it might be nice to just update one location for what is supported in this handler.

pdcupdater.utils.ensure_release_exists(pdc, release_id, release)

koji_relationships = self._yield_koji_relationships(pdc, tag)
for parent, type, child in koji_relationships:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, can we rename type to something like relationship_type to not override the builtin type function.

@mprahl
Copy link
Contributor

mprahl commented Sep 9, 2016

@ralphbean looks good. I didn't look too closely at the tests though.

Just a few comments to address and then go ahead and merge it.

@ralphbean
Copy link
Contributor Author

OK, after lots of refactoring, this is much faster. It used to take ~1 hour to process a single build. Now it takes ~1 minute. :)

@ralphbean ralphbean merged commit 7b8a948 into fedora-infra:develop Sep 26, 2016
@ralphbean ralphbean deleted the feature/rpm-dep-chain branch September 26, 2016 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants