-
Notifications
You must be signed in to change notification settings - Fork 122
Add sanity-checks for keys to "kdb spec-mount" command #4058
Add sanity-checks for keys to "kdb spec-mount" command #4058
Conversation
@markus2330: I've implemented several sanity checks in the spec-mounter. I think this is a good solution for #3987 and #3983: When someone creates a specification file and then executes kdb spec-mount ... to test/use it, they will receive errors if one of the sanity checks fails! I think I can say from experience that these checks will help a lot, especially if someone is just getting started with Elektra/specification files. They cover the mistakes I made while writing the specification for redshift. |
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.
Thank you very much for this improvement! Fixes for problems you actually ran into are very valuable. Nevertheless we should leave the issues open (or create new ones) as it would be better if such inconsistencies cannot happen at all (better design of the specification).
Okay, I've edited the description of this PR so it won't auto close them! |
@markus2330: Currently, a test is failing in this PR, because I have not included "int" as an allowed value for the "type" metakey, but the following test uses a specification file with "type=int". libelektra/tests/shell/gen/highlevel/nodefault.data.ini Lines 1 to 5 in 5702ce0
Is "int" allowed?
Lines 356 to 357 in 90fb5be
Lines 77 to 80 in 90fb5be
Lines 1191 to 1195 in 90fb5be
|
@markus2330: Another check is also failing, namely the "Check" check:
|
No, this is probably some relic from before we started to use the CORBA type system. See doc/METADATA.ini for allowed types.
Thank you for pointing it out, these places need to be fixed!
@robaerd pushed a new version which contains a commit that moves publications to a subfolder with that name. The links need to be corrected. I asked him to do that but it seems like he did not have time for this yet.
If some server is down (not Jenkins) there is nothing we can do about it, so we cannot let ourselves get blocked by this. The goal is to have as much functionality as possible in Jenkins. So we can merge your PRs if only non-Jenkins jobs fail. |
Thanks for your comment! I've fixed the usage that made the test fail and created #4060 for a more detailed inspection of this. I've also marked it as "floss2021W", seems like a good issue to start! I'll wait for the results of the checks. |
@markus2330: This is now ready to merge. The 4 unsuccessful checks are caused by:
|
Thank you very much! 💖 |
Improves problems described in #3983 and #3987.
(This PR should not close these issues).
I've implemented several sanity checks in the spec-mounter.
Basics
These points need to be fulfilled for every PR:
(added as entry in
doc/news/_preparation_next_release.md
whichcontains
_(my name)_
)Please always add something to the release notes.
(first line should have
module: short statement
syntax)close #X
, are in the commit messages.doc/news/_preparation_next_release.md
scripts/dev/reformat-all
If you have any troubles fulfilling these criteria, please write
about the trouble as comment in the PR. We will help you.
But we cannot accept PRs that do not fulfill the basics.
Checklist
Check relevant points but please do not remove entries.
For docu fixes, spell checking, and similar none of these points below
need to be checked.
(not in the PR description)
Review
Reviewers will usually check the following:
Labels
If you are already Elektra developer:
say that everything is ready to be merged.