Skip to content
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

[ws-manager-mk2] Fix stopped status #16665

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Conversation

WVerlaek
Copy link
Member

@WVerlaek WVerlaek commented Mar 3, 2023

Description

Fixes the first reconciliation of a workspace setting its phase to Stopped briefly, because there are 0 pods and no ContentReady condition, so isDisposalFinished() was returning true. Now only check for isDisposalFinished if in a Stopping state, so we don't transition to Stopped for a tick after workspace creation

Related Issue(s)

Part of #11416

How to test

Run unit tests, or create a workspace and observe the debug logs from the controller not setting the workspace status to Stopped in the first reconciliation

Release Notes

NONE

Documentation

Build Options:

  • /werft with-github-actions
    Experimental feature to run the build with GitHub Actions (and not in Werft).
  • leeway-no-cache
    leeway-target=components:all
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-ee-license
  • with-slow-database
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@WVerlaek WVerlaek requested a review from a team March 3, 2023 18:01
@WVerlaek WVerlaek self-assigned this Mar 3, 2023
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label Mar 3, 2023
Base automatically changed from wv/mk2-traces-debug-logs to main March 6, 2023 15:22
@roboquat roboquat added size/M and removed size/XS labels Mar 6, 2023
@WVerlaek
Copy link
Member Author

WVerlaek commented Mar 6, 2023

/unhold

@roboquat roboquat merged commit ee9ea03 into main Mar 6, 2023
@roboquat roboquat deleted the wv/mk2-fix-stopped-status branch March 6, 2023 15:28
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none size/XS team: workspace Issue belongs to the Workspace team
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants