WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
193735
[ews-app] Add method to save Build data to database
https://bugs.webkit.org/show_bug.cgi?id=193735
Summary
[ews-app] Add method to save Build data to database
Aakash Jain
Reported
2019-01-23 12:54:21 PST
We should add method to save Build data to database for ews-app.
Attachments
Proposed path
(4.40 KB, patch)
2019-01-23 12:58 PST
,
Aakash Jain
lforschler
: review+
Details
Formatted Diff
Diff
Updated patch
(6.36 KB, patch)
2019-01-28 04:51 PST
,
Aakash Jain
lforschler
: review+
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Aakash Jain
Comment 1
2019-01-23 12:58:35 PST
Created
attachment 359931
[details]
Proposed path
Lucas Forschler
Comment 2
2019-01-23 13:15:42 PST
Comment on
attachment 359931
[details]
Proposed path View in context:
https://bugs.webkit.org/attachment.cgi?id=359931&action=review
logic looks good to me, with possible name/refactoring.
> Tools/BuildSlaveSupport/ews-app/ews/common/util.py:46 > +def is_valid_int_id(id):
would this be ok as 'is_valid_id' ?
> Tools/BuildSlaveSupport/ews-app/ews/models/build.py:51 > + def save_build(cls, patch_id, buildid, builderid, number, result, state_string, started_at, complete_at=None):
since we are using underscores for patch_id, should we continue that with build_id, builder_id?
> Tools/BuildSlaveSupport/ews-app/ews/models/build.py:72 > + if not (util.is_valid_int_id(patch_id) and util.is_valid_int_id(buildid) and util.is_valid_int_id(builderid) and util.is_valid_int_id(number)):
nit: extra space before the last 'and'
Aakash Jain
Comment 3
2019-01-28 04:51:15 PST
Created
attachment 360334
[details]
Updated patch
> would this be ok as 'is_valid_id' ?
renamed. Also updated the method to make it more generic.
> since we are using underscores for patch_id, should we continue that with build_id, builder_id?
Uploaded Patch for this change in
https://bugs.webkit.org/show_bug.cgi?id=193883
Also updated this patch to use build_id, builder_id.
> nit: extra space before the last 'and'
Fixed. Also added some more functionality (e.g.: update_build() method). Can you please review again?
Aakash Jain
Comment 4
2019-01-28 11:28:51 PST
This patch should apply to ToT after
https://bugs.webkit.org/show_bug.cgi?id=193883
WebKit Commit Bot
Comment 5
2019-01-28 12:12:54 PST
Comment on
attachment 360334
[details]
Updated patch Rejecting
attachment 360334
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'validate-changelog', '--check-oops', '--non-interactive', 360334, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in Tools/ChangeLog is not at the top of the file. Full output:
https://webkit-queues.webkit.org/results/10926382
Aakash Jain
Comment 6
2019-01-28 15:08:50 PST
Committed
r240603
: <
https://trac.webkit.org/changeset/240603
>
Radar WebKit Bug Importer
Comment 7
2019-01-28 15:09:27 PST
<
rdar://problem/47612792
>
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