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

refactor fedora message sending into cosalib/fedora_messaging_request.py #1102

Merged
merged 2 commits into from
Feb 5, 2020

Conversation

dustymabe
Copy link
Member

This PR re-factors out the code that sends requests to fedora
releng/infra via fedora messaging messages into a library. It can
then be called by the code in src/cmd-sign as well as new consumers
in the future.

Also implements request_id for fedmsg passing in cmd-sign.

@dustymabe dustymabe requested a review from jlebon February 4, 2020 22:21
@dustymabe
Copy link
Member Author

so I got this to work for sending a message to staging but it never responded. I'll have to investigate if staging robosig is in a good state or not.

Copy link
Contributor

@darkmuggle darkmuggle left a comment

Choose a reason for hiding this comment

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

Might be worth taking a looking to using cosalib.cli for the parsers. But otherwise, nothing stands out to me.

src/cosalib/fedora_messaging_request.py Outdated Show resolved Hide resolved
Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Only skimmed but seems sane.

(Though man, multiprocessing and threads in Python, whee...)

@dustymabe
Copy link
Member Author

ok I pushed up an update:

  • rebased on top of latest master
  • fixed a bunch of flake8 issues
  • ran python black on the two files I touched in order to format them (fixed a bunch of flake8 spacing errors)

@dustymabe
Copy link
Member Author

also figured out the issue with staging and successfully sent a request and got a response

@dustymabe dustymabe marked this pull request as ready for review February 5, 2020 18:08
src/cosalib/fedora_messaging_request.py Outdated Show resolved Hide resolved
src/cmd-sign Outdated Show resolved Hide resolved
src/cosalib/fedora_messaging_request.py Outdated Show resolved Hide resolved
src/cmd-sign Outdated Show resolved Hide resolved
This commit re-factors out the code that sends requests to fedora
releng/infra via fedora messaging messages into a library. It can
then be called by the code in src/cmd-sign as well as new consumers
in the future.
@dustymabe
Copy link
Member Author

  • removed black formatting
  • rebased on top of latest master
  • re-tested against robosignatory in staging

@jlebon
Copy link
Member

jlebon commented Feb 5, 2020

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, dustymabe, jlebon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [cgwalters,dustymabe,jlebon]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit ec5c0ee into coreos:master Feb 5, 2020
arithx pushed a commit to arithx/coreos-assembler that referenced this pull request Feb 7, 2020
```
Benjamin Gilbert (3):
      cmd/ore/aws: let list-regions list disabled regions, or all regions
      Merge pull request coreos#1102 from bgilbert/regions
      Merge pull request coreos#1104 from jcajka/bcrypt

Jakub Čajka (1):
      kola/tests/rpmostree: use NVR instead of NVRA

Jonathan Lebon (5):
      auth/aliyun: fix parsing config file
      Merge pull request coreos#1105 from jlebon/pr/aliyun-profile-fix
      ore/aliyun: add --delete-object and default to true
      platform/api/aliyun: sprinkle with some logging
      Merge pull request coreos#1107 from jlebon/pr/aliyun-delete-object
```
jcajka pushed a commit to jcajka/coreos-assembler that referenced this pull request Mar 24, 2020
cmd/ore/aws: let list-regions list disabled regions, or all regions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants