WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
208743
resultsdbpy: Add tool to manage resultsdbpy container
https://bugs.webkit.org/show_bug.cgi?id=208743
Summary
resultsdbpy: Add tool to manage resultsdbpy container
Jonathan Bedard
Reported
2020-03-06 16:04:23 PST
Add tool to start, stop and restart the resultsdbpy Docker container. I've found myself doing this sequence of commands enough to get annoyed by it.
Attachments
Patch
(3.62 KB, patch)
2020-03-06 16:09 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(3.70 KB, patch)
2020-03-06 16:53 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(3.70 KB, patch)
2020-03-06 18:00 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch for landing
(3.77 KB, patch)
2020-03-09 07:45 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Jonathan Bedard
Comment 1
2020-03-06 16:09:25 PST
Created
attachment 392795
[details]
Patch
Aakash Jain
Comment 2
2020-03-06 16:20:15 PST
Comment on
attachment 392795
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392795&action=review
> Tools/ChangeLog:3 > + resultsdbpy: Add container tool
Bug title should be little more descriptive.
> Tools/resultsdbpy/resultsdbpy/container:59 > + start_parser = subparsers.add_parser('start', help='Start the container')
container -> 'docker container'?
Jonathan Bedard
Comment 3
2020-03-06 16:53:18 PST
Created
attachment 392811
[details]
Patch
Aakash Jain
Comment 4
2020-03-06 17:47:50 PST
Comment on
attachment 392811
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392811&action=review
> Tools/resultsdbpy/resultsdbpy/container:34 > + Docker.start()
running check required here?
> Tools/resultsdbpy/resultsdbpy/container:40 > + if Docker.is_running():
missing not?
Jonathan Bedard
Comment 5
2020-03-06 17:51:47 PST
Comment on
attachment 392811
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392811&action=review
>> Tools/resultsdbpy/resultsdbpy/container:34 >> + Docker.start() > > running check required here?
The Docker function contains that check already.
Jonathan Bedard
Comment 6
2020-03-06 18:00:24 PST
Created
attachment 392823
[details]
Patch
Aakash Jain
Comment 7
2020-03-07 10:58:18 PST
Comment on
attachment 392823
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392823&action=review
rs=me
> Tools/resultsdbpy/resultsdbpy/container:44 > + Docker.stop()
Do we need to return 0 here?
> Tools/resultsdbpy/resultsdbpy/container:50 > + Docker.stop_project(Docker.DEFAULT_PROJECT)
What if stop_project() fails, do we need to handle that? Does the return code of stop_project() indicate that?
Jonathan Bedard
Comment 8
2020-03-09 07:35:41 PDT
Comment on
attachment 392823
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392823&action=review
>> Tools/resultsdbpy/resultsdbpy/container:44 >> + Docker.stop() > > Do we need to return 0 here?
We should, although we don't need to (since 'None' becomes 0)
>> Tools/resultsdbpy/resultsdbpy/container:50 >> + Docker.stop_project(Docker.DEFAULT_PROJECT) > > What if stop_project() fails, do we need to handle that? Does the return code of stop_project() indicate that?
It's going to raise an exception. The output won't be pretty, but it will be correct. Generally, these functions aren't expected to fail, so when they do, exceptions are raised.
Jonathan Bedard
Comment 9
2020-03-09 07:45:40 PDT
Created
attachment 393032
[details]
Patch for landing
WebKit Commit Bot
Comment 10
2020-03-09 08:12:02 PDT
Comment on
attachment 393032
[details]
Patch for landing Clearing flags on attachment: 393032 Committed
r258141
: <
https://trac.webkit.org/changeset/258141
>
WebKit Commit Bot
Comment 11
2020-03-09 08:12:04 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12
2020-03-09 08:13:15 PDT
<
rdar://problem/60223645
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug