jordigilh commented on code in PR #354:
URL: 
https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/354#discussion_r1453631161


##########
.github/workflows/e2e.yml:
##########
@@ -115,3 +82,16 @@ jobs:
       - name: Run tests
         run: |
           make test-e2e
+
+      - name: Export kind logs
+        if: always()
+        run: |
+          mkdir -p /tmp/kind/logs
+          kind export logs --loglevel=debug /tmp/kind/logs
+
+      - name: Upload kind logs
+        if: always()
+        uses: actions/upload-artifact@v3
+        with:
+          name: kind-logs-${{ env.JOB_NAME }}-${{ github.run_id }}
+          path: /tmp/kind/logs

Review Comment:
   Logs are kept in github for a period of time, and according to the doc, by 
default the time is set in the repository settings.
   ```
       # Duration after which artifact will expire in days. 0 means using 
default retention.
       # Minimum 1 day.
       # Maximum 90 days unless changed from the repository settings page.
       # Optional. Defaults to repository settings.
   ```
   
   My intent is to download the logs within the next 2 hours of finishing the 
test. But maybe it would be interesting to extend the duration to 12 hours so 
that we can collect the logs from a nightly run. WDYT?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to