Page MenuHomePhabricator

tbs: user-story 3 - I want to cancel the build using the toolforge build cancel feature
Closed, ResolvedPublic

Assigned To
Authored By
dcaro
Dec 9 2022, 10:27 AM
Referenced Files
F36896700: image.png
Mar 7 2023, 4:02 PM
F36896415: image.png
Mar 7 2023, 11:18 AM
F36896413: image.png
Mar 7 2023, 11:18 AM
F36896411: image.png
Mar 7 2023, 11:18 AM
F36895763: image.png
Mar 7 2023, 9:34 AM
F36895760: image.png
Mar 7 2023, 9:34 AM
Subscribers

Description

As a toolforge user, I can use the toolforge build cancel {id} feature in order to cancel the build.

How do we know it's done?

Feature: I want to cancel the build using the toolforge build cancel feature.

Background:

Given I'm logged in as a tool (after ssh login.toolforge.org + become mytool)

Scenario: Cancel a given running build - DONE

Given that the given build is running 
When running the command toolforge build cancel {id}
Then the build gets canceled

image.png (697×1 px, 135 KB)

Scenario: Cancel a given not started build - DONE

Given that the given build is in "not started" status 
When running the command toolforge build cancel {id}
Then the build gets canceled

Scenario: Cancel a given finished build - DONE

Given that the given build is finished 
When running the command toolforge build cancel {id}
Then a message is shown saying that the build is not running

image.png (917×2 px, 437 KB)

Scenario: Cancel a non-existent build id - DONE

Given that the given build does not exist 
When running the command toolforge build cancel {id}
Then a message is shown saying that the build does not exist

image.png (49×876 px, 11 KB)

Scenario: See the “cancel” status -- DONE

Given that a build is canceled
When running the command build show {id}
Then the status shown is "canceled"

image.png (697×1 px, 135 KB)

Scenario: See the “cancel” status of the latest build - DONE

Given that a build is canceled
And it's the latest build 
When running the command build show
Then the status shown is "canceled"

image.png (610×1 px, 123 KB)

Scenario: Service is down - DONE

When I run the command toolforge build cancel {id} and the service is down
Then I see an error message telling me the service is down
And the message gives me actionable feedback

image.png (608×2 px, 156 KB)

This epic contains the following tasks:

This is a tracking task, so it will be closed once the tasks mentioned below are completed.

Related Objects

StatusSubtypeAssignedTask
ResolvedLucasWerkmeister
Resolvedmatmarex
ResolvedLegoktm
ResolvedLegoktm
Opendcaro
Resolveddcaro
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
Resolveddcaro
ResolvedRaymond_Ndibe
ResolvedSlst2020
ResolvedSlst2020
ResolvedSlst2020
ResolvedSlst2020
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
Resolveddcaro
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
Resolvedfnegri
Resolveddcaro
ResolvedAndrew
ResolvedSlst2020
Resolveddcaro
Resolvedfnegri
ResolvedRaymond_Ndibe
ResolvedSlst2020
ResolvedSlst2020
ResolvedSlst2020
Resolveddcaro
Resolveddcaro
Resolveddcaro
Resolveddcaro
Resolveddcaro
Resolveddcaro
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
ResolvedNone

Event Timeline

Raymond_Ndibe claimed this task.