exasol / python-toolbox

Infrastructure & Automation Tooling for Python Projects
https://exasol.github.io/python-toolbox/
MIT License
2 stars 0 forks source link

🔧 Migrate GithubAction `actions/upload-artifact@v3` from v3 to v4 #181

Open Nicoretti opened 4 months ago

Nicoretti commented 4 months ago

Summary

Migrate the use of GithubAction actions/upload-artifact@v3 from v3 to v4. This process will entail addressing significant semantic changes.

Details

It's important to note that there are considerable semantic differences between these versions. The same file/artifact name, for example, cannot be uploaded multiple times without triggering an error in v4. This e.g. is an issue with the current matrix build setup. Even if the overwrite option is set to true, behaviors still seem to vary. It looks like each uploaded file gets individual download URLs that can get mixed up, causing errors when trying to download the artifact.

In order to perform the migration, two alternatives are recommended. Firstly, we could run a job solely for collecting metrics, which also handles the single-time upload. Secondly, we could integrate a check before uploading the artifact(s) in the runs.

References