You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@otava.apache.org by "Gerrrr (via GitHub)" <gi...@apache.org> on 2025/12/22 23:08:04 UTC

[I] Move --update- args under their corresponding sections in help output [otava]

Gerrrr opened a new issue, #120:
URL: https://github.com/apache/otava/issues/120

   Today:
   
   ```
   run otava analyze --help
   usage: otava analyze [-h] [--graphite-url GRAPHITE_URL] [--grafana-url GRAFANA_URL]
                        [--grafana-user GRAFANA_USER] [--grafana-password GRAFANA_PASSWORD]
                        [--slack-token SLACK_TOKEN] [--postgres-hostname POSTGRES_HOSTNAME]
                        [--postgres-port POSTGRES_PORT] [--postgres-username POSTGRES_USERNAME]
                        [--postgres-password POSTGRES_PASSWORD]
                        [--postgres-database POSTGRES_DATABASE]
                        [--bigquery-project-id BIGQUERY_PROJECT_ID]
                        [--bigquery-dataset BIGQUERY_DATASET]
                        [--bigquery-credentials BIGQUERY_CREDENTIALS] [--update-grafana]
                        [--update-postgres] [--update-bigquery]
                        [--notify-slack NOTIFY_SLACK [NOTIFY_SLACK ...]] [--cph-report-since DATE]
                        [--output {log,json,regressions_only}] [--branch [STRING]] [--metrics LIST]
                        [--attrs LIST] [--since-commit STRING | --since-version STRING |
                        --since DATE] [--until-commit STRING | --until-version STRING | --until DATE]
                        [--last COUNT] [-P, --p-value PVALUE] [-M MAGNITUDE] [--window WINDOW]
                        [--orig-edivisive ORIG_EDIVISIVE]
                        tests [tests ...]
   
   positional arguments:
     tests                 name of the test or group of the tests
   
   options:
     -h, --help            show this help message and exit
      --update-grafana      Update Grafana dashboards with appropriate annotations of change points
     --update-postgres     Update PostgreSQL database results with change points
     --update-bigquery     Update BigQuery database results with change points
   ...
   Grafana Options:
     Options for Grafana configuration
   
     --grafana-url GRAFANA_URL
                           Grafana server URL [env var: GRAFANA_ADDRESS]
     --grafana-user GRAFANA_USER
                           Grafana server user [env var: GRAFANA_USER]
     --grafana-password GRAFANA_PASSWORD
                           Grafana server password [env var: GRAFANA_PASSWORD]
   ...
   PostgreSQL Options:
     Options for PostgreSQL configuration
   
     --postgres-hostname POSTGRES_HOSTNAME
                           PostgreSQL server hostname [env var: POSTGRES_HOSTNAME]
     --postgres-port POSTGRES_PORT
                           PostgreSQL server port [env var: POSTGRES_PORT]
     --postgres-username POSTGRES_USERNAME
                           PostgreSQL username [env var: POSTGRES_USERNAME]
     --postgres-password POSTGRES_PASSWORD
                           PostgreSQL password [env var: POSTGRES_PASSWORD]
     --postgres-database POSTGRES_DATABASE
                           PostgreSQL database name [env var: POSTGRES_DATABASE]
   ...
   BigQuery Options:
     Options for BigQuery configuration
   
     --bigquery-project-id BIGQUERY_PROJECT_ID
                           BigQuery project ID [env var: BIGQUERY_PROJECT_ID]
     --bigquery-dataset BIGQUERY_DATASET
                           BigQuery dataset [env var: BIGQUERY_DATASET]
     --bigquery-credentials BIGQUERY_CREDENTIALS
                           BigQuery credentials file [env var: BIGQUERY_VAULT_SECRET]
   ...
   ```
   
   
   Instead, the output should look more like:
   
   ```
   Grafana Options:
     Options for Grafana configuration
   
     --grafana-url GRAFANA_URL
                           Grafana server URL [env var: GRAFANA_ADDRESS]
     --grafana-user GRAFANA_USER
                           Grafana server user [env var: GRAFANA_USER]
     --grafana-password GRAFANA_PASSWORD
                           Grafana server password [env var: GRAFANA_PASSWORD]
     --update-grafana      Update Grafana dashboards with appropriate annotations of change points
   ...
   
   PostgreSQL Options:
     Options for PostgreSQL configuration
   
     --postgres-hostname POSTGRES_HOSTNAME
                           PostgreSQL server hostname [env var: POSTGRES_HOSTNAME]
     --postgres-port POSTGRES_PORT
                           PostgreSQL server port [env var: POSTGRES_PORT]
     --postgres-username POSTGRES_USERNAME
                           PostgreSQL username [env var: POSTGRES_USERNAME]
     --postgres-password POSTGRES_PASSWORD
                           PostgreSQL password [env var: POSTGRES_PASSWORD]
     --postgres-database POSTGRES_DATABASE
                           PostgreSQL database name [env var: POSTGRES_DATABASE]
     --update-postgres     Update PostgreSQL database results with change points
   ...
   
   BigQuery Options:
     Options for BigQuery configuration
   
     --bigquery-project-id BIGQUERY_PROJECT_ID
                           BigQuery project ID [env var: BIGQUERY_PROJECT_ID]
     --bigquery-dataset BIGQUERY_DATASET
                           BigQuery dataset [env var: BIGQUERY_DATASET]
     --bigquery-credentials BIGQUERY_CREDENTIALS
                           BigQuery credentials file [env var: BIGQUERY_VAULT_SECRET]
     --update-bigquery     Update BigQuery database results with change points
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@otava.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Move --update- args under their corresponding sections in help output [otava]

Posted by "henrikingo (via GitHub)" <gi...@apache.org>.
henrikingo commented on issue #120:
URL: https://github.com/apache/otava/issues/120#issuecomment-3894263729

   Okay, I accept your answer, but... Does anyone ever need to configure multiple data sources? Note that this is just a command line, batch oriented tool. There's nothing preventing users from running it twice for two different data sources. The only reason you would even need two data sources in the same run would be that we have added support for the multivariate version of e-divisive and you want to use it but couldn't be bothered to put all the input data into one database.?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@otava.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Move --update- args under their corresponding sections in help output [otava]

Posted by "henrikingo (via GitHub)" <gi...@apache.org>.
henrikingo commented on issue #120:
URL: https://github.com/apache/otava/issues/120#issuecomment-3687029320

   Actually, this prompts me to ask, whether some DB related arguments should rather be common?
   
   Wouldn't simplicity dictate that we would rather want to have --user, --password, --update and so on? It's ok if some data backends don't support all of them.
   
   I'm assuming here that nobody needs to connect to more than one data backend per execution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@otava.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Move --update- args under their corresponding sections in help output [otava]

Posted by "Gerrrr (via GitHub)" <gi...@apache.org>.
Gerrrr closed issue #120: Move --update-<importer> args under their corresponding sections in help output
URL: https://github.com/apache/otava/issues/120


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@otava.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Move --update- args under their corresponding sections in help output [otava]

Posted by "Gerrrr (via GitHub)" <gi...@apache.org>.
Gerrrr commented on issue #120:
URL: https://github.com/apache/otava/issues/120#issuecomment-3735787210

   Current config format does not forbid configuring multiple data sources, so I do not see an easy way to just pass `--user` and '--password'. Also, some backends like BigQuery do not have `--user` and `--pasword`; instead they have a dataset and a path to credentials file.
   
   At the same time, I like the idea of replacing `--update-postgres|bigquery|grafana...` with a single `--update` argument, as this flag is used in the context of a currently executing test, which definitely uses a single data source. WDYT?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@otava.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org