Update Remote Dev e2e tests to verify cases for error tracking
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem statement
The current e2e test only captures the happy path i.e. creation of a workspace followed by termination as cleanup. Now that RD support capture/reporting of applier errors, perhaps additional specs can be added to the e2e tests to simulate/verify this case as well
Acceptance Criteria
-
An additional e2e spec that sets up the system such that creation of a workspace results in an applier error in Gitlab Agent. This error should be eventually be visible in the UI and the workspace should have its actual_state
set toError
. The test could then be cleaned up by terminating the workspace until its not longer visible in the workspaces list -
If possible, the new e2e spec should be locally runnable
Technical Requirements
-
Verify that an applier error can be consistently be induced in Gitlab Agent. One way could be to create a valid devfile yaml for the test workspace and then override it in the DB with an invalid value before Gitlab Agent is set up -
Create a new e2e spec that verifies that applier errors can be successfully reported by Gitlab Agent to the rails service
Design Requirements
NA
Impact Assessment
There should be no impact as this should be only a spec
User Story
NA
Edited by 🤖 GitLab Bot 🤖