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

Add 'test-tidy-faster' command to ./mach #9118

Merged
merged 1 commit into from Jan 8, 2016
Merged

Add 'test-tidy-faster' command to ./mach #9118

merged 1 commit into from Jan 8, 2016

Conversation

dsprenkels
Copy link
Contributor

For issue #9088, this adds a --changes option to ./mach test-tidy. If this option is set, tidy.py will only check files that have been modified since FETCH_HEAD.

Mention: @wafflespeanut

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 1, 2016
@wafflespeanut wafflespeanut self-assigned this Jan 2, 2016
@nox
Copy link
Contributor

nox commented Jan 2, 2016

I never have a FETCH_HEAD in my repository.

@dsprenkels
Copy link
Contributor Author

@nox, that's inconvenient. Shall I instead use

git log -n1 --author="bors-servo" --format="%H"

to find the last merge?

@wafflespeanut wafflespeanut added S-needs-decision A decision is required and has not been made. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jan 4, 2016
@wafflespeanut
Copy link
Contributor

-S-awaiting-review +S-needs-decision


Reviewed 1 of 3 files at r1, 2 of 2 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


tests/wpt/web-platform-tests/tools/lint/lint.py, line 28 [r2] (raw file):
No! (as @jgraham said, and I quote), we shouldn't have servo-specific code in the WPT dir, because it's a standard used by other browsers too, and not only us.

So, this probably requires more work than I'd previously anticipated. I'll come up with a plan soon :)


Comments from the review on Reviewable.io

@dsprenkels
Copy link
Contributor Author

We could stick to the original plan:

...we could have a mach command test-tidy-faster which ignores the check_wpt_lint_errors function in tidy.

Then we would not have to put any code in the WPT dir, but it would not be a very elegant (and probably just a temporary) solution.

@wafflespeanut
Copy link
Contributor

@dsprenkels Agreed, let's have test-tidy-faster for now. I'll see what I can do for the other case :)

@wafflespeanut wafflespeanut added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-needs-decision A decision is required and has not been made. labels Jan 4, 2016
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Jan 4, 2016
@dsprenkels dsprenkels changed the title Add '--changes' option to ./mach test-tidy Add 'test-tidy-faster' command to ./mach Jan 4, 2016
@dsprenkels
Copy link
Contributor Author

Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions.


python/servo/testing_commands.py, line 262 [r3] (raw file):
I implemented this as a separate command. However, it may be a good idea to add this to test-tidy as an option (-f/--faster). We could otherwise add --skip-example options to this command, which each skip particular test functions (when doing this, we could perhaps alias -f/--faster to --skip-wpt-lint).


python/tidy.py, line 567 [r3] (raw file):
At the moment I still only check the files that are changed. This makes the command run in two seconds (on my machine). Shall I keep this?


python/tidy.py, line 595 [r3] (raw file):
Should I give this line some color?


Comments from the review on Reviewable.io

@wafflespeanut wafflespeanut added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jan 6, 2016
@wafflespeanut
Copy link
Contributor

-S-awaiting-review +S-needs-code-changes


Reviewed 2 of 3 files at r3.
Review status: all files reviewed at latest revision, 3 unresolved discussions.


python/servo/testing_commands.py, line 262 [r3] (raw file):
Having -f / --faster flag is fine, but we don't wanna skip anything else (for now).


python/tidy.py, line 567 [r3] (raw file):
This would be helpful (pinging @jdm if he's okay with this)...


python/tidy.py, line 595 [r3] (raw file):
cool with me...


Comments from the review on Reviewable.io

@jdm
Copy link
Member

jdm commented Jan 6, 2016

Review status: all files reviewed at latest revision, 3 unresolved discussions.


python/tidy.py, line 567 [r3] (raw file):
Looks good to me, as long as we ensure that the version that runs on travis doesn't take the fast path.


Comments from the review on Reviewable.io

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Jan 6, 2016
@wafflespeanut wafflespeanut added S-needs-squash Some (or all) of the commits in the PR should be combined. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jan 7, 2016
@wafflespeanut
Copy link
Contributor

-S-awaiting-review +S-needs-squash
Looks good! Squash?


Reviewed 2 of 2 files at r4.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

which will
- only check files changed since the last merge by bors
- and skip the wpt-lint
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 7, 2016
@wafflespeanut
Copy link
Contributor

@bors-servo r+

Thanks! :)

@bors-servo
Copy link
Contributor

📌 Commit a9b8d47 has been approved by Wafflespeanut

@highfive highfive removed S-awaiting-review There is new code that needs to be reviewed. S-needs-squash Some (or all) of the commits in the PR should be combined. labels Jan 7, 2016
@nox nox removed the S-tests-failed The changes caused existing tests to fail. label Jan 8, 2016
bors-servo pushed a commit that referenced this pull request Jan 8, 2016
Add 'test-tidy-faster' command to ./mach

For issue #9088, this adds a `--changes` option to `./mach test-tidy`. If this option is set, `tidy.py` will only check files that have been modified since `FETCH_HEAD`.

Mention: @wafflespeanut

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9118)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

⌛ Testing commit a9b8d47 with merge e60f88e...

@bors-servo
Copy link
Contributor

⛄ The build was interrupted to prioritize another pull request.

@bors-servo
Copy link
Contributor

⚡ Previous build results for gonk are reusable. Rebuilding only android, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt...

@bors-servo
Copy link
Contributor

⛄ The build was interrupted to prioritize another pull request.

@bors-servo
Copy link
Contributor

⌛ Testing commit a9b8d47 with merge e0f2d40...

bors-servo pushed a commit that referenced this pull request Jan 8, 2016
Add 'test-tidy-faster' command to ./mach

For issue #9088, this adds a `--changes` option to `./mach test-tidy`. If this option is set, `tidy.py` will only check files that have been modified since `FETCH_HEAD`.

Mention: @wafflespeanut

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9118)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jan 8, 2016
@KiChjang
Copy link
Contributor

KiChjang commented Jan 8, 2016

@bors-servo
Copy link
Contributor

⌛ Testing commit a9b8d47 with merge 7422683...

bors-servo pushed a commit that referenced this pull request Jan 8, 2016
Add 'test-tidy-faster' command to ./mach

For issue #9088, this adds a `--changes` option to `./mach test-tidy`. If this option is set, `tidy.py` will only check files that have been modified since `FETCH_HEAD`.

Mention: @wafflespeanut

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9118)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Jan 8, 2016
@wafflespeanut
Copy link
Contributor

WRATH OF THE BOTS!!!

@bors-servo
Copy link
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jan 8, 2016
@bors-servo
Copy link
Contributor

⚡ Previous build results for android, gonk, linux-dev, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel...

@bors-servo
Copy link
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo bors-servo merged commit a9b8d47 into servo:master Jan 8, 2016
@dsprenkels dsprenkels deleted the test-tidy-faster branch January 8, 2016 20:48
@wafflespeanut
Copy link
Contributor

Whoo! Finally! :)

@dsprenkels
Copy link
Contributor Author

:D

@jdm jdm mentioned this pull request Jan 11, 2016
@SimonSapin SimonSapin removed the S-tests-failed The changes caused existing tests to fail. label Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants