-
Notifications
You must be signed in to change notification settings - Fork 327
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
Add libyaml-parser-error.t to test invalid YAML #81
Conversation
Add script to update test lists
Hi @perlpunk, Could you comment about what problem you are solving here? ie What's the current state of things, what are the problems, and what features does your solution provide. I took a look at the code, but waas not able to get the problem/solution clear in my head. Thanks! |
Currently, |
the |
Hmm. The problem here is that keeping the list in the master branch of yaml/libyaml means that we are going to have new commits for every change to the test-suite. I would like to see only solid change commits go into master. I would propose that we keep the list on a separate branch. The relatively new If you are concerned about the master and test-suite-data branches being in sync, Id add a file to the test-suite-data branch that contains 2 sha1s:
Then the test suite can easily report when things are not up to date. If we do this right, then we only add one commit to master to set this up. |
I don't understand the problem. The update script has to be called manually. |
@perlpunk This list was added by me, but I am realizing that it was not a good idea to add this to master, at least during a time when I expect a massive influx to the test suite.
So far we have only update the list twice. I think it would be a good idea to move the list to a branch. This was my fault for setting it up badly, and I can make the correction. @perlpunk if you want to do it, I could help you spec it out more, if needed. Cheers, and sorry for the confusion. |
@perlpunk while I'm thinking of this, probably the best thing to do here is move all the logic that deals with testing the test-suite to a branch called
The branch could assume that it would be checked out under the test/suite subdir, when referencing the libyaml code in the main directory. |
I won't have time for this in the next weeks. |
@perlpunk ok, I'll give it a shot. I can use this PR and just change it over to keep the content on a new branch. Thanks! |
After taking a look at the code, it's almost set up perfectly already. All that needs to happen is to move the @perlpunk I'll make these changes on a branch and then let you decide if you want to add them to this PR (instead of making a new PR that includes this one). |
@perlpunk https://github.com/yaml/libyaml/tree/issue-81 adds one commit to master, removing the Let me know if this works for you. After this you can update the |
On a fresh clone I get this:
|
just wanted to note that it was not my plan to "flood" libyaml with commits. |
@perlpunk I wasn't being accusatory. It's inevitable that for every set of changes we make to the test suite, we'd want to update libyaml. Now we can do that without having a steady (whatever rate that implies) of commits like 61dd999#diff-ff771719d73db4188f03896a66c1f045 |
Some notes...
|
Alternative:
|
I simply wanted to point out that it wasn't my plan to commit every yaml-test-suite change in libyaml (master). |
As an example, take the invalid escaping of a single quote So I think, we should also go back to a black list instead of a white list in the future. When pinning yaml-test-suite releases, this shouldn't be a problem anymore. Edit: confused single and double quotes |
This is resolved by #82. The code for this PR is now in the
|
Add script to update test lists