Skip to content

Commit

Permalink
[ci] Open tmate if we rerun with debug logging checked.
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Jan 2, 2024
1 parent fbe246a commit 38e6664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -847,10 +847,10 @@ jobs:
cat obj/CMakeCache.txt
cat obj/CMakeFiles/*.log
- name: Setup tmate session
if: ${{ failure() }}
if: ${{ failure() && runner.debug }}
uses: mxschmitt/action-tmate@v3
# When debugging increase to a suitable value!
timeout-minutes: ${{ github.event.pull_request && 1 || 20 }}
timeout-minutes: 30
- name: Prepare code coverage report
if: ${{ success() && (matrix.coverage == true) }}
run: |
Expand Down
3 changes: 2 additions & 1 deletion docs/userDocs/source/user/DevelopersDocumentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ and sometimes it may not be even feasible to replicate the GitHub runner environ
For cases like these, we can directly ssh into the Github runner and debug the codebase
there itself, thus saving a lot of time in replicating the Github runner environment.

To ssh into the GitHub runner on which tests are failing, increase the value of
To ssh into the GitHub runner on which tests are failing, click on re-run actions
and select the debug logging checkbox. If necessary increase the value of
``timeout-minutes`` key in ``.github/workflows/ci.yml`` to a suitable value for
debugging -- 30 - 60 minutes should generally be enough.

Expand Down

0 comments on commit 38e6664

Please sign in to comment.