Page MenuHomePhabricator

[webservice-cli] use jobs-api to start the webservice
Open, In Progress, MediumPublic

Description

Change webservice-cli so it goes through the jobs-api endpoint instead of talking
to Kubernetes directly.

toolforge webservice start becomes an alias for toolforge jobs run --webservice (using the endpoint though, not the cli),
similar to toolforge jobs run --publish ... webservice.
The job is a continuous job named webservice, with the webservice defaults from image-config.

toolforge jobs dump should then give back an actual continuous job with those
webservice defaults set.

That lets us remove most of the logic out of webservice-cli. Status, restart, stop
and logs all go through jobs-api too.

webservice shell stays as it is, unless we add support for shelling into containers in jobs-api too.

Event Timeline

webservice shell stays as it is, unless we add support for shelling into containers in jobs-api too.

T431276: jobs-api, jobs-cli: investigate shell / exec into jobs-api containers

aputhin triaged this task as Medium priority.Jul 8 2026, 2:33 PM

webservice shell stays as it is, unless we add support for shelling into containers in jobs-api too.

T431276: jobs-api, jobs-cli: investigate shell / exec into jobs-api containers

yes T431276 is basically to investigate if/how to support this via jobs-cli

Raymond_Ndibe changed the task status from Open to In Progress.Jul 14 2026, 4:22 PM
Raymond_Ndibe moved this task from Backlog to In progress on the tools-platform-team board.
dcaro renamed this task from Make webservice-cli use jobs-api to [webservice-cli] use jobs-api to start the webservice.Jul 14 2026, 5:33 PM

while getting the webservice-cli to use the jobs-api directly,
what we should actually do is to get the webservice-cli to use the jobs-cli (should this be the case?), just like the jobs-cli uses the jobs-api).

also investigate if it's possible to translate the webservice-cli manifest thing to the yaml spec that jobs-cli load accepts (this should be possible but needs some investigation first).

These should all help inform us if we should notify the users of this change (we should probably do this, so just adding it here to draw attention to that)