BugSplat-Git / symbol-upload

Cross-platform symbol upload utility
MIT License
10 stars 3 forks source link

Cannot find temporary .sym.gz file #98

Closed SanderVocke closed 8 months ago

SanderVocke commented 8 months ago

The Github Action fails to run for me. It seems that it cannot find a temporary file that it created containing the symbols.


Run symbol-upload -b "shoopdaloop" -a "shoopdaloop" -v "git-47a46ee45808daa1552a22c54cf7170a4c6f6334" -u "" -p "" -i "***" -s "***" -f "**/*.sym" -d "crashdumps"
About to authenticate...
Authentication success!
Found files:
 crashdumps/debuginfo/breakpad_symbols/libshoopdaloop.so/E5D37BA76D9708A8FB580927871187580/libshoopdaloop.so.sym
crashdumps/debuginfo/breakpad_symbols/libshoop_crashhandling.so/541A2D5FE9309B4EB35BCA2AC00863C30/libshoop_crashhandling.so.sym
crashdumps/debuginfo/breakpad_symbols/libshoop_accelerate.so/4A93A3AFECCBF707F24AD0D881FDC6190/libshoop_accelerate.so.sym
About to upload symbols for shoopdaloop-shoopdaloop-git-47a46ee45808daa1552a22c54cf7170a4c6f6334...
Worker 1 uploading 1 symbol files...
Worker 2 uploading 1 symbol files...
Worker 3 uploading 1 symbol files...
ENOENT: no such file or directory, open '/__w/shoopdaloop/shoopdaloop/tmp/debuginfo/breakpad_symbols/libshoopdaloop.so/E5D37BA76D9708A8FB580927871187580-libshoopdaloop.so.sym.gz'

Link to my test Actions run: https://github.com/SanderVocke/shoopdaloop/actions/runs/8063505125/job/22025740444

I am not sure why it is unable to find/create this file.

Edit: this is on an ubuntu-latest runner

SanderVocke commented 8 months ago

Can confirm that this is a bug in symbol-upload. The correct temporary folder is not created before attempting to write the compressed .gz file. Will open a PR.

SanderVocke commented 8 months ago

Thanks for the quick action!

In the unlikely case that anyone stumbles here and this fix has not made it into a release yet, you can use my fork for now, e.g.:

    - name: Upload BugSplat debug symbols
      uses: SanderVocke/symbol-upload@test_action
      with:
        clientId: "${{ secrets.BUGSPLAT_CLIENT_ID }}"
        clientSecret: "${{ secrets.BUGSPLAT_CLIENT_SECRET }}"
        database: shoopdaloop
        application: shoopdaloop
        version: git-${{ github.sha }}
        files: "**/*.sym"
        directory: crashdumps/debuginfo