Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add batch edit run for publishing charms manually #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ca-scribner
Copy link
Contributor

@ca-scribner ca-scribner commented Aug 15, 2022

This PR archives the files used to do a batch edit on our charm repos using git-xargs. This particular batch edit was to add a manual button for charm publishing to all charms, such as this pr.

A description of how to use git-xargs to produce batch edits like this in future is included in the readme.md

@ca-scribner
Copy link
Contributor Author

Example logs from one of the runs - they're pretty nice!:

venv ❯ git-xargs \                                                                                                                                                            [2:28:16] 
  --dry-run --repos repos.txt \
  --branch-name xxxadd-generic-publish-on-click \
  --pull-request-title "feat: Add generic, clickable publish.yaml" \
  --commit-message "Adds a generic publish.yaml that can be triggered through the UI" \
  --no-skip-ci \
  python /home/scribs/code/canonical/git-xargs-runs/add-publish-script/main.py

[git-xargs] INFO[2022-08-15T14:33:43-04:00] git-xargs running...                         
[git-xargs] INFO[2022-08-15T14:33:43-04:00] Dry run setting enabled. No local branches will be pushed and no PRs will be opened in Github 
Processing repos [18/18] ████████████████████████████████████████████ 100% | 16s

Git-xargs run summary @ 2022-08-15 18:34:02.249248054 +0000 UTC

• Runtime in seconds: 19
• Command supplied: [python /home/scribs/code/canonical/git-xargs-runs/add-publish-script/main.py]
• Repo selection method: repos-file


Repos supplied via --repos file flag

┌──────────────────────────────────────────┐
| Repo name                                |
| canonical/argo-operators                 |
| ---------------------------------------- |
| canonical/istio-operators                |
| ---------------------------------------- |
| canonical/katib-operators                |
| ---------------------------------------- |
| canonical/kfp-operators                  |
| ---------------------------------------- |
| canonical/knative-operators              |
| ---------------------------------------- |
| canonical/kubeflow-dashboard-operator    |
| ---------------------------------------- |
| canonical/kubeflow-profiles-operator     |
| ---------------------------------------- |
| canonical/kubeflow-roles-operator        |
| ---------------------------------------- |
| canonical/kubeflow-tensorboards-operator |
| ---------------------------------------- |
| canonical/kubeflow-volumes-operator      |
| ---------------------------------------- |
| canonical/metacontroller-operator        |
| ---------------------------------------- |
| canonical/minio-operator                 |
| ---------------------------------------- |
| canonical/mlflow-operator                |
| ---------------------------------------- |
| canonical/mlmd-operator                  |
| ---------------------------------------- |
| canonical/notebook-operators             |
| ---------------------------------------- |
| canonical/oidc-gatekeeper-operator       |
| ---------------------------------------- |
| canonical/seldon-core-operator           |
| ---------------------------------------- |
| canonical/training-operator              |
└──────────────────────────────────────────┘

All repos that were targeted for processing after filtering missing / malformed repos

┌──────────────────────────────────────────────────────────────────────────────────────────────┐
| Repo name                      | Repo URL                                                    |
| argo-operators                 | https://github.com/canonical/argo-operators                 |
| -------------------------------------------------------------------------------------------- |
| istio-operators                | https://github.com/canonical/istio-operators                |
| -------------------------------------------------------------------------------------------- |
| katib-operators                | https://github.com/canonical/katib-operators                |
| -------------------------------------------------------------------------------------------- |
| kfp-operators                  | https://github.com/canonical/kfp-operators                  |
| -------------------------------------------------------------------------------------------- |
| knative-operators              | https://github.com/canonical/knative-operators              |
| -------------------------------------------------------------------------------------------- |
| kubeflow-dashboard-operator    | https://github.com/canonical/kubeflow-dashboard-operator    |
| -------------------------------------------------------------------------------------------- |
| kubeflow-profiles-operator     | https://github.com/canonical/kubeflow-profiles-operator     |
| -------------------------------------------------------------------------------------------- |
| kubeflow-roles-operator        | https://github.com/canonical/kubeflow-roles-operator        |
| -------------------------------------------------------------------------------------------- |
| kubeflow-tensorboards-operator | https://github.com/canonical/kubeflow-tensorboards-operator |
| -------------------------------------------------------------------------------------------- |
| kubeflow-volumes-operator      | https://github.com/canonical/kubeflow-volumes-operator      |
| -------------------------------------------------------------------------------------------- |
| metacontroller-operator        | https://github.com/canonical/metacontroller-operator        |
| -------------------------------------------------------------------------------------------- |
| minio-operator                 | https://github.com/canonical/minio-operator                 |
| -------------------------------------------------------------------------------------------- |
| mlflow-operator                | https://github.com/canonical/mlflow-operator                |
| -------------------------------------------------------------------------------------------- |
| mlmd-operator                  | https://github.com/canonical/mlmd-operator                  |
| -------------------------------------------------------------------------------------------- |
| notebook-operators             | https://github.com/canonical/notebook-operators             |
| -------------------------------------------------------------------------------------------- |
| oidc-gatekeeper-operator       | https://github.com/canonical/oidc-gatekeeper-operator       |
| -------------------------------------------------------------------------------------------- |
| seldon-core-operator           | https://github.com/canonical/seldon-core-operator           |
| -------------------------------------------------------------------------------------------- |
| training-operator              | https://github.com/canonical/training-operator              |
└──────────────────────────────────────────────────────────────────────────────────────────────┘

Repos that were successfully cloned to the local filesystem

┌──────────────────────────────────────────────────────────────────────────────────────────────┐
| Repo name                      | Repo URL                                                    |
| kubeflow-tensorboards-operator | https://github.com/canonical/kubeflow-tensorboards-operator |
| -------------------------------------------------------------------------------------------- |
| knative-operators              | https://github.com/canonical/knative-operators              |
| -------------------------------------------------------------------------------------------- |
| kubeflow-volumes-operator      | https://github.com/canonical/kubeflow-volumes-operator      |
| -------------------------------------------------------------------------------------------- |
| mlmd-operator                  | https://github.com/canonical/mlmd-operator                  |
| -------------------------------------------------------------------------------------------- |
| kubeflow-roles-operator        | https://github.com/canonical/kubeflow-roles-operator        |
| -------------------------------------------------------------------------------------------- |
| oidc-gatekeeper-operator       | https://github.com/canonical/oidc-gatekeeper-operator       |
| -------------------------------------------------------------------------------------------- |
| katib-operators                | https://github.com/canonical/katib-operators                |
| -------------------------------------------------------------------------------------------- |
| kubeflow-dashboard-operator    | https://github.com/canonical/kubeflow-dashboard-operator    |
| -------------------------------------------------------------------------------------------- |
| minio-operator                 | https://github.com/canonical/minio-operator                 |
| -------------------------------------------------------------------------------------------- |
| seldon-core-operator           | https://github.com/canonical/seldon-core-operator           |
| -------------------------------------------------------------------------------------------- |
| metacontroller-operator        | https://github.com/canonical/metacontroller-operator        |
| -------------------------------------------------------------------------------------------- |
| argo-operators                 | https://github.com/canonical/argo-operators                 |
| -------------------------------------------------------------------------------------------- |
| notebook-operators             | https://github.com/canonical/notebook-operators             |
| -------------------------------------------------------------------------------------------- |
| kfp-operators                  | https://github.com/canonical/kfp-operators                  |
| -------------------------------------------------------------------------------------------- |
| training-operator              | https://github.com/canonical/training-operator              |
| -------------------------------------------------------------------------------------------- |
| mlflow-operator                | https://github.com/canonical/mlflow-operator                |
| -------------------------------------------------------------------------------------------- |
| kubeflow-profiles-operator     | https://github.com/canonical/kubeflow-profiles-operator     |
| -------------------------------------------------------------------------------------------- |
| istio-operators                | https://github.com/canonical/istio-operators                |
└──────────────────────────────────────────────────────────────────────────────────────────────┘

Repos for which the supplied command raised an error during execution

┌──────────────────────────────────────────────────────────────────────────────────────┐
| Repo name                  | Repo URL                                                |
| kfp-operators              | https://github.com/canonical/kfp-operators              |
| ------------------------------------------------------------------------------------ |
| kubeflow-profiles-operator | https://github.com/canonical/kubeflow-profiles-operator |
└──────────────────────────────────────────────────────────────────────────────────────┘

Repos that showed file changes to their working directory following command execution

┌──────────────────────────────────────────────────────────────────────────────────────────────┐
| Repo name                      | Repo URL                                                    |
| minio-operator                 | https://github.com/canonical/minio-operator                 |
| -------------------------------------------------------------------------------------------- |
| kubeflow-roles-operator        | https://github.com/canonical/kubeflow-roles-operator        |
| -------------------------------------------------------------------------------------------- |
| kubeflow-tensorboards-operator | https://github.com/canonical/kubeflow-tensorboards-operator |
| -------------------------------------------------------------------------------------------- |
| seldon-core-operator           | https://github.com/canonical/seldon-core-operator           |
| -------------------------------------------------------------------------------------------- |
| oidc-gatekeeper-operator       | https://github.com/canonical/oidc-gatekeeper-operator       |
| -------------------------------------------------------------------------------------------- |
| mlmd-operator                  | https://github.com/canonical/mlmd-operator                  |
| -------------------------------------------------------------------------------------------- |
| kubeflow-volumes-operator      | https://github.com/canonical/kubeflow-volumes-operator      |
| -------------------------------------------------------------------------------------------- |
| knative-operators              | https://github.com/canonical/knative-operators              |
| -------------------------------------------------------------------------------------------- |
| argo-operators                 | https://github.com/canonical/argo-operators                 |
| -------------------------------------------------------------------------------------------- |
| metacontroller-operator        | https://github.com/canonical/metacontroller-operator        |
| -------------------------------------------------------------------------------------------- |
| notebook-operators             | https://github.com/canonical/notebook-operators             |
| -------------------------------------------------------------------------------------------- |
| katib-operators                | https://github.com/canonical/katib-operators                |
| -------------------------------------------------------------------------------------------- |
| training-operator              | https://github.com/canonical/training-operator              |
| -------------------------------------------------------------------------------------------- |
| mlflow-operator                | https://github.com/canonical/mlflow-operator                |
| -------------------------------------------------------------------------------------------- |
| istio-operators                | https://github.com/canonical/istio-operators                |
| -------------------------------------------------------------------------------------------- |
| kubeflow-dashboard-operator    | https://github.com/canonical/kubeflow-dashboard-operator    |
└──────────────────────────────────────────────────────────────────────────────────────────────┘

Repos whose local branch was not pushed because the --dry-run flag was set

┌──────────────────────────────────────────────────────────────────────────────────────────────┐
| Repo name                      | Repo URL                                                    |
| minio-operator                 | https://github.com/canonical/minio-operator                 |
| -------------------------------------------------------------------------------------------- |
| kubeflow-roles-operator        | https://github.com/canonical/kubeflow-roles-operator        |
| -------------------------------------------------------------------------------------------- |
| kubeflow-tensorboards-operator | https://github.com/canonical/kubeflow-tensorboards-operator |
| -------------------------------------------------------------------------------------------- |
| oidc-gatekeeper-operator       | https://github.com/canonical/oidc-gatekeeper-operator       |
| -------------------------------------------------------------------------------------------- |
| mlmd-operator                  | https://github.com/canonical/mlmd-operator                  |
| -------------------------------------------------------------------------------------------- |
| seldon-core-operator           | https://github.com/canonical/seldon-core-operator           |
| -------------------------------------------------------------------------------------------- |
| kubeflow-volumes-operator      | https://github.com/canonical/kubeflow-volumes-operator      |
| -------------------------------------------------------------------------------------------- |
| knative-operators              | https://github.com/canonical/knative-operators              |
| -------------------------------------------------------------------------------------------- |
| argo-operators                 | https://github.com/canonical/argo-operators                 |
| -------------------------------------------------------------------------------------------- |
| metacontroller-operator        | https://github.com/canonical/metacontroller-operator        |
| -------------------------------------------------------------------------------------------- |
| notebook-operators             | https://github.com/canonical/notebook-operators             |
| -------------------------------------------------------------------------------------------- |
| katib-operators                | https://github.com/canonical/katib-operators                |
| -------------------------------------------------------------------------------------------- |
| training-operator              | https://github.com/canonical/training-operator              |
| -------------------------------------------------------------------------------------------- |
| mlflow-operator                | https://github.com/canonical/mlflow-operator                |
| -------------------------------------------------------------------------------------------- |
| istio-operators                | https://github.com/canonical/istio-operators                |
| -------------------------------------------------------------------------------------------- |
| kubeflow-dashboard-operator    | https://github.com/canonical/kubeflow-dashboard-operator    |
└──────────────────────────────────────────────────────────────────────────────────────────────┘

Repos whose specified branches did not exist on the remote, and so were first created locally

┌──────────────────────────────────────────────────────────────────────────────────────────────┐
| Repo name                      | Repo URL                                                    |
| kubeflow-tensorboards-operator | https://github.com/canonical/kubeflow-tensorboards-operator |
| -------------------------------------------------------------------------------------------- |
| kubeflow-roles-operator        | https://github.com/canonical/kubeflow-roles-operator        |
| -------------------------------------------------------------------------------------------- |
| oidc-gatekeeper-operator       | https://github.com/canonical/oidc-gatekeeper-operator       |
| -------------------------------------------------------------------------------------------- |
| mlmd-operator                  | https://github.com/canonical/mlmd-operator                  |
| -------------------------------------------------------------------------------------------- |
| knative-operators              | https://github.com/canonical/knative-operators              |
| -------------------------------------------------------------------------------------------- |
| kubeflow-volumes-operator      | https://github.com/canonical/kubeflow-volumes-operator      |
| -------------------------------------------------------------------------------------------- |
| minio-operator                 | https://github.com/canonical/minio-operator                 |
| -------------------------------------------------------------------------------------------- |
| seldon-core-operator           | https://github.com/canonical/seldon-core-operator           |
| -------------------------------------------------------------------------------------------- |
| metacontroller-operator        | https://github.com/canonical/metacontroller-operator        |
| -------------------------------------------------------------------------------------------- |
| argo-operators                 | https://github.com/canonical/argo-operators                 |
| -------------------------------------------------------------------------------------------- |
| katib-operators                | https://github.com/canonical/katib-operators                |
| -------------------------------------------------------------------------------------------- |
| notebook-operators             | https://github.com/canonical/notebook-operators             |
| -------------------------------------------------------------------------------------------- |
| kfp-operators                  | https://github.com/canonical/kfp-operators                  |
| -------------------------------------------------------------------------------------------- |
| training-operator              | https://github.com/canonical/training-operator              |
| -------------------------------------------------------------------------------------------- |
| mlflow-operator                | https://github.com/canonical/mlflow-operator                |
| -------------------------------------------------------------------------------------------- |
| kubeflow-profiles-operator     | https://github.com/canonical/kubeflow-profiles-operator     |
| -------------------------------------------------------------------------------------------- |
| istio-operators                | https://github.com/canonical/istio-operators                |
| -------------------------------------------------------------------------------------------- |
| kubeflow-dashboard-operator    | https://github.com/canonical/kubeflow-dashboard-operator    |
└──────────────────────────────────────────────────────────────────────────────────────────────┘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant