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

Testing 1.2.0 on ci #196

Merged
merged 3 commits into from Jun 2, 2021
Merged

Testing 1.2.0 on ci #196

merged 3 commits into from Jun 2, 2021

Conversation

jspaaks
Copy link
Member

@jspaaks jspaaks commented Jun 1, 2021

Related issues

Refs: #none

(For autoclosure of issues when PR is merged use Fixes #<issue-number> syntax)

Describe the changes made in this pull request

This PR

  • fixes some merge errors in the schema
  • changed the test collection setup to limit itself to tests/1.0.3 and tests/1.1.0
  • adds tests/1.2.0/poc with a proof of concept data file
  • adds testing of the poc data file as part of the CI

Instructions to review the pull request

GitHubh Action should run tests for 1.0.3 and 1.1.0 data, then run the poc schema validation in a separate step

If I add some random keyname as part of an author, the test breaks (https://github.com/citation-file-format/citation-file-format/pull/196/checks?check_run_id=2720914662), albeit in an unexpected way (it complains about date-start for example). Not sure if that's something we should address.

@jspaaks jspaaks changed the base branch from main to 1.2.0 June 1, 2021 17:03
@jspaaks jspaaks marked this pull request as ready for review June 1, 2021 17:17
@sdruskat
Copy link
Member

sdruskat commented Jun 2, 2021

If I add some random keyname as part of an author, the test breaks (https://github.com/citation-file-format/citation-file-format/pull/196/checks?check_run_id=2720914662), albeit in an unexpected way (it complains about date-start for example). Not sure if that's something we should address.

Interesting. I've had this before, if I remember correctly in cases where we have different combinations of required/non-required keys or checking against different patterns. I think in these cases jsonschema tries to (heuristically?) guess the target object type, but not reliably so.

In the case you link to I think it breaks due to the injected bad key (which is correct), but also tries to match against person (instead of entity), and so lists all of the keys it wouldn't expect for person. Could be a bug in jsonschema.

EDIT: Reported as python-jsonschema/jsonschema#812.

@jspaaks jspaaks mentioned this pull request Jun 2, 2021
Copy link
Member

@sdruskat sdruskat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good to merge :)

@jspaaks
Copy link
Member Author

jspaaks commented Jun 2, 2021

Awesomesauce 🍪 🍰

@jspaaks jspaaks merged commit b15a0cf into 1.2.0 Jun 2, 2021
@jspaaks jspaaks deleted the testing-1.2.0-on-ci branch June 2, 2021 20:31
@sdruskat sdruskat mentioned this pull request Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants