Page MenuHomePhabricator

[tbs.cli] Add --ref parameter to allow specifying a branch/revision
Closed, ResolvedPublic

Description

This will help debugging/adopting the buildpacks as it allows to have a branch while checking/testing things.

The parameter should allow a revision to be passed, for example:

# branch
$ toolforge build create https://github.com/david-caro/wm-lol --ref upstream_buildpacks
# tag
$ toolforge build create https://github.com/david-caro/wm-lol --ref v1.0.1
# or a commit
$ toolforge build create https://github.com/david-caro/wm-lol --ref 815e416b1da1819b7f09150e67668f0fbeaa8881

Note that the current pipeline allows passing a parameter 'revision' when creating the pipelinerun that already supports these usecases.

Event Timeline

dcaro triaged this task as High priority.Dec 21 2022, 10:50 AM
dcaro created this task.
dcaro added a project: Toolforge Build Service.
dcaro changed the task status from Open to In Progress.Dec 21 2022, 10:52 AM
dcaro moved this task from Next Up to In Progress on the Toolforge Build Service (Iteration 07) board.

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

[cloud/toolforge/toolforge-cli@main] tox: Allow passing args to pre-commit to select hook

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

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

[cloud/toolforge/toolforge-cli@main] cli: add --ref option to specify branch/tag/commit

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

Slst2020 renamed this task from [tbs.csi] Add --revision parameter to allow specifying a branch/revision to [tbs.cli] Add --revision parameter to allow specifying a branch/revision.Jan 3 2023, 6:11 AM

Change 870895 merged by jenkins-bot:

[cloud/toolforge/toolforge-cli@main] tox: Allow passing args to pre-commit to select hook

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

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

[cloud/toolforge/toolforge-cli@main] tox: remove unnecessary format environment

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

Change 875261 merged by jenkins-bot:

[cloud/toolforge/toolforge-cli@main] tox: remove unnecessary format environment

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

Change 870896 merged by jenkins-bot:

[cloud/toolforge/toolforge-cli@main] cli: add --ref option to specify branch/tag/commit

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

KHernandez-WMF changed the task status from In Progress to Stalled.Jan 10 2023, 2:16 PM
dcaro changed the task status from Stalled to In Progress.Jan 30 2023, 2:12 PM

this has been merged and should be closed no @dcaro ?

It has not been deployed yet ;), I'll close on deployment

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

[cloud/toolforge/toolforge-cli@main] build: add tag to builder image

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

Change 892912 merged by jenkins-bot:

[cloud/toolforge/toolforge-cli@main] build: add tag to builder image

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

Note that the revision has to be the full commin sha if passing an sha

dcaro renamed this task from [tbs.cli] Add --revision parameter to allow specifying a branch/revision to [tbs.cli] Add --ref parameter to allow specifying a branch/revision.Mar 13 2023, 3:53 PM
dcaro updated the task description. (Show Details)