ci: don't check invalid examples #90
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
inm7/inm7-concepts!90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "make-invalid"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
there are no configurations for invalid examples and this - so far - only causes clutter. Can be easily commented back in when the necessary configurations are in place.
Thanks for tackling this, I agree the invalidation-related errors cause clutter.
How about a more surgical intervention? I need to check on more examples, but I believe this should work:
The reason we see errors with the current makefile is that when there are no
*.invalid.cfg.yamlfiles, we still make it into the for loop, and calllinkml-validatewith the glob expression verbatim, which produces errors that we see: "Invalid value for '--config': File 'src/flat-data/unreleased/validation/*.invalid.cfg.yaml' does not exist."Brief search suggests that wildcard would avoid that behavior.
I am also not sure about the&& exit 5 || truepart - I must think about it.TIL! Thanks for finding this. I tried it locally, and I agree it seems to work. I don't cling too tightly on the commit I made, but I made a companion PR in datalad-concepts which already got merged. If we use your method here, we should also match this in datalad-concepts.
Ah, sorry for the commit. I realized too late you already opened #91.
I don't cling to any particular commit either, but if we use the wildcard function then I would do it for both
*validand*invalid.And I am not trying to compete or anything, it's just that I was also getting annoyed by the errors, so when I saw this PR it motivated me to look closer for a more specific solution. I was also surprised that
@forwithe the glob pattern behaves the way it does, and I think wildcard function is the more "do what we mean" approach.I keep a closer eye on the Psychoinformatics hub than on GitHub at the moment, so I didn't realize until now that there is a companion PR in the GH datalad-concepts repo (which probably would be the more authoritative place, right?).
As a side note, probably out of scope here: it is weird that CI here failed in 17 min 34 s while the CI in functionally equivalent #91 succeeded in 2 min 14 s. Could it be possible that we are running into time limits or rate limiting? The CI output contains "Switch to local imports" and we've seen it rewrite some import statements, but probably we are still making external requests to original schemas - in GitHub?
I don't know. Out of curiosity, I restarted the run to see if this was maybe just a one time something. Afterwards, I'll close this PR as superseeded by #91. :) Edit: The rerun was 2mins15s. To be fair, that doesn't tell us anything. Let's keep an eye on the runs if we spot more long CIs.
Pull request closed