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

images not being copied correctly for background reftests in css/vendor-imports/mozilla/mozilla-central-reftests/background/ #9912

Closed
dbaron opened this issue Mar 7, 2018 · 10 comments

Comments

@dbaron
Copy link
Member

dbaron commented Mar 7, 2018

Gerard Talbot reported to www-style the following problems:

Bad linkage of border-image.png

http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/border-image-repeat-space-1.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/border-image-repeat-space-1-ref.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/border-image-repeat-space-2.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/border-image-repeat-space-2-ref.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/border-image-repeat-space-3.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/border-image-repeat-space-3-ref.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/border-image-repeat-space-4.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/border-image-repeat-space-4-ref-1.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/border-image-repeat-space-4-ref-2.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/border-image-repeat-space-5.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/border-image-repeat-space-5-ref-1.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/border-image-repeat-space-5-ref-2.htm

[...]

Bad linkage of 2 reticule images

http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/border-image-repeat-space-6-ref.htm
http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/border-image-repeat-space-7-ref.htm

I think these are some sort of build problem. The images are
present in the repository in
css/vendor-imports/mozilla/mozilla-central-reftests/background/
right next to the tests; they're just not in the built test suite.
I'm not sure what's supposed to cause them to appear in the built
test suite.

@dbaron
Copy link
Member Author

dbaron commented Mar 7, 2018

Would moving them to a support/ subdirectory fix this?

@dbaron
Copy link
Member Author

dbaron commented Mar 8, 2018

Also, whatever was wrong here, it seems like a lint should have caught it.

@gsnedders
Copy link
Member

https://github.com/w3c/web-platform-tests/blob/master/lint.whitelist#L387 seems like the lint did catch it, but was in the long tail of things already broken when we merged csswg-test into web-platform-tests.

@dbaron
Copy link
Member Author

dbaron commented Mar 8, 2018

So moving them to a support/ subdirectory would fix it?

@dbaron
Copy link
Member Author

dbaron commented Mar 8, 2018

(I'll fix that in https://bugzilla.mozilla.org/show_bug.cgi?id=1444136 and then merge it over to fix this.)

@gsnedders
Copy link
Member

When you merge it over, please remove the lines in lint.whitelist for them.

@TalbotG
Copy link
Contributor

TalbotG commented Mar 13, 2018

Where should images go? Into the /support subdirectory? Please answer.

@TalbotG
Copy link
Contributor

TalbotG commented Mar 13, 2018

Is the lint supposed to detect and report broken links? Please answer.

@dbaron
Copy link
Member Author

dbaron commented Mar 13, 2018

I don't know who you're demanding answer your questions, but what I know is this:

Moving the images into a support/ subdirectory did fix the problem here, so it seems that's the answer. The lint did detect (see above) that there were images not in a support directory; I don't know of a lint that would have detected the broken links since, in the web-platform-tests repository, the links weren't broken. They were only broken post-build in the CSSWG system.

@TalbotG
Copy link
Contributor

TalbotG commented Mar 14, 2018

Moving the images into a support/ subdirectory did fix the problem here,
so it seems that's the answer.

David, thank you for your answer and time.
I have asked in Issue 10016 that such guideline or requirement be stated in
http://web-platform-tests.org/writing-tests/general-guidelines.html#support-files

I originally thought that test requirements applying to web-platform-tests repository were equally good, reliable and sufficient for the building of CSS test suite but they are not. A correct linkage in tests in web-platform-tests repository is not necessarly good or without problems when it will be handled by the build system. I think this is inadequate otherwise imbalanced, error-prone.

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

No branches or pull requests

3 participants