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

Add retries to GraalVM updater commands #7079

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

hubertp
Copy link
Collaborator

@hubertp hubertp commented Jun 20, 2023

Pull Request Description

The change adds logic that will attempt a few retries when executing gu (GraalVM updater) commands. Previously, if it failed, it failed. Retries should help with the most common case - occassional network hiccups.

Closes #6880.

Important Notes

Note that I don't use an external library for retries on purpose. Didn't want to introduce a yet another dependency for this tiny functionality.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed, the GUI was tested when built using ./run ide build.

hubertp added 2 commits June 23, 2023 19:26
The change adds logic that will attempt a few retries when executing `gu`
(GraalVM updater) commands. Previously, if it failed, it failed.
Retries should help with the most common case - occassional network
hiccups.

Note that I don't use an external library for retries on purpose. Didn't
want to introduce a yet another dependency for this tiny functionality.

Closes #6880.
@hubertp hubertp force-pushed the wip/hubert/6880-retries-to-updater branch from 5352cec to 1c041bb Compare June 23, 2023 17:27
@hubertp hubertp added the CI: Ready to merge This PR is eligible for automatic merge label Jun 23, 2023
@mergify mergify bot merged commit 7955bec into develop Jun 23, 2023
@mergify mergify bot deleted the wip/hubert/6880-retries-to-updater branch June 23, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add retries when downloading GraalVM components
2 participants