Retire redundant Perl/Python validation #51
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently every NetKAN pull request's validation output says:
... and later:
These messages are the result of running
prove
andckan-validate.py
, which perform assorted checks on the metadata relevant to the pull request.As of KSP-CKAN/CKAN#2788, these tests are done by
netkan.exe
itself. If the generated metadata doesn't obey the schema or has any other validation problem, an error will be printed and the file won't be generated. This means that this Perl/Python validation is now redundant.This pull request removes these validation checks.
Checks not removed:
doesn't match any valid game version
check is retained even though it is also part ofnetkan.exe
now because it functions as a sanity check to make sure that something hasn't gone wrong with that part of the scriptjsonlint
check performs strict syntactic validation of the .netkan file; unlike the schema checks, it looks for things like extra or missing commas, which is useful because .netkan files are edited by humans and therefore subject to such errorsbuild.sh
script still usesckan-validate.py
because that repo does not usenetkan.exe
and so cannot rely on it for validation (yet, maybe in future)