Skip to content

Commit

Permalink
openhands-resolver.yml: enable DEBUG=1 and collect logs as GitHub art…
Browse files Browse the repository at this point in the history
…ifacts
  • Loading branch information
zchn authored and Kevin Chen committed Feb 6, 2025
1 parent 0485c63 commit d3fa9ab
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/openhands-resolver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} \
Expand All @@ -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:
Expand Down

0 comments on commit d3fa9ab

Please sign in to comment.