Honor config-file options before CLI subcommands (#201) Running `otava --config-file config.yaml list-tests` selects the file in the root parser, but the subcommand's default config_file=None overwrites that selection. Otava then warns that no configuration was specified and lists no tests. Duplicated service-option defaults and environment bindings can likewise overwrite values already parsed before the command. The fix is to treat shared subcommand options as explicit CLI overrides: suppress their defaults and disable their environment bindings. The root parser handles shared configuration sources once, while both config-file positions and OTAVA_CONFIG remain supported. Subcommand-specific environment variables, such as BRANCH for analyze, retain their normal behavior.
Apache Otava (incubating) performs statistical analysis of performance test results stored in CSV files, PostgreSQL, BigQuery, InfluxDB 3, or Graphite database. It finds change-points and notifies about possible performance regressions.
A typical use-case of otava is as follows:
Otava is capable of finding even small, but persistent shifts in metric values, despite noise in data. It adapts automatically to the level of noise in data and tries to notify only about persistent, statistically significant changes, be it in the system under test or in the environment.
Unlike in threshold-based performance monitoring systems, there is no need to setup fixed warning threshold levels manually for each recorded metric. The level of accepted probability of false-positives, as well as the minimal accepted magnitude of changes are tunable. Otava is also capable of comparing the level of performance recorded in two different git histories. This can be used for example to validate a feature branch against the main branch, perhaps integrated with a pull request.
See the documentation in https://otava.apache.org/docs/overview/.
The default package includes the Otava library and CLI, with support for CSV, JSON, and Graphite data:
pip install apache-otava
Install extras for additional integrations. Extras can be combined, or install all to enable every integration:
pip install 'apache-otava[bigquery]' pip install 'apache-otava[postgres,slack]' pip install 'apache-otava[all]'
See the installation guide for the complete list of extras.
Apache Otava is tested against Python 3.10, 3.11, 3.12, 3.13, and 3.14.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.