From d3fa9ab178d6f1f381d9327204aada1c566d2309 Mon Sep 17 00:00:00 2001 From: zchn Date: Tue, 21 Jan 2025 05:51:33 +0800 Subject: [PATCH] openhands-resolver.yml: enable DEBUG=1 and collect logs as GitHub artifacts --- .github/workflows/openhands-resolver.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index 230ccb8c76a3..4cf047cfba23 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -238,7 +238,7 @@ jobs: LLM_API_VERSION: ${{ inputs.LLM_API_VERSION }} PYTHONPATH: "" run: | - cd /tmp && python -m openhands.resolver.resolve_issue \ + cd /tmp && env DEBUG=1 python -m openhands.resolver.resolve_issue \ --repo ${{ github.repository }} \ --issue-number ${{ env.ISSUE_NUMBER }} \ --issue-type ${{ env.ISSUE_TYPE }} \ @@ -263,6 +263,14 @@ jobs: path: /tmp/output/output.jsonl retention-days: 30 # Keep the artifact for 30 days + - name: Upload logs as artifact + uses: actions/upload-artifact@v4 + if: always() # Upload even if the previous steps fail + with: + name: resolver-logs + path: /opt/hostedtoolcache/Python/*/*/lib/*/site-packages/logs/llm/ + retention-days: 30 # Keep the artifact for 30 days + - name: Create draft PR or push branch if: always() # Create PR or branch even if the previous steps fail env: