-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Validation tests for examples and test fixtures #25149
Comments
We currently run a whole host of validator checks via @honeybadgerdontcare @Gregable Thoughts? /cc @ampproject/wg-caching |
The tests we have for the validator are explicitly to test validation scenarios (both PASS and FAIL). It sounds like the request here is to make sure that example files can only be valid AMP (PASS). Is that a correct reading? If so, we could have a test that won't allow merging unless all files in certain directories pass validation. However, would this impede work that is in progress but not yet valid? Are there other directories this could apply to other than /examples/.html and /test/fixtures/e2e/.html? |
We should do it, but allow for allow-listing expected failures. |
@rsimha I feel this is an infra feature request, not validation. Feel free to re-label if you disagree. |
Yes the intent was that people making examples should make valid ones. |
The primary feature requested by this issue has been implemented. Existing invalid fixtures can be fixed piecemeal by following the instructions at #34000 (comment). |
Partial for #25149. 1. Fixes a set of documents. 2. Removes unused example files that do not validate. 3. Categorizes some ignore rules that cannot be removed. 4. Adds a general rule for `bento/` directories, for documents which are not meant to be valid.
amphtml files in /examples and /test/fixtures/e2e should be validated.
Errors in test pages can cause test flakes (see #25145). Having these files validated (if only as part of the local changes check) would help catch these hard to debug flakes.
The text was updated successfully, but these errors were encountered: