Improve project validation and add project cross checks#484
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #484 +/- ##
===========================================
+ Coverage 75.92% 76.13% +0.20%
===========================================
Files 52 52
Lines 8162 8271 +109
Branches 1345 1373 +28
===========================================
+ Hits 6197 6297 +100
- Misses 1525 1528 +3
- Partials 440 446 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
davidwaroquiers
left a comment
There was a problem hiding this comment.
All good to me, you can merge as is or change the small thing about 1 project / No project.
Do you think the check-conflicts should be added to the documentation maybe somewhere ? (one question also, maybe when doing jf project check, it should check conflicts with other projects no ?)
|
|
||
| if len(cm.projects) < 2: | ||
| exit_with_warning_msg( | ||
| f"Only {len(cm.projects)} project(s) parsed in {cm.projects_folder}; " |
There was a problem hiding this comment.
This would either be "Only 1 project parsed" or "No project parsed". Not super important but maybe change that ?
There was a problem hiding this comment.
good point. Will do.
I see the point here. I will add it to the docs. I am not fully convinced of adding this to add it to the jf project check. Maybe a warning that one might consider running jf project check-conflicts to check potential conflicts with other projects? |
For the addition to the project check, I don't know either, it's just that it probably does not take much time to do. Maybe it's done when you do a full project check (using jf project check --full) ? Why are you not convinced ? (I can't say exactly myself why I'm not :D) |
|
mainly because it is not obvious that one wants that check to be done and may be somehow confusing. The description says
not that it will make a validation. That is in principle more for |
Yes true, that might be misleading or we should change the description at least. I let you decide what you think is best. Maybe I would change the description to something like : "Check that the connection to the different elements of the project are working and checks potential conflicts with other projects". But if you prefer to keep it just as such it's fine too. It's just that in that case we are not adding an additional cli just for that (but again I let you decide) |
Following #483, this PR adds a check to prevent having the same
jobs_handle_dirfor two batch workers on the same host.As a general improvement, also added a
jf project check-conflictsthat will verify this and a few other incompatibilities among different projects. This is not executed when the projects are read, so it needs to be called explicitly. I don't think it would be good to enfornce it and having the need to perform all the checks every time.Also, basically unrelated, I have realized that the case
OnMissing.PASSfrom jobflow was not handled at all in jobflow-remote. This should fix it.