The PR "automation" issue reported in #56392, #56398 and #56402 does not seem an automation issue at all.
In Figures 1 and 2 there are two occurences of the event, from Friday 8th and Sunday 10th respectively; from the plots we can observe:
- once the SUS_PR node is asked the ALIGNED state, the GNAME MAR_TY_ALI of the PR DSP is correctly set to 1; this is the way we (un)park PR and SR, see once again #50911;
- when this is asked automatically, as the DRMI_LOCK node goes into ACQUIRE_DRMI_1F, this actually happens, as the SR is already aligned;
- when this happens manually, because of the need of manual pre-alignment, this does not happen anymore, despite the GNAME still being put to 1, as SR is still parked;
- randomly restarting nodes did not help, keeping by chance SR aligned during the next attempt did;
- a reasonable working hypothesis is that the recently added "+50 urad on TX" to the SR parking position makes so that the SR is always considered unsafe when parked (as the unsafety region should be the range 15-400 urad away from the aligned position, #50911);
- a quick test would be to remove by hand the +50 urad to SR_MAR_TX when SR is still MISALIGNED, during the pre-alignment procedure.