mctools / dgcode

DGCode: the coding framework of the ESS Detector Group. For more information, refer to https://confluence.esss.lu.se/display/DGCODE/CodingFramework
Other
2 stars 1 forks source link

Debug mode with ssh access to the runner #15

Closed MilanKlausz closed 1 year ago

MilanKlausz commented 1 year ago

Add option to use Debugging with tmate GH action, which allows connecting to github runner through ssh or a web sell:

MilanKlausz commented 1 year ago

multiple matrix elements work as expected: separate connection strings, separate terminals, and their termination is independent as well.

Note: cancelling the workflow appears not to be working while a tmate session is running. Connecting and then the exit command terminates it.

MilanKlausz commented 1 year ago

This option is now available through the _runtests.yml workflow in the dgcode_actions repo when manually triggering the workflow run (workflow_dispatch event). The 'Launch manual debugging tmate session on failure' input option has to be selected. As the name suggests, the tmate session is only launched in case of a failure. Note that the 'The Package repository' option can be used to select which repository (validations, public/private projects) should be cloned, so the _runtests.yml wokflow facilitates testing all of them, and there are also input fields to handle the branches ('Framework branch to use' and 'Package repository branch')