Skip to content

Commit ff4a8bc

Browse files
committed
chore: Enable debug logging for e2e tests
Enabled debug logging for the Pipelines as Code controller, webhook, and watcher components during end-to-end tests. This change was made to facilitate debugging by ensuring more verbose logs are available when tests fail, making it easier to identify the root cause of issues. The workflow was updated to patch the logging configmap and restart the affected deployments, with checks to ensure they are ready before proceeding. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent cb433ae commit ff4a8bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/e2e.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,16 @@ jobs:
340340
cd startpaac
341341
./startpaac --ci -a
342342
343+
- name: Enable debug logging for e2e
344+
run: |
345+
set -euo pipefail
346+
kubectl -n pipelines-as-code patch configmap pac-config-logging --type merge -p '{"data":{"loglevel.pipelinesascode":"debug","loglevel.pac-watcher":"debug","loglevel.pipelines-as-code-webhook":"debug"}}'
347+
kubectl -n pipelines-as-code rollout restart deployment/pipelines-as-code-controller deployment/pipelines-as-code-webhook deployment/pipelines-as-code-watcher
348+
for name in controller webhook watcher; do
349+
echo "=== Waiting for $name to be ready ==="
350+
kubectl -n pipelines-as-code rollout status deployment/pipelines-as-code-$name --timeout=120s
351+
done
352+
343353
- name: Install minica CA certificate to system trust store
344354
run: |
345355
set -x

0 commit comments

Comments
 (0)