Page MenuHomePhabricator

[components-cli] Allow reading tool configuration from stdin
Closed, ResolvedPublic

Description

I want to store my tool configuration in a Git repo. Currently in order to deploy any changes in that configuration, I need to clone that repository on a bastion and deploy the changes from a local file.

But if components-cli could read the config from stdin, I could do something like this instead:

$ curl "https://gitlab.wikimedia.org/repos/ci-tools/libtell/-/raw/main/toolforge.yaml?ref_type=heads" | toolforge components config create -

That would save me from having to get the config file cloned locally first.

Event Timeline

dcaro triaged this task as Medium priority.Jul 8 2025, 3:00 PM
Raymond_Ndibe changed the task status from Open to In Progress.Jul 31 2025, 6:48 AM
Raymond_Ndibe claimed this task.
dcaro moved this task from In Progress to Done on the Toolforge (Toolforge iteration 23) board.

This was a bug on the cli side expecting stdin to be json instead of yaml.

Note also that with https://gitlab.wikimedia.org/repos/cloud/toolforge/components-api/-/merge_requests/95 you can now pass source_url: https:/... on your config and it will pull it on every deploy (might be useful too).