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

Conversation

@dsprenkels
Copy link
Contributor

dsprenkels commented Jan 1, 2016

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

@wafflespeanut wafflespeanut self-assigned this Jan 2, 2016
@nox
Copy link
Member

nox commented Jan 2, 2016

I never have a FETCH_HEAD in my repository.

@dsprenkels
Copy link
Contributor Author

dsprenkels commented Jan 2, 2016

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

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

to find the last merge?

@wafflespeanut
Copy link
Member

wafflespeanut commented Jan 4, 2016

-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

dsprenkels commented Jan 4, 2016

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
Member

wafflespeanut commented Jan 4, 2016

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

@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

dsprenkels commented Jan 4, 2016

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
Copy link
Member

wafflespeanut commented Jan 6, 2016

-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

@wafflespeanut
Copy link
Member

wafflespeanut commented Jan 7, 2016

-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
@wafflespeanut
Copy link
Member

wafflespeanut commented Jan 7, 2016

@bors-servo r+

Thanks! :)

@bors-servo
Copy link
Contributor

bors-servo commented Jan 7, 2016

📌 Commit a9b8d47 has been approved by Wafflespeanut

@nox nox removed the S-tests-failed label Jan 8, 2016
bors-servo added 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

bors-servo commented Jan 8, 2016

Testing commit a9b8d47 with merge e60f88e...

@bors-servo
Copy link
Contributor

bors-servo commented Jan 8, 2016

The build was interrupted to prioritize another pull request.

@bors-servo
Copy link
Contributor

bors-servo commented Jan 8, 2016

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

bors-servo commented Jan 8, 2016

The build was interrupted to prioritize another pull request.

@bors-servo
Copy link
Contributor

bors-servo commented Jan 8, 2016

Testing commit a9b8d47 with merge e0f2d40...

bors-servo added 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

bors-servo commented Jan 8, 2016

💔 Test failed - linux-rel

@KiChjang
Copy link
Member

KiChjang commented Jan 8, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jan 8, 2016

Testing commit a9b8d47 with merge 7422683...

bors-servo added 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 -->
@wafflespeanut
Copy link
Member

wafflespeanut commented Jan 8, 2016

WRATH OF THE BOTS!!!

@bors-servo
Copy link
Contributor

bors-servo commented Jan 8, 2016

💔 Test failed - linux-rel

@KiChjang
Copy link
Member

KiChjang commented Jan 8, 2016

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Jan 8, 2016

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

bors-servo commented Jan 8, 2016

@bors-servo bors-servo merged commit a9b8d47 into servo:master Jan 8, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@dsprenkels dsprenkels deleted the dsprenkels:test-tidy-faster branch Jan 8, 2016
@wafflespeanut
Copy link
Member

wafflespeanut commented Jan 9, 2016

Whoo! Finally! :)

@dsprenkels
Copy link
Contributor Author

dsprenkels commented Jan 9, 2016

:D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

8 participants
You can’t perform that action at this time.