Skip to content

Cannot render workspace build timeline > provisioning > apply stage #16409

Closed
@reverbc

Description

@reverbc

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After upgrade to v2.18.4/v2.18.5, the new Build Timeline feature crashes when clicking into the provisioning > apply stage on some builds that take longer (>1m) to apply.

The provisioning > plan stage can correctly render.

Relevant Log Output

Unexpected Application Error!
Cannot read properties of undefined (reading 'colors')
TypeError: Cannot read properties of undefined (reading 'colors')
    at https://CODER_HOST/assets/WorkspacePage-Bytwy08b.js:23:3061
    at Array.map (<anonymous>)
    at Ac (https://CODER_HOST/assets/WorkspacePage-Bytwy08b.js:23:2805)
    at NC (https://CODER_HOST/assets/index-CMIb-vym.js:46:17030)
    at qj (https://CODER_HOST/assets/index-CMIb-vym.js:48:44104)
    at jj (https://CODER_HOST/assets/index-CMIb-vym.js:48:39822)
    at Mte (https://CODER_HOST/assets/index-CMIb-vym.js:48:39748)
    at Qh (https://CODER_HOST/assets/index-CMIb-vym.js:48:39598)
    at cT (https://CODER_HOST/assets/index-CMIb-vym.js:48:35960)
    at WL (https://CODER_HOST/assets/index-CMIb-vym.js:48:36765)

Expected Behavior

The apply stage can always correctly render regardless the duration.

Steps to Reproduce

  1. Create a template that has a long apply time
  2. Create a workspace from the template
  3. Click into provisioning > apply in Build timeline once it's done creating workspace

Environment

  • Host OS: Ubuntu 20.04.5
  • Coder version: v2.18.4 / v2.18.5

Additional Context

The issue occurs consistently, The issue is new (previously worked fine), I have tested this on the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedBugs reported by enterprise customers. Only humans may set this.s2Broken use cases or features (with a workaround). Only humans may set this.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions