Skip to content

fix: handle missed actions in workspace timings #17593

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

Merged
merged 2 commits into from
Apr 28, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

Fix #16409

Since the provisioner timings action is not strongly typed, but it is typed as a generic string, and we are not using noUncheckedIndexedAccess, we can miss some of the actions returned from the API, causing type errors. To avoid that, I changed the code to be extra safe by adding undefined into the return type.

@BrunoQuaresma BrunoQuaresma added the hotfix PRs only. Harmless small change. Only humans may set this. label Apr 28, 2025
@BrunoQuaresma BrunoQuaresma self-assigned this Apr 28, 2025
Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main or release branch
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@BrunoQuaresma BrunoQuaresma merged commit 1da27a1 into main Apr 28, 2025
34 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-missed-actions branch April 28, 2025 18:20
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hotfix PRs only. Harmless small change. Only humans may set this.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot render workspace build timeline > provisioning > apply stage
1 participant