Skip to content

chore(image-builder-bob): Reduce retry duration #14206

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

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

WVerlaek
Copy link
Member

@WVerlaek WVerlaek commented Oct 26, 2022

Description

Small improvements for image-builder-bob's retry logic for connecting to the buildkit daemon:

  • Reduce exponential backoff attempts from 10 to 8. This will still retry for up to ~4 minutes (instead of ~17 minutes), but will error out sooner if there's a real issue.
    • From testing, the daemon usually starts in less than 2 seconds
  • Remove time.Sleep after last failed retry attempt, should reduce total wait time by ~half if there's an error (due to exponential backoff sleep times).

Related Issue(s)

How to test

Follow the README to run bob locally in a workspace, up to and including trying to build an image. The image build should get stuck in attempting to connect to buildkitd, and quit after 8 attempts (because currently the daemon fails to start in a workspace due to #14003: root user can't write to /workspace).

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@WVerlaek WVerlaek requested a review from a team October 26, 2022 17:57
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label Oct 26, 2022
Comment on lines -509 to -510
// ComponentImageBuilder points to the image-builder
ComponentImageBuilder ComponentType = "image-builder"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was unused - refers to the previous image builder component

@WVerlaek WVerlaek self-assigned this Oct 26, 2022
@roboquat roboquat merged commit fc916b7 into main Oct 26, 2022
@roboquat roboquat deleted the wv/image-builder-reduce-total-retry branch October 26, 2022 18:23
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none size/S team: workspace Issue belongs to the Workspace team
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants