Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky builds #75

Open
edlerd opened this issue Jun 7, 2024 · 1 comment
Open

Flaky builds #75

edlerd opened this issue Jun 7, 2024 · 1 comment

Comments

@edlerd
Copy link

edlerd commented Jun 7, 2024

We frequently see builds failing due to unstable infrastructure. Suspecting network problems as the root cause. See this run in AMS and the relevant screenshot below

image

Can we ensure the builds have a stable network connection and reduce the flakyness of builds?

Or retry the build automatically on network problems? Currently, we have to retry the builds manually on those type of errors.

@jhenstridge
Copy link
Collaborator

It's a bit hard to tell what is going wrong just from that screenshot, and any fix will probably need to be on the Snapcraft side rather than this action.

One thing that might be helpful in diagnosing the problem would be to save the Snapcraft log file on error. This could be done by adding the following to your workflow:

  - if: failure()
    uses: action/upload-artifact@v4
    with:
      name: snapcraft-logs
      path: ~/.local/state/snapcraft/log/*.log

This step would only run if some previous step in the job had failed. Alternatively you could remove the if: failure() to always collect the log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants