Skip to content

[server] Increase timeouts for parent prebuilds #4291

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

Closed
wants to merge 1 commit into from

Conversation

jankeromnes
Copy link
Contributor

@jankeromnes jankeromnes commented May 25, 2021

Still unsure what the best approach is here:

  1. Make WorkspaceStarter.createSpec() fetch the prebuild workspace to check for preconditions (incremental enabled && parent prebuild) before setting the custom timeout

  2. Same but move the preconditions check + custom timeout value into a helper method somewhere else

  3. Add some parameter on the Workspace shape that indicates "is a parent prebuild that should run longer"

  4. Make PrebuildManager call WorkspaceStarter.startWorkspace(ctx, workspace, user, options) with a new options field (e.g. customTimeout) that gets passed to actuallyStartWorkspace and then to createSpec

@jankeromnes jankeromnes changed the title [WIP][server] Increase timeouts for parent prebuilds (when incremental prebuilds are enabled) [WIP][server] Increase timeouts for parent prebuilds May 25, 2021
@jankeromnes jankeromnes changed the title [WIP][server] Increase timeouts for parent prebuilds [server] Increase timeouts for parent prebuilds May 27, 2021
@jankeromnes
Copy link
Contributor Author

Feedback from 1:1 call: Another way to specify the longer timeouts for incremental parent prebuilds could to create a "CommitContextWithTimeout" shape that just adds a timeout on the (prebuild actual) workspace context.

@jankeromnes jankeromnes force-pushed the jx/longer-parent-prebuilds branch 2 times, most recently from e707b73 to 2d6d643 Compare May 31, 2021 08:40
@jankeromnes jankeromnes force-pushed the jx/longer-parent-prebuilds branch from 2d6d643 to c6d5b0e Compare May 31, 2021 08:48
@jankeromnes
Copy link
Contributor Author

jankeromnes commented May 31, 2021

🎰

/werft run

👍 started the job as gitpod-build-jx-longer-parent-prebuilds.4

@stale
Copy link

stale bot commented Aug 29, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Aug 29, 2021
@stale stale bot closed this Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: stale This issue/PR is stale and will be closed soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant