upload-artifact
fails on Ubuntu jobs, likely due to artifact name collision
#1383
Labels
CI
Continuous integration
Recently, the Ubuntu jobs have been failing nondeterministically with the following error. Here is an example:
Curiously, this only happens on the Ubuntu jobs. After searching the GitHub Actions
upload-artifact
issue tracker for a bit, I think I now know why this happens. Here is a relevant section of theupload-artifact
README
(which I discovered via actions/upload-artifact#171 (comment)):I believe what is happening is that we are trying to upload certain artifacts from different jobs to the same
name
, which confusesupload-artifact
and can result in various 500 errors, such as the 503 seen above. Indeed, we have the followingupload-artifact
steps in the Cryptol CI:cryptol/.github/workflows/ci.yml
Lines 192 to 204 in 69f07cc
Where
NAME
is defined as:cryptol/.github/workflows/ci.yml
Line 170 in 69f07cc
Notably, the
NAME
does not contain the GHC version, but because we have jobs that run different versions of Ubuntu, we have different Ubuntu jobs trying to upload artifacts to the same name, resulting in disaster.It is somewhat curious that this error never arose for CI jobs in, say,
saw-script
, and the above explains why. Insaw-script
, we have thisupload-artifact
step:Note that the
name
is distinguished by the${{ matrix.ghc }}
version. I think we can fix the Cryptol CI by doing the same thing.The text was updated successfully, but these errors were encountered: