Open vlimant opened 6 years ago
Thanks for providing these details, Jean-Roch.
I think any mention of force-completing does not belong to this ticket and I'd like to decouple them.
In this issue, we should start with work that is already in completed
status, and then proceed with all those checks that you described above.
Do we provide the workflow summary / error report for every single workflow? Or only in cases the workflow didn't reach the target level of completion (let's say 90 or 95% for MC, etc).?
From your list, I'd say what we'd have to have in the close-out procedure is:
I'm going to create another placeholder for auto force-completion with some of your bullets.
Thank you very much Jean-Roch, Alan for creating this. I think it is good idea to keep separate tickets for (auto) force-complete and close out ticket. I will create one issue for moving from closed-out to announced as well. I know Jean-Roch is busy to write all the logic. It would be helpful brief explanation about conditions which make the each state transition and point the code as this ticket has. Alan and I can ask questions if something is not clear, hope we won't bother Jean-Roch too much with this. (But that is the penalty for being a only expert. 😄 FYI. Issue for announced transition #8921
@amaltaro regarding force-complete : everything here is related to something in "completed". The force-completion would happen to on-going acdc, should the requirement be met. It is part of the current completed->close-out transition for the original workflow. Fine with me if you want to put it elsewhere though.
many of the details above will have to come through reading the code to get the exact way. any description with words will likely fall short.
you might find reading https://cms-unified.web.cern.ch/cms-unified/logs/checkor/last.log useful
here a GH issue to describe the close-out procedure, most of which is legacy and already known to everyone. Code is https://github.com/CMSCompOps/WmAgentScripts/blob/master/Unified/checkor.py
Here below the items in order of reading the code, picking up on all the things in "completed" reqmgr-status (with some option flags selecting some part of it)
per workflow, the following things are don