Page MenuHomePhabricator

[buildservice] Create GET /build/{id} endpoint in the buildservice API
Closed, ResolvedPublic

Description

The code at https://gitlab.wikimedia.org/repos/cloud/toolforge/builds-api can be extended to present a GET /build/{id} endpoint.

This can be later used by the CLI client.

Currently the client show this info:

tools.sample-php-buildpack-app@tools-sgebastion-10:~$ toolforge build show
Name: sample-php-buildpack-app-buildpacks-pipelinerun-8jzx7
Start time: 2023-06-21T11:41:13Z
End time: 2023-06-21T11:42:10Z
Status: ok (Succeeded)
Message: Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0
Parameters:
    source_url: https://gitlab.wikimedia.org/toolforge-repos/sample-php-buildpack-app
    ref: first_commit
    image_name: sample-php-buildpack-app
    image_tag: latest
    repo_url: tools-harbor.wmcloud.org/tool-sample-php-buildpack-app
    builder_image: tools-harbor.wmcloud.org/toolforge/heroku-builder-classic:22

Details

ReferenceSource BranchDest BranchAuthorTitle
repos/cloud/toolforge/builds-api!25arturo-wip-builds-api-add-getmainaborrerobuilds-api: add GET /build/{id} endpoint
Customize query in GitLab

Event Timeline

dcaro changed the task status from Open to In Progress.Jul 3 2023, 8:44 AM
dcaro moved this task from Next Up to In Progress on the Toolforge Build Service (Iteration 16) board.
aborrero changed the task status from In Progress to Stalled.Jul 4 2023, 9:51 AM
aborrero triaged this task as Low priority.
aborrero moved this task from Doing to Blocked on the User-aborrero board.

The initial patch was created. I'm waiting for the latest toolforge-deploy & lima-kilo changes to land so I can test it locally.

dcaro changed the task status from Stalled to In Progress.Jul 4 2023, 3:19 PM
dcaro moved this task from Iteration 16 to Iteration 17 on the Toolforge Build Service board.
dcaro moved this task from Next Up to In Progress on the Toolforge Build Service (Iteration 17) board.
dcaro removed projects: Goal, Epic.

@aborrero, @Raymond_Ndibe I have started a more specific definition of the output and the datastructures to sync here:
https://etherpad.wikimedia.org/p/new_build_info

let me know what do you think, as we were starting to diverge on the MRs

@aborrero, @Raymond_Ndibe I have started a more specific definition of the output and the datastructures to sync here:
https://etherpad.wikimedia.org/p/new_build_info

let me know what do you think, as we were starting to diverge on the MRs

I agree with the proposal. I'll follow it!