Description
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
- Create a template that has a long
apply
time - Create a workspace from the template
- 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