Page MenuHomePhabricator

[tbs.cli] Define the process to build and deploy the CLI on toolforge bastions
Closed, ResolvedPublic

Description

We want to define and document the process for manual deployment, not automate it (unless it's very easy).

The current docs on how to build the debian package are:
https://gerrit.wikimedia.org/r/plugins/gitiles/cloud/toolforge/toolforge-cli/+/refs/heads/main

The only docs I've found are:
https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Services#apt_repository

Though it does not say how to add a package, the standard way I think is:

  • ssh to the tools-services* VM
  • sudo -i
  • aptly repo add <repo_name> <path_to_package>
  • aptly publish --skip-signing update <repo_name>

Where the repo_name is one of:

  • stretch-tools
  • buster-tools
  • stretch-toolsbeta
  • buster-toolsbeta

This task is to verify the flow, and document it in the README file or similar.

Event Timeline

This is already automated, although not as a cookbook. See the wmcs-package-build.py script stored in the Puppet repository.

This is already automated, although not as a cookbook. See the wmcs-package-build.py script stored in the Puppet repository.

True!
I remember that the last time I tried that script (>1year ago) it failed, I vaguely remember several issues, something about trying to build the package remotely, signing and such, I don't remember the details but I had to do it manually instead for some reason.

We might want to fix/verify and move that as a cookbook at some point :)
A bit off-scope for this task though.

dcaro changed the task status from Open to In Progress.Aug 31 2022, 8:55 AM
dcaro moved this task from To refine to Doing on the User-dcaro board.

Change 828489 had a related patch set uploaded (by David Caro; author: David Caro):

[cloud/toolforge/toolforge-cli@main] package: Added script to build a debian package locally

https://gerrit.wikimedia.org/r/828489

Change 828489 merged by jenkins-bot:

[cloud/toolforge/toolforge-cli@main] package: Added script to build a debian package locally

https://gerrit.wikimedia.org/r/828489

Change 830648 had a related patch set uploaded (by David Caro; author: David Caro):

[cloud/toolforge/toolforge-cli@main] docs: added how to upload the package

https://gerrit.wikimedia.org/r/830648

dcaro changed the task status from In Progress to Stalled.Sep 9 2022, 1:31 PM
dcaro moved this task from Doing to Blocked on the User-dcaro board.

Change 830648 merged by jenkins-bot:

[cloud/toolforge/toolforge-cli@main] docs: added how to upload the package

https://gerrit.wikimedia.org/r/830648

dcaro moved this task from Blocked to Done on the User-dcaro board.