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

Updates downstream bug state #252

Merged
merged 1 commit into from Nov 21, 2016
Merged

Conversation

bmbouter
Copy link
Member

This puts 4 changes in place:

  • The downstream bug state is transitioned to POST
    when the upstream bug is at MODIFIED+.

  • If the downstream bug is at POST+ and the upstream
    bug is at POST- it fails the job which notifies a
    human.

  • A placeholder for a future Foreman integration point
    where downstream transitions will not occur if the
    upstream Foreman bug is not at MODIFIED+.

  • Some small fixes where lines were > 100 chars.

https://pulp.plan.io/issues/2351
closes #2351

@mention-bot
Copy link

@bmbouter, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dkliban to be a potential reviewer.

@bmbouter bmbouter force-pushed the 2351-American-Stout branch 2 times, most recently from 7fe2b66 to a118b69 Compare November 21, 2016 17:09
issue.status.name in upstream_POST_minus:
msg = 'The downstream bug %s is at POST+ but the upstream bug %s ' \
'at POST-. Something is wrong.' % (bug.id, issue.id)
raise RuntimeError(msg)
Copy link
Member

Choose a reason for hiding this comment

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

you should probably accumulate these error messages like you do with the linking problems. Then raise an Exception at the end with text from all the problems found along the way.

@bmbouter bmbouter force-pushed the 2351-American-Stout branch 2 times, most recently from 94c680a to 7dcdf84 Compare November 21, 2016 20:34
This puts several changes in place:

* The downstream bug state is transitioned to POST
  when the upstream bug is at MODIFIED+.

* If the downstream bug is at POST+ and the upstream
  bug is at POST- it fails the job which notifies a
  human.

* Logic to ignore transitioning a downstream bug if
  there is a Foreman issue associated with it.

* Some small fixes where lines were > 100 chars.

* Some small docs improvements

https://pulp.plan.io/issues/2351
closes #2351
@bmbouter bmbouter merged commit 72fa447 into pulp:master Nov 21, 2016
@bmbouter bmbouter deleted the 2351-American-Stout branch November 21, 2016 20:52
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

3 participants