-
Notifications
You must be signed in to change notification settings - Fork 120
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
Update regression test input YAML to current YAML version #2011
Update regression test input YAML to current YAML version #2011
Conversation
Loading and saving all the files has removed some of the comments that were added to describe why certain values were chosen:
Do you think we should try to retain those? |
Oops! Yes. I'll sort that now. Well spotted! |
55bab67
to
72bc610
Compare
I've updated the middle "Update YAML files using current YAML version" commit to include manually re-adding the comments and updated the commit message to explain how I did it. I've then force-pushed. |
Looks good to me, although presumably you'll need to regenerate all the checksum data too? |
Yes, I'll update checksums now and get the PR merged. Thanks. |
72bc610
to
0d1d0ca
Compare
I've just added a commit which updates the checksums and force-pushed in preparation for merging. |
The version of YAML has changed since these files were generated and the newer version seems to generate slightly different YAML output e.g. it uses single- quotes instead of double-quotes. Because of this, when we make a change and regenerate these files, it's difficult to see the woods for the trees. By loading and saving all the YAML files in this commit, I hope that it will be easier to see what's changed in later commits. Some of the `*-questions-and-responses.yml` files included comments which would've been lost in this automated process. So I ran the following command to identify them: grep -R "#" test/data/* I then ran the following command to do the automatic update: rails r script/update-yaml.rb And finally I manually edited the files to re-add the comments identified above. I re-ran the `grep` command to check I hadn't missed any comments.
This reverts commit edcd63e. Now that I've used this script it is surplus to requirements.
0d1d0ca
to
c7f1d7c
Compare
I've just rebased this against master and force-pushed in preparation for merging. |
…aml-to-current-yaml-version Update regression test input YAML to current YAML version
The version of YAML has changed since these files were generated and the
newer version seems to generate slightly different YAML output e.g. it uses
single-quotes instead of double-quotes.
Because of this, when we make a change and regenerate these files, it's
difficult to see the woods for the trees. By loading and saving all the YAML
files in this PR, I hope that it will be easier to see what's changed in
later commits.