-
Notifications
You must be signed in to change notification settings - Fork 162
Remove RHEL-8 workarounds from old jsonschema #4517
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
base: main
Are you sure you want to change the base?
Conversation
|
/packit build |
| # NOTE: Because of old jsonschema package on RHEL-8, we cannot use | ||
| # `url: true` and inherit `url` attributes from parent schema. It | ||
| # seems like we have to repeat properties schemas here as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had my suspicion about this comment, and I tried it with the following example:
/tests:
/valid:
test: something
require:
- url: https://github.com/beakerlib/beakerlib
type: library
name: /example
/invalid:
test: something
require:
- url: 12345
type: library
name: { }With the changes here, the invalid one always passes the schema, while previously it failed correctly. Best option here is to just delete these comments and revert the rest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the options such as url: true are not valid, we still need to redefine them, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the previous way of defining them was correct. Maybe just needing more $ref indirections.
| # seems like we have to repeat properties schemas here as well. | ||
| properties: | ||
| url: | ||
| # https://github.com/teemtee/tmt/issues/1258 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure this comment is preserved, it is still very much relevant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
Signed-off-by: mcasquer <mcasquer@redhat.com>
d680838 to
f5ad1fa
Compare
Signed-off-by: mcasquer <mcasquer@redhat.com>
08580b7 to
62dc046
Compare
Based on Lines 39 to 44 in 746105f
We still need to keep it, but the try ... except in there can be simplified. What I don't know if it was invesitgated, what happens if we also provide a pytest.fixture with the same name tmp_path or have any way to keep the tmp_path name but edit the output type.
But the minimum blast radius would be to just simplify the |
If you keep |
As tmt running in RHEL 8 is no longer supported, remove the schema workarounds referencing RHEL-8
Fixes #3705