Conversation
|
Also, if listed files are fixed, they should be removed from the pending-failures file, otherwise the build will detect that they were expected to fail, but didn't. |
|
Odd that it passed on my repo, but failed here. I'll work on it some more. |
|
Checking the difference between this and a working one is this: I remember seeing this when I got Ruby wrong in the past. The example it is barfing on is this: Don't know why though . |
6cfb3b7 to
40b6617
Compare
|
So, it seems that these errors are real, and the examples were introduced since the base of my PR. I'll add them to the pending list, but this shows why this is useful, to catch such errors before they get merged to main. |
|
By the way, a useful local workflow can be derived from the GitHub Action: Run the following:
Set up Ruby (requires Ruby 3.0 installed locally, typically using either rbenv or rvm):
Then you can iterate on The |
|
I'll leave this as is. The failure is because a test marked pending has been fixed: Removing the appropriate entry from pending-failures.txt would solve this, but a PR is something of a moving target when changes get made underneath. |
That's the HTML content model. The error actually comes from the Gumbo parser. The model for the Table element must not allow text nodes. The W3C HTML validator gives an equivalent error: |
|
You could always use The JSON-LD spec uses a special encoding ( |
|
Not sure why that test passes when it’s expected to fail. It uses an undefined property “monthsOfExperience”. |
|
@RichardWallis what are your plans for this PR? Do you need me to do more? I could fix the example which is causing the (intermittent) failure, but it seemed that it was best to not conflate the two issues. |
|
@gkellogg Sorry life got in the way! My intention was/is to check through all your comments and then plan to merge it in, probably post V12.0 release in case there are any ramifications. I should get a chance in the next few days. I note the build is failing at the moment is that the intermittent failure you refer to? |
|
Yes, and example that should fail, and does when I run it locally, passes on GH Actions, but can't quite see why. As it's expected to fail, it is an error for it to pass (rspec logic). When the updated main branch is merged into the PR, it could be that others will fail, as either new examples are introduced which have errors, or something's been fixed. If you like, I can fix examples in this branch (after 12.0 is released anyway) and get it to pass cleanly so that it won't (shouldn't) start failing things improperly when merged. This could be an opportunity to work on some of those long-standing examples. Another thought would be to exclude those examples from the pending directory, which arguably aren't important to check until they're no longer pending. Otherwise, it comes down to opinionated direction on markup errors and inappropriate term use, which I haven't tried to solve directly, only by adding them to the expected errors. |
|
Okay, should be more repeatable now.
Note that the examples included do seem to include pending examples, which might be a candidate for improvement in the setup scripts. |
|
Tests eg-0132 and 0133 use "May" as the value for It may be that both schema:Date, schema:Time, and schema:DateTime should all reference the ISO date format, and allow any representation defined there. In this case, the existing example is certainly invalid, but not clear what the proper correction is. |
Update CI configuration.
…luded here as pending; all others become failures. Removes SOFT_LINT from CI tests.
Use `.not_to` instead of `pending` to get more useful error output.
Ruby examples now come from LATEST/schemaorg-all-examples.txt. Update pending-examples accordingly.
…EntryNeeded', so the script fails if it doesn't find an example name. This ensure repeable example naming.
Arguably, "--05" is acceptable ISO format, but not accepted by the linter at this time. This reverts commit e9c2548.
64f2e6d to
d2fcdf2
Compare
|
This fixes all the syntax and markup issues in tests, along with some minor semantics improvements. Some of these were hiding semantics issues with inappropriate/wrong properties or types. It leaves 45 tests with semantic issues which require analysis. |
|
Great work. It would probably make sense to merge this in now, which I'll attend to. Then raise a new issue for the outstanding 45 which I will assign to me. Is the list available to attach to the issue? |
1 similar comment
|
Great work. It would probably make sense to merge this in now, which I'll attend to. Then raise a new issue for the outstanding 45 which I will assign to me. Is the list available to attach to the issue? |
|
The list of known failures, which lead to the pending status, is in data/pending-failures.txt, and is effectively just the output summary of the test run, itself. When fixing a test (or adding a new failure), just modify that file. Only the bit after the " - " is significant, and lines starting with '#' are ignored. We will probably need to discuss how to interpret the linter output for different classes of failures. |
|
Remaining list of known failures: |
|
Are we good for merging here? |
|
Yes - go for it. I will then raise an umbrella issue to address examples that fail as listed in the data/pending-failures.txt file. |
|
It's gotten down to a pretty management set, and some of them arguably could be improvements to the SDL. |
Ping! I’d hate to miss another release cycle. |
|
This pull request is being tagged as Stale due to inactivity. |
|
care to send a PR for releases.html too? |
Is there an issue for this? I could take a look. |
|
Created pull request #2917 |
Fixes #2842.
Note, creates a new "pending-failures.txt" file that lists files known to fail. Any failures not in this file will cause the build to fail.