Closed
Bug 1312433
Opened 8 years ago
Closed 4 years ago
Improvements for balrog.submitter.api
Categories
(Release Engineering Graveyard :: Applications: Balrog (backend), defect, P3)
Release Engineering Graveyard
Applications: Balrog (backend)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: sfraser, Assigned: sfraser)
Details
(Whiteboard: [lang=python][ready])
Attachments
(4 files)
There are several improvements to be done to the balrog python api 1. Python 3 compatibility 2. Basic tests 3. Move from hg.m.o/build/tools and bare python to a python module 4. More storage from hg.m.o to balrog repository on github Scope: migration of api.py and not updates.py or cli.py at this stage. Requires a stub to be left in place for cli.py to use.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8803884 -
Flags: review?(mtabara)
Updated•8 years ago
|
Attachment #8803884 -
Flags: review?(mtabara) → review+
Comment hidden (mozreview-request) |
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8804644 [details] Stub api.py for bug 1312433 - redirects module loads to new version installed as 'balrogclient' https://reviewboard.mozilla.org/r/88560/#review87682 Do you know if there's consumers of api.py that don't manage their own python packages? In the past, we've had things that would simply clone build/tools and run it. (This is why things like requests are in https://hg.mozilla.org/build/tools/file/tip/lib/python/vendor.) If we still have any of these, you'll need to place balrogclient into the vendor directory. r=me if there's none of those - I suspect the releaseduty folks will know if they still exist or not.
Comment 4•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8804644 [details] Stub api.py for bug 1312433 - redirects module loads to new version installed as 'balrogclient' https://reviewboard.mozilla.org/r/88560/#review87682 Not sure I'm understanding this right. There's at least two situations I can think of that use the cli.py which at its turn use api.py: 1. funsize-balrog-submitter jobs in Release Promotion use https://hg.mozilla.org/mozilla-central/file/tip/release/docker/funsize-balrog-submitter that clones tools repo here https://hg.mozilla.org/mozilla-central/file/tip/release/docker/funsize-balrog-submitter/Dockerfile#l19 and use it here https://hg.mozilla.org/mozilla-central/file/tip/release/docker/funsize-balrog-submitter/scripts/funsize-balrog-submitter.py#l16 2. funsize-balrogworker (which is to be used in the nightly migration graph) that clones the tools repo here https://github.com/mozilla-releng/funsize-balrogworker/blob/master/Dockerfile#L24 and use it here https://github.com/mozilla-releng/funsize-balrogworker/blob/master/bin/balrogworker.py#L17 If you're thinking at the sole api.py consumers, I'd say we're safe on that side. I'd also double check with Rail too however.
Comment 5•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8804644 [details] Stub api.py for bug 1312433 - redirects module loads to new version installed as 'balrogclient' https://reviewboard.mozilla.org/r/88560/#review87682 What about the Release Promotion jobs that run scripts such as https://hg.mozilla.org/build/tools/file/tip/scripts/updates/balrog-release-pusher.py and https://hg.mozilla.org/build/tools/file/tip/scripts/updates/balrog-release-shipper.py? Do they/will they be able to install balrogclient on their own?
Assignee | ||
Comment 6•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8804644 [details] Stub api.py for bug 1312433 - redirects module loads to new version installed as 'balrogclient' https://reviewboard.mozilla.org/r/88560/#review87682 If there's no clear idea of where it gets run, perhaps it's easier to put it into the vendor directory and let the existing 'hg pull' sort it out, and then later on we can look at trying to record what's used where and how it's deployed, so we can make these decisions smoothly.
Comment 7•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8804644 [details] Stub api.py for bug 1312433 - redirects module loads to new version installed as 'balrogclient' https://reviewboard.mozilla.org/r/88560/#review87682 Fine with me. We can always remove it in the distant future.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 10•8 years ago
|
||
mozreview-review |
Comment on attachment 8805111 [details] Create copy of balrogclient module in vendor/ directory, for distribution. For bug 1312433, https://reviewboard.mozilla.org/r/88960/#review88112 All looks good to me as long you push these at the same time!
Attachment #8805111 -
Flags: review?(bhearsum) → review+
Comment 11•8 years ago
|
||
mozreview-review |
Comment on attachment 8804644 [details] Stub api.py for bug 1312433 - redirects module loads to new version installed as 'balrogclient' https://reviewboard.mozilla.org/r/88560/#review88116
Attachment #8804644 -
Flags: review?(bhearsum) → review+
Comment 12•8 years ago
|
||
Landed these as https://hg.mozilla.org/build/tools/rev/c41157cfe71773ca9763be088061b2e6343b075f
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Assignee: nobody → sfraser
Assignee | ||
Comment 14•8 years ago
|
||
mozreview-review |
Comment on attachment 8806329 [details] Bug 1312433 - Regenerate docker image, bump funsize version https://reviewboard.mozilla.org/r/89804/#review89266
Attachment #8806329 -
Flags: review?(sfraser) → review+
Comment 15•8 years ago
|
||
Comment on attachment 8806329 [details] Bug 1312433 - Regenerate docker image, bump funsize version remote: https://hg.mozilla.org/build/puppet/rev/4ee7d8336125fd99498dd118912d53fd2dacc142 remote: https://hg.mozilla.org/build/puppet/rev/5ddb82303f5988d1af873e7aa5f12ee80180ca90
Attachment #8806329 -
Flags: checked-in+
Comment 16•8 years ago
|
||
backout: remote: https://hg.mozilla.org/build/puppet/rev/189ad2a70a2b29ba4701ad872c2d30a2f3b6fe73 remote: https://hg.mozilla.org/build/puppet/rev/769f1f8d5a6bd98b8a3fac5dc18c14a0ea06b331
Comment 17•8 years ago
|
||
Had to back this out for bustage: https://treeherder.mozilla.org/logviewer.html#?job_id=5470398&repo=mozilla-central#L77 We might need some sys.path manipulation somewhere?
Updated•7 years ago
|
Priority: -- → P3
Whiteboard: [lang=python][ready]
Comment 18•7 years ago
|
||
Once the swagger work (https://bugzilla.mozilla.org/show_bug.cgi?id=1336452) is done I think this might get replaced by an autogenerated (or mostly autogenerated) SDK. I'll leave this open for now, though.
Comment 19•4 years ago
|
||
Simon, is there anything here you think is worth tracking still? If so, let's file as an Issue.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Assignee | ||
Comment 20•4 years ago
|
||
It doesn't look like we ended up with an autogenerated library, but the code has been moved to https://github.com/mozilla-releng/scriptworker-scripts/tree/master/balrogscript/src/balrogscript/submitter and updated, so I think we're ok for the moment. It probably does need reworking at some point.
Updated•4 years ago
|
Product: Release Engineering → Release Engineering Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•