felixmosh / turborepo-gh-artifacts

A TurboRepo local cache server which uploads artifact cache to GH artifacts.
MIT License
122 stars 7 forks source link

Improved error handling #26

Closed chintai-paul closed 3 months ago

chintai-paul commented 3 months ago

Issue

When we switched from version 2 to version 3 the action failed with Error: dest already exists.. This seems to happen because the server reports an artifact as missing to the client while it is present locally. Unfortunately the server logs are not displayed when an error occurs.

# Run 1
Gonna upload 34 artifacts:
Artifact 497c63b8420db137.zip successfully finalized. Artifact ID 1669006810
Uploaded 497c63b8420db137.gz successfully
# Run 2
Gonna upload 3 artifacts:
[
  "219c60ff8f337fd5",
  "497c63b8420db137",
  "a9ec3980ebb0c0a5"
]
Artifact 497c63b8420db137.zip successfully finalized. Artifact ID 1669027416
Uploaded 497c63b8420db137.gz successfully
Error: Error: dest already exists.

Changes

felixmosh commented 3 months ago

Thank you for this PR 🙏🏽