Merge lp://staging/~justinmcp/unity-webapps-gmail/login-fix into lp://staging/unity-webapps-gmail

Proposed by Justin McPherson
Status: Merged
Approved by: Robert Bruce Park
Approved revision: 84
Merged at revision: 86
Proposed branch: lp://staging/~justinmcp/unity-webapps-gmail/login-fix
Merge into: lp://staging/unity-webapps-gmail
Diff against target: 91 lines (+41/-20)
2 files modified
GMail.test.js (+10/-0)
GMail.user.js (+31/-20)
To merge this branch: bzr merge lp://staging/~justinmcp/unity-webapps-gmail/login-fix
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
WebApps Pending
Review via email: mp+192095@code.staging.launchpad.net

Commit message

Fix Gmail logins.

To post a comment you must log in.
Revision history for this message
David Barth (dbarth) wrote :

The change looks good, but it would feel safer if you could wrap a fragment of the webapp DOM into a unit test, to verify that the new expression matches some sample content.

79. By Justin McPherson

Add function to validate and fetch node.

Change login detection to use validation function.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:79
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~justinmcp/unity-webapps-gmail/login-fix/+merge/192095/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/unity-webapps-gmail-ci/10/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/unity-webapps-gmail-trusty-amd64-ci/3/console
    FAILURE: http://jenkins.qa.ubuntu.com/job/unity-webapps-gmail-trusty-armhf-ci/3/console

Click here to trigger a rebuild:
http://10.97.0.26:8080/job/unity-webapps-gmail-ci/10/rebuild

review: Needs Fixing (continuous-integration)
80. By Justin McPherson

Merge from trunk.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
81. By Justin McPherson

Exchange let for var.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
82. By Justin McPherson

Fix check for matching report text.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Robert Bruce Park (robru) wrote :

Looks like you've got some jslint hassles there, Justin. If you run 'bzr bd' in your source tree it should invoke jslint for you, so you can test locally instead of having to push patches and wait for jenkins to show you the failures.

83. By Justin McPherson

Fixes for jslint warnings.

Revision history for this message
Justin McPherson (justinmcp) wrote :

Hey, thanks for the tip, very helpful.

I wasn't sure (still not really) how deeply we follow jslint output, if you
look at it you can see a lot of warnings from code not involved in this
change, they must of been there before and were not causing a build error?

- Justin

On Wed, Nov 6, 2013 at 4:52 AM, Robert Bruce Park <<email address hidden>
> wrote:

> Looks like you've got some jslint hassles there, Justin. If you run 'bzr
> bd' in your source tree it should invoke jslint for you, so you can test
> locally instead of having to push patches and wait for jenkins to show you
> the failures.
> --
>
> https://code.launchpad.net/~justinmcp/unity-webapps-gmail/login-fix/+merge/192095
> You are the owner of lp:~justinmcp/unity-webapps-gmail/login-fix.
>

Revision history for this message
Robert Bruce Park (robru) wrote :

Mmmmm, well currently we actually fail hard on even the most minor of jslint violations. There was a (long) period of time where our jslint implementation was silently broken and didn't catch any violations, so it's entirely possible that there are many violations in trunk.

I think the best thing to do is just fix all the warnings (regardless of if they're your fault or not) so that trunk can be in better shape for the future.

Thanks!

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
84. By Justin McPherson

Remove use of print, presently there are no messages in other categories.

Revision history for this message
Justin McPherson (justinmcp) wrote :

Turns out the other jslint errors are filtered, and the error was with the
changed code.

I'll add the used function to style_checker.js later, but its not strictly
necessary now, and I've removed it.

On Wed, Nov 6, 2013 at 11:05 AM, Robert Bruce Park <
<email address hidden>> wrote:

> Mmmmm, well currently we actually fail hard on even the most minor of
> jslint violations. There was a (long) period of time where our jslint
> implementation was silently broken and didn't catch any violations, so it's
> entirely possible that there are many violations in trunk.
>
> I think the best thing to do is just fix all the warnings (regardless of
> if they're your fault or not) so that trunk can be in better shape for the
> future.
>
> Thanks!
> --
>
> https://code.launchpad.net/~justinmcp/unity-webapps-gmail/login-fix/+merge/192095
> You are the owner of lp:~justinmcp/unity-webapps-gmail/login-fix.
>

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: