As a toolforge user, I can check the toolforge build show feature in order to check the progress of the last build.
How do we know it's done?
Feature: I want to check the status of the last build using the toolforge build show feature.
Background:
Given I'm logged in as a tool (after ssh login.toolforge.org + become mytool) And I triggered a build with “build start”
Scenario: Build not started yet
Given that the build did not start yet When running the command toolforge build show Then I see the the status of the last build as "not started" And the start time And the parameters used to start it
- Scenario: Started but not finished - DONE
Given that the build started but not finished When running the command toolforge build show Then I see the the status of the last build as "started" And the start time And the parameters used to start it
tools.wm-lol@tools-sgebastion-10:~$ toolforge build show Name: wm-lol-buildpacks-pipelinerun-h8fvn Start time: 2023-04-11T14:51:58Z End time: running Status: ok(Running) Message: Tasks Completed: 0 (Failed: 0, Cancelled 0), Incomplete: 1, Skipped: 0 Parameters: source_url: https://github.com/david-caro/wm-lolidontexist ref: no ref image_name: wm-lol image_tag: latest repo_url: tools-harbor.wmcloud.org/wm-lol builder_image: tools-harbor.wmcloud.org/toolforge/heroku-builder-classic:22 Tasks: Task: build-from-git Start time: 2023-04-11T14:51:58Z End time: running Status: unknown(Pending) Message: pod status "Initialized":"False"; message: "containers with incomplete status: [place-tools step-init place-scripts]" Steps: Step: clone - waiting(PodInitializing) Step: prepare - waiting(PodInitializing) Step: copy-stack-toml - waiting(PodInitializing) Step: detect - waiting(PodInitializing) Step: analyze - waiting(PodInitializing) Step: restore - waiting(PodInitializing) Step: build - waiting(PodInitializing) Step: export - waiting(PodInitializing) Step: results - waiting(PodInitializing)
- Scenario: Build finished successfully - DONE
Given that the build finished successfully When running the command toolforge build show Then I see the the status of the last build as "done" And the start time And the end time And the parameters used to start it
tools.wm-lol@tools-sgebastion-10:~$ toolforge build show Name: wm-lol-buildpacks-pipelinerun-nggkg Start time: 2023-04-11T14:28:37Z End time: 2023-04-11T14:30:33Z Status: ok(Succeeded) Message: Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0 Parameters: source_url: https://github.com/david-caro/wm-lol ref: no ref image_name: wm-lol image_tag: latest repo_url: tools-harbor.wmcloud.org/wm-lol builder_image: tools-harbor.wmcloud.org/toolforge/heroku-builder-classic:22 Tasks: Task: build-from-git Start time: 2023-04-11T14:28:37Z End time: 2023-04-11T14:30:33Z Status: ok(Succeeded) Message: All Steps have completed executing Steps: Step: clone - ok(Completed) Step: prepare - ok(Completed) Step: copy-stack-toml - ok(Completed) Step: detect - ok(Completed) Step: analyze - ok(Completed) Step: restore - ok(Completed) Step: build - ok(Completed) Step: export - ok(Completed) Step: results - ok(Completed)
- Scenario: Build finished in error - DONE
Given that the build finished with error When running the command toolforge build show Then I see the the status of the last build as "error" And the start time And the end time And the parameters used to start it
tools.wm-lol@tools-sgebastion-10:~$ toolforge build show Name: wm-lol-buildpacks-pipelinerun-h8fvn Start time: 2023-04-11T14:51:58Z End time: 2023-04-11T14:52:19Z Status: error(Failed) Message: Tasks Completed: 1 (Failed: 1, Cancelled 0), Skipped: 0 Parameters: source_url: https://github.com/david-caro/wm-lolidontexist ref: no ref image_name: wm-lol image_tag: latest repo_url: tools-harbor.wmcloud.org/wm-lol builder_image: tools-harbor.wmcloud.org/toolforge/heroku-builder-classic:22 Tasks: Task: build-from-git Start time: 2023-04-11T14:51:58Z End time: 2023-04-11T14:52:19Z Status: error(Failed) Message: "step-clone" exited with code 1 (image: "docker-pullable://docker-registry.tools.wmflabs.org/toolforge-tektoncd-pipeline-cmd-git-init@sha256:bbb7ec459178f708644694417f9426e6c599b5aaab1b01e4c3863e8294de6758"); for logs run: kubectl -n image-build logs wm-lol-buildpacks-pipelinerun-h8fvn-build-from-git-pod -c step-clone Steps: Step: clone - error(Error) Step: prepare - error(Error) Step: copy-stack-toml - error(Error) Step: detect - error(Error) Step: analyze - error(Error) Step: restore - error(Error) Step: build - error(Error) Step: export - error(Error) Step: results - error(Error)
Scenario: Service is down
When I run the command toolforge build show and the service is down Then I see an error message telling me the service is down And the message gives me actionable feedback
This epic contains the following tasks:
This is a tracking task, so it will be closed once the tasks mentioned below are completed.