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

Check if MANIFEST.json changes as per #8587 #8601

Merged
merged 7 commits into from Nov 21, 2015

Conversation

@mfeckie
Copy link
Contributor

mfeckie commented Nov 19, 2015

Adds a script which checks if either of the MANIFEST.json files change in test/wpt in response to #8587

  • Addresses currently incorrect MANIFEST.json
  • Adds checking script

PR for saltfs to add to CI checks to follow (servo/saltfs#163)

https://reviewable.io/reviews/servo/servo/8601

Review on Reviewable

@highfive
Copy link

highfive commented Nov 19, 2015

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @Manishearth (or someone else) soon.

@mfeckie mfeckie changed the title [WIP] Check if MANIFEST.json changes as per #8587 Check if MANIFEST.json changes as per #8587 Nov 19, 2015
@@ -0,0 +1,4 @@
#!/bin/bash
diff=$(git diff -- tests/wpt/**/MANIFEST.json)

This comment has been minimized.

Copy link
@Manishearth

Manishearth Nov 19, 2015

Member

why the double *?

@jdm
Copy link
Member

jdm commented Nov 19, 2015

This doesn't actually run the manifest update command, does it?

@mfeckie
Copy link
Contributor Author

mfeckie commented Nov 19, 2015

@jdm it doesn't run update. I ran the manifest update when running the tests initially to resolve the differences you pointed to the likely came from hand editing of the MANIFEST files. I committed the changes to ensure baseline is correct. Does that make sense? If it's an incorrect approach I can back out that commit.

@jdm
Copy link
Member

jdm commented Nov 19, 2015

The changes here are correct, but the new script will never report any violations unless we explicitly update the manifest each time it's run. Unlike the check for Cargo.lock files, we don't automatically update the manifest during the build.

@mfeckie
Copy link
Contributor Author

mfeckie commented Nov 19, 2015

@jdm OK, so would auto running the update be an additional step for this PR? If so, can you point me to the place to start looking 😄

@jdm
Copy link
Member

jdm commented Nov 20, 2015

It's a step we need to perform in the script right before checking the result of git diff.

@mfeckie
Copy link
Contributor Author

mfeckie commented Nov 20, 2015

So, run all the tests? Or is there method to just update the manifest?

@jdm
Copy link
Member

jdm commented Nov 20, 2015

Oh, hrm. That's a good point. @jgraham is there a way to only trigger the manifest update in isolation?

@eefriedman
Copy link
Contributor

eefriedman commented Nov 20, 2015

./mach test-wpt --manifest-update SKIP_TESTS?

@jgraham
Copy link
Contributor

jgraham commented Nov 20, 2015

Something like ./manifest -r -p ../metadata/MANIFEST.json in tests/wpt/web-platform-tests will regenerate the manifest. You would also need to do the same for the mozilla tests passing in --url-base=/_mozilla/ and the relevant paths under tests/wpt/mozilla, and similarly for the CSS tests.

@mfeckie
Copy link
Contributor Author

mfeckie commented Nov 20, 2015

@jgraham Is there any reason not to use the suggestion of ./mach test-wpt --manifest-update SKIP_TESTS by @eefriedman ?

@mfeckie
Copy link
Contributor Author

mfeckie commented Nov 20, 2015

etc/ci/manifest_changed.sh, line 2 [r3] (raw file):
Will fix, it was because I was using ZSH.


Comments from the review on Reviewable.io

@jdm
Copy link
Member

jdm commented Nov 20, 2015

Let's run the same for ./mach test-css too, which is the other MANIFEST.json under tests/wpt/metadata-css.

@mfeckie
Copy link
Contributor Author

mfeckie commented Nov 20, 2015

@jdm Added. Running the two commands isn't quick, just want to flag in case it's an issue in terms of test run time.

@jdm
Copy link
Member

jdm commented Nov 21, 2015

Oh, one last request! We can add the new script to http://mxr.mozilla.org/servo/source/.travis.yml#13 as well for maximum coverage.

@jdm
Copy link
Member

jdm commented Nov 21, 2015

(Sorry to keep changing the goalposts :)

@mfeckie
Copy link
Contributor Author

mfeckie commented Nov 21, 2015

@jdm No worries! As someone coming into the project with limited understanding of how all the parts go together, it's actually been pretty useful! Extend away 😄

@jdm
Copy link
Member

jdm commented Nov 21, 2015

@bors-servo: r+
Hooray!

@bors-servo
Copy link
Contributor

bors-servo commented Nov 21, 2015

📌 Commit 80721a6 has been approved by jdm

@jdm jdm self-assigned this Nov 21, 2015
@bors-servo
Copy link
Contributor

bors-servo commented Nov 21, 2015

Testing commit 80721a6 with merge 9d2da0a...

bors-servo added a commit that referenced this pull request Nov 21, 2015
Check if MANIFEST.json changes as per #8587

Adds a script which checks if either of the MANIFEST.json files change in `test/wpt` in response to #8587

- Addresses currently incorrect MANIFEST.json
- Adds checking script

PR for saltfs to add to CI checks to follow (servo/saltfs#163)

https://reviewable.io/reviews/servo/servo/8601

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

bors-servo commented Nov 21, 2015

💔 Test failed - linux-rel

@jdm
Copy link
Member

jdm commented Nov 21, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Nov 21, 2015

Testing commit 80721a6 with merge f2fe117...

bors-servo added a commit that referenced this pull request Nov 21, 2015
Check if MANIFEST.json changes as per #8587

Adds a script which checks if either of the MANIFEST.json files change in `test/wpt` in response to #8587

- Addresses currently incorrect MANIFEST.json
- Adds checking script

PR for saltfs to add to CI checks to follow (servo/saltfs#163)

https://reviewable.io/reviews/servo/servo/8601

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

bors-servo commented Nov 21, 2015

@bors-servo bors-servo merged commit 80721a6 into servo:master Nov 21, 2015
2 of 3 checks passed
2 of 3 checks passed
code-review/reviewable Review in progress: 0 of 4 files reviewed, all discussions resolved
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
bors-servo added a commit to servo/saltfs that referenced this pull request Nov 21, 2015
Check if manifest file(s) changed

Should be merged with servo/servo#8601

Basically uses the script added in that PR to ensure that MANIFEST.json is not changed

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/163)
<!-- Reviewable:end -->
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

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