-
I am having a lot of problems with release assets being uploaded. I have tried other release actions so it's not a bug here but i feel something has changed because actions that were working fine before now have a consistent problem uploading assets Same job run twice: issue: https://github.com/userdocs/musl-cross-make/actions/runs/1403702718 no issues: https://github.com/userdocs/musl-cross-make/actions/runs/1404604922 And this job that was working fine until about a few days ago where i started to notice issues. https://github.com/userdocs/test/actions/runs/1408303173 I feel like something with how the action are run or matrix builds maybe has changed on GitHub side and it's causing this. Do you have any ideas what it may be? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
From googling around it seems like this can happen when there is an intermittent outage on github. We do retry a few times if the artifact fails to upload but I'm not sure that would always help if the outage lasted awhile. |
Beta Was this translation helpful? Give feedback.
-
@ncipollo I don't fully understand why this works but I can only assume either.
I also don't think I'm imagining this problem as I did a lot of builds recently as well as over the last few months and these actions were working fine until very recently so I'm sure something has changed, and it was not my setup (or your action). I can only guess at what that is. One thing of interest I noticed was the failure for release artifacts (that actually uploaded) to be placed in alphabetical order when I was having issues. Whether this is a symptom or a coincidence I cannot say but mentioned it in case it means something to you. Here is a brief summary of what did not work and what changes I made to fix a previously working setup in my matrix builds. So, I was doing this kind of docker setup, which kept giving me errors jobs:
build:
runs-on: ubuntu-latest
container: alpine:edge
...
steps:
...
After looking at one of my other successful actions I noticed that the main difference was how I implemented the docker container. There I bootstrap a container myself in a way the previous method cannot allow for. This is done using the docker installed on the runner as a step, like this: jobs:
build:
runs-on: ubuntu-latest
steps:
...
- name: Host - Create docker multiarch container
run: docker run --name multiarch -it -d --env-file env.custom -w /root -v ${{ github.workspace }}:/root ${{ matrix.os_id }}:${{ matrix.os_version_id }} This sort of changes how the action is structured but it now it works again as expected with no errors So I do not know what changed to make the consistent problem go away, consistently, or why this difference fixes it but I am certain something was changed. Unless you can see something I don't that would explain the issue? For now I have moved past this issue with a lot of confusion but minor adaption to my workflows so I leave it here in case someone else hits this weird issue for my main project having this issue bugged - https://github.com/userdocs/qbittorrent-nox-static/actions/runs/1406134278 fixed - https://github.com/userdocs/qbittorrent-nox-static/actions/runs/1410538865 |
Beta Was this translation helpful? Give feedback.
@ncipollo I don't fully understand why this works but I can only assume either.
GitHub is doing some weird new stuff in the runners (like auto caching?) - some kind of resource/performance management - maybe.
The Alpine container or docker implementation or both are buggy when used in this way.
Possibly that I also used qemu static on the host (and update the host runner first) in my other method, as one of the two main differences. I doubt this as I had issues on all matrix arch build outcomes and the host is always amd64
I also don't think I'm imagining this problem as I did a lot of builds recently as well as over the last few months and these actions were working fine until ve…