Skip to content

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

Merged
bors-servo merged 7 commits into
servo:masterfrom
mfeckie:feature/manifest-diff-ci-check
Nov 21, 2015
Merged

bors-servo merged 7 commits into
servo:masterfrom
mfeckie:feature/manifest-diff-ci-check

Conversation

@mfeckie

@mfeckie mfeckie commented Nov 19, 2015

Copy link
Copy Markdown
Contributor

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 highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 19, 2015
@highfive

Copy link
Copy Markdown

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
Comment thread etc/ci/manifest_changed.sh Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the double *?

@jdm

jdm commented Nov 19, 2015

Copy link
Copy Markdown
Member

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

@mfeckie

mfeckie commented Nov 19, 2015

Copy link
Copy Markdown
Contributor Author

@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

jdm commented Nov 19, 2015

Copy link
Copy Markdown
Member

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

mfeckie commented Nov 19, 2015

Copy link
Copy Markdown
Contributor Author

@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

jdm commented Nov 20, 2015

Copy link
Copy Markdown
Member

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

@mfeckie

mfeckie commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

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

@jdm

jdm commented Nov 20, 2015

Copy link
Copy Markdown
Member

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

@eefriedman

Copy link
Copy Markdown
Contributor

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

@jgraham

jgraham commented Nov 20, 2015

Copy link
Copy Markdown
Contributor

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

mfeckie commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

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

@mfeckie

mfeckie commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

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

jdm commented Nov 20, 2015

Copy link
Copy Markdown
Member

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

@jdm jdm 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 Nov 20, 2015
@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 Nov 20, 2015
@mfeckie

mfeckie commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

@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

jdm commented Nov 21, 2015

Copy link
Copy Markdown
Member

@jdm

jdm commented Nov 21, 2015

Copy link
Copy Markdown
Member

(Sorry to keep changing the goalposts :)

@mfeckie

mfeckie commented Nov 21, 2015

Copy link
Copy Markdown
Contributor Author

@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

jdm commented Nov 21, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+
Hooray!

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 80721a6 has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 21, 2015
@jdm jdm self-assigned this Nov 21, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 80721a6 with merge 9d2da0a...

bors-servo pushed 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
Copy Markdown
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 Nov 21, 2015
@jdm

jdm commented Nov 21, 2015

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 80721a6 with merge f2fe117...

bors-servo pushed 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 -->
@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 Nov 21, 2015
@bors-servo

Copy link
Copy Markdown
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 80721a6 into servo:master Nov 21, 2015
bors-servo pushed 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

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants