Closed amisevsk closed 8 months ago
The Check sources GitHub action is failing due to a DWR test-case I wrote that was abusing the bug that this PR addresses.
IMO we should just remove the Gets Preparing status
test case & the associated createsPreparingDWR()
function.
@amisevsk let me know if you'd like me to add an extra commit to the PR for this.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: amisevsk, AObuchow
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Attention: 15 lines
in your changes are missing coverage. Please review.
Comparison is base (
800f386
) 53.01% compared to head (c73d089
) 52.89%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
What does this PR do?
Mark DevWorkspaceRoutings as failed if any of the sync operations returns an UnrecoverableSyncError rather than ignoring it and treating it as a transient error (i.e. retrying).
This allows workspaces to fail with a meaningful message more quickly, rather than waiting for timeout and failing then.
What issues does this PR fix or reference?
Closes https://github.com/devfile/devworkspace-operator/issues/1198
Is it tested? How?
To test, create a resource quota, then create workspaces that would violate that quota and ensure they fail.
For example, for services,
We should verify that such quotas are respected for routes and ingresses as well, as applicable.
PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-path
to trigger)v8-devworkspace-operator-e2e
: DevWorkspace e2e testv8-che-happy-path
: Happy path for verification integration with Che