Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: coder/coder
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: coder/coder
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: script-ordering
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 121 files changed
  • 1 contributor

Commits on Jun 10, 2026

  1. feat: add declarative script ordering via coder_script_order

    Add template-level execution ordering for coder_script resources via a
    coder_script_order data source resolved at plan time, persisted per
    workspace agent, and enforced by the agent at startup:
    
    - provisioner: resolve run/after/requires rules against the terraform
      graph into per-script order dependencies (lexically scoped selectors,
      cycle/cross-agent/typo validation, unattached scripts inert)
    - coderd: workspace_agent_script_order table, manifest order deps,
      codersdk types (API 2.11)
    - agent: gate ordered start scripts on dependency completion via the
      unit manager; skip requires=success dependents when a dependency
      fails, transitively, with named skip reasons in script logs
    - observability: skipped scripts report zero-duration SKIPPED timings
      (new enum value + migration), blocked scripts log waiting heartbeats
      every 30s, build timeline renders skipped status (plus fixes for the
      pre-existing timed_out legend key mismatch and unknown-status crash)
    - docs page, example template, and Storybook coverage
    
    Generated with Coder Agents on behalf of @matifali.
    matifali committed Jun 10, 2026
    Configuration menu
    Copy the full SHA
    85ccdf1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1253482 View commit details
    Browse the repository at this point in the history
Loading