Content-Length: 509982 | pFad | http://github.com/coder/coder/pull/18816/#r2218669061

16 docs: add dev containers and scheduling to prebuilt workspaces known issues by EdwardAngert · Pull Request #18816 · coder/coder · GitHub
Skip to content

docs: add dev containers and scheduling to prebuilt workspaces known issues #18816

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

EdwardAngert
Copy link
Contributor

@EdwardAngert EdwardAngert commented Jul 9, 2025

closes #18806

  • scheduling limitation
  • dev containers limitation
  • edit intro

preview

Summary by CodeRabbit

  • Documentation
    • Clarified the introduction and administrator responsibilities for prebuilt workspaces.
    • Integrated compatibility information about DevContainers and workspace scheduling more contextually.
    • Added explicit notes on limitations with dev containers integration and workspace autostart/autostop features.
    • Improved configuration examples and clarified scheduling instructions.
    • Enhanced explanations of scheduling behavior and lifecycle steps for better understanding.

@EdwardAngert EdwardAngert self-assigned this Jul 9, 2025
@EdwardAngert EdwardAngert added the docs Area: coder.com/docs label Jul 9, 2025
@matifali matifali removed their request for review July 9, 2025 18:44
@github-actions github-actions bot added the stale This issue is like stale bread. label Jul 17, 2025
@EdwardAngert EdwardAngert removed the stale This issue is like stale bread. label Jul 17, 2025
@SasSwart SasSwart self-requested a review July 21, 2025 09:33
@@ -21,6 +14,9 @@ Prebuilt workspaces are:
- Monitored and replaced automatically to maintain your desired pool size.
- Automatically scaled based on time-based schedules to optimize resource usage.

Currently, Prebuilt workspaces are not fully compatible with the
[dev containers integration](../extending-templates/devcontainers.md) or with [workspace scheduling features](../../../user-guides/workspace-scheduling.md) like autostart and autostop.
Copy link
Contributor

Choose a reason for hiding this comment

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

Currently here makes sense for devcontainers as that will change, but I don't believe we'll ever support autostart or autostop and this implies that we will.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it was decided that autostart and autostop won’t ever be supported for prebuilds, since they would conflict with the prebuilds’ own reconciliation loop. I think we can safely remove this mention.

@@ -301,6 +301,22 @@ The prebuilt workspaces feature has these current limitations:

[View issue](https://github.com/coder/internal/issues/364)

- **Dev containers**
Copy link
Contributor

Choose a reason for hiding this comment

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

There seems to be some duplication between this and the sections above. Is that intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's good to duplicate info if it's in a separate "known issues" or "faq" section - that way people can find the info even if they got here without seeing the rest of the doc

Copy link
Contributor

@ssncferreira ssncferreira left a comment

Choose a reason for hiding this comment

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

Thank you for working on this 📝
Some comments regarding the workspace scheduling for prebuilds.

@@ -21,6 +14,9 @@ Prebuilt workspaces are:
- Monitored and replaced automatically to maintain your desired pool size.
- Automatically scaled based on time-based schedules to optimize resource usage.

Currently, Prebuilt workspaces are not fully compatible with the
[dev containers integration](../extending-templates/devcontainers.md) or with [workspace scheduling features](../../../user-guides/workspace-scheduling.md) like autostart and autostop.
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it was decided that autostart and autostop won’t ever be supported for prebuilds, since they would conflict with the prebuilds’ own reconciliation loop. I think we can safely remove this mention.

@github-actions github-actions bot added the stale This issue is like stale bread. label Jul 29, 2025
Copy link

coderabbitai bot commented Jul 29, 2025

Walkthrough

The documentation for prebuilt workspaces was updated to clarify compatibility limitations, particularly with DevContainers and workspace autostart/autostop features. The changes reorganize these warnings, improve explanations of scheduling and TTL configuration, and enhance the clarity and consistency of the documentation.

Changes

Cohort / File(s) Change Summary
Prebuilt Workspaces Documentation
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Revised to clarify limitations with DevContainers and workspace scheduling, improved configuration examples, reorganized warnings, and enhanced lifecycle explanations.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~6 minutes

Assessment against linked issues

Objective Addressed Explanation
Add disclaimer on known limitations: incompatibility with autostop (zombie workspaces) and dev containers (#18806)

Poem

In burrows deep, a doc was spun,
With warnings clear for everyone—
Prebuilds hop fast, but mind the gap,
DevContainers and autostop? Best to nap!
Schedules set with care anew,
The rabbit cheers, “These docs will do!” 🐇✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 18806-prebuilds-known-limits

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (2)
docs/admin/templates/extending-templates/prebuilt-workspaces.md (2)

304-309: Duplication with earlier notice

This “Dev containers” limitation repeats the warning already given in lines 17-19. Consolidating the information in one place would keep the doc shorter and reduce maintenance overhead.


310-319: Still duplicated & previously flagged

The autostart/autostop limitation is explained in both the introduction and here. Past reviews suggested dropping the duplicate; consider removing one to avoid drift.

🧹 Nitpick comments (1)
docs/admin/templates/extending-templates/prebuilt-workspaces.md (1)

17-19: Drop “Currently” & tighten wording to avoid implying future support

Past discussion concluded that prebuilds will likely never support autostart/autostop, so “Currently” is misleading here. A leaner sentence also scans better:

-Currently, Prebuilt workspaces are not fully compatible with the
-[dev containers integration](../extending-templates/devcontainers.md) or with [workspace scheduling features](../../../user-guides/workspace-scheduling.md) like autostart and autostop.
+Prebuilt workspaces are not compatible with the
+[dev containers integration](../extending-templates/devcontainers.md) or with [workspace scheduling features](../../../user-guides/workspace-scheduling.md) such as autostart and autostop.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5a8a19b and 1b0f88c.

📒 Files selected for processing (1)
  • docs/admin/templates/extending-templates/prebuilt-workspaces.md (6 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{go,sql,ts,tsx,js,jsx,md}

📄 CodeRabbit Inference Engine (CLAUDE.md)

Ensure files end with a newline to avoid missing newlines.

Files:

  • docs/admin/templates/extending-templates/prebuilt-workspaces.md
🔇 Additional comments (5)
docs/admin/templates/extending-templates/prebuilt-workspaces.md (5)

3-8: No actionable feedback for this introductory wording – reads clearly.


51-51: No issues – the inline clarification of 86400 is helpful.


122-125: Good call-out to prefer prebuild-specific scheduling

The important note cleanly steers admins away from regular workspace scheduling.


161-165: Nothing to flag – option list is concise and accurate.


168-172: Scheduling flow description looks correct and the numbering trick renders fine.

@EdwardAngert EdwardAngert removed the stale This issue is like stale bread. label Jul 29, 2025
Comment on lines +17 to +18
Prebuilt workspaces are not fully compatible with
[workspace scheduling features](../../../user-guides/workspace-scheduling.md) like autostart and autostop.
Copy link
Contributor

Choose a reason for hiding this comment

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

Prebuilds are not considered part of the regular workspace scheduling system.
I think it might be clearer if we explicitly mention that prebuilds have their own scheduling behavior, separate from regular workspaces. Maybe something like this:

Suggested change
Prebuilt workspaces are not fully compatible with
[workspace scheduling features](../../../user-guides/workspace-scheduling.md) like autostart and autostop.
Prebuilt workspaces are a special type of workspace that don't follow the
[regular workspace scheduling features](../../../user-guides/workspace-scheduling.md) like autostart and autostop. Instead, they have their own reconciliation loop that handles prebuild-specific scheduling features such as TTL and prebuild scheduling.

Comment on lines +3 to +4
Prebuilt workspaces (prebuilds) reduce workspace creation time with an automatically-maintained pool of
ready-to-use workspaces.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it still makes sense to mention the presets: 🤔

Suggested change
Prebuilt workspaces (prebuilds) reduce workspace creation time with an automatically-maintained pool of
ready-to-use workspaces.
Prebuilt workspaces (prebuilds) reduce workspace creation time with an automatically-maintained pool of
ready-to-use workspaces for specific parameter presets.

The template administrator configures a template to provision prebuilt workspaces in the background, and then when a developer creates
a new workspace that matches the preset, Coder assigns them an existing prebuilt instance.
Prebuilt workspaces significantly reduce wait times, especially for templates with complex provisioning or lengthy startup procedures.
The template administrator defines the prebuilt workspace's parameters and number of instances to keep provisioned.
Copy link
Contributor

Choose a reason for hiding this comment

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

We could also mention that prebuilds are created in the background once the template is published, this happens transparently to the user. It might help clarify how we bridge the gap between when an admin publishes a template and when a developer creates a matching workspace that can reuse an existing prebuilt instance.


Prebuilt workspaces can only be used with the default organization.

[View issue](https://github.com/coder/internal/issues/364)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is no longer the case. AFAIK prebuilds are now supported across all organizations (related issue: coder/internal#527)
@SasSwart might be able to confirm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Area: coder.com/docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: add known limitations to prebuilds
3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/coder/coder/pull/18816/#r2218669061

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy