nus-cs2103-AY2021S1 / forum

20 stars 2 forks source link

💡 Github actions (CI) can fail sometimes (and it's not your fault) #264

Open JoeyChenSmart opened 4 years ago

JoeyChenSmart commented 4 years ago

This happened when one of my team members added his AboutUs picture in a PR. The only change was the addition of 1 .png file, and no code was changed so the CI should not fail. But it did.

image

We can see from the CI logs that the build process failed because gradle failed to download and install the shadow package. Note that this build process happens one one of github's cloud VMs, and not on your local machine.

To fix this, you can close and reopen the PR, making github restart the CI process.

Note that this will only fix problems that are github's fault (e.g. failing to download a package). It will not magically make your CI pass. In particular, the CI may fail again if your code does not pass all the test cases (repeatedly closing and opening the PR will never fix this!).

theodoreleebrant commented 4 years ago

If not wrong, there is also a button to restart the CI! So you don't need to close and open the PR.