Skip to content

Commit

Permalink
Enable debug logging into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Dec 12, 2024
1 parent 83a5d2b commit e12a10c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/actions/debug-wait/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: "Debug wait"
description: "If debugging is enabled, wait"

runs:
using: composite
steps:
- name: "Debug: SSH to runner"
uses: scality/actions/[email protected]
continue-on-error: true
with:
tmate-server-host: ${{ env.TMATE_SERVER_HOST }}
tmate-server-port: ${{ env.TMATE_SERVER_PORT }}
tmate-server-rsa-fingerprint: ${{ env.TMATE_SERVER_RSA_FINGERPRINT }}
tmate-server-ed25519-fingerprint: ${{ env.TMATE_SERVER_ED25519_FINGERPRINT }}
11 changes: 11 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: tests

env:
GINKGO_VERSION: v1.15.2
# DEBUG WAIT
TMATE_SERVER_HOST: ${{ secrets.TMATE_SERVER_HOST }}
TMATE_SERVER_PORT: ${{ secrets.TMATE_SERVER_PORT }}
TMATE_SERVER_RSA_FINGERPRINT: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }}
TMATE_SERVER_ED25519_FINGERPRINT: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }}

on:
push:
Expand Down Expand Up @@ -192,3 +197,9 @@ jobs:
# will crash if they end up in memory all at the same time (circuit breaking
# ineffective) while waiting to be committed to the kafka topic.
NODE_OPTIONS: '--max-old-space-size=150'

- name: Debug wait
uses: ./.github/actions/debug-wait
timeout-minutes: 60
if: failure() && runner.debug == '1'

0 comments on commit e12a10c

Please sign in to comment.