Skip to content
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

Don't return prematurely if parent task is still open. #214

Merged
merged 1 commit into from Mar 2, 2015

Conversation

ralphbean
Copy link
Contributor

@robert-scheck hit this here:
fedora-infra/fmn#54 (comment)

  • There is a parent build which had one task:
    • That task had three child tasks
      • srpmfromscm
      • buildarch
      • tagbuild

All three grandchild tasks were done and koji published a fedmsg message
about it, but the middle-parent task had not yet become 'closed'. FMN
tried to get the 'results' of the middle-parent task, but when that task
is still 'open', this throws an exception.

We can handle that exception, but we returned prematurely from the
_fill_task_template method, returning before we had a chance to
iterate over the grandchild tasks that have the most interesting
information (binary rpms, logs, etc).

This patch should avoid that premature return so we can cram as much
info as is available in our emails.

@robert-scheck hit this here:
fedora-infra/fmn#54 (comment)

There is a parent build which had one task:
   That task had three child tasks
        srpmfromscm
        buildarch
        tagbuild

All three grandchild tasks were done and koji published a fedmsg message
about it, but the middle-parent task had not yet become 'closed'.  FMN
tried to get the 'results' of the middle-parent task, but when that task
is still 'open', this throws an exception.

We can handle that exception, but we returned prematurely from the
``_fill_task_template`` method, returning before we had a chance to
iterate over the grandchild tasks that have the most interesting
information (binary rpms, logs, etc).

This patch should avoid that premature return so we can cram as much
info as is available in our emails.
@pypingou
Copy link
Member

pypingou commented Mar 1, 2015

Cool for me 👍

ralphbean added a commit that referenced this pull request Mar 2, 2015
Don't return prematurely if parent task is still open.
@ralphbean ralphbean merged commit fd9cea7 into develop Mar 2, 2015
@ralphbean ralphbean deleted the feature/koji-longform-fix branch March 2, 2015 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants