-
Notifications
You must be signed in to change notification settings - Fork 21
Fix multiple issues discovered via running examples #95
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
Conversation
By default, Otava looks 1 year back. Example data is too old.
This commit fixes behavior removed in #86 - expand all env variables, not just ones matching CLI arguments. There are users relying on this behavior so we should not break it without longer discussion and a major release.
henrikingo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did we not have expandvars? Was that the bug that we accidentally dropped it?
|
My interpretation is that #86 assumed that we only ever want to have env vars that match CLI args, which is not the case. |
|
Some examples still don't work for me (see below) Master branch:
PR-95 (this one):
Release Apache Otava 0.7.0-incubating-rc2 (see https://lists.apache.org/thread/2dr1ccy9yb278wgxy611wz5p2ypqjhnv)
I would suggest implement the same changes for GRAPHITE, GRAPHANA examples as in 0.7.0-incubating-rc2 here. |
|
Update: I figured out that the problem was on my side due to me building the docker container on windows. Git clone replaced line endings symbols with windows-based ones which messed with docker. |
* Fix docker run commands in examples * Bump year in the postgres example data By default, Otava looks 1 year back. Example data is too old. * Expand all env variables and fix PostgreSQL example This commit fixes behavior removed in #86 - expand all env variables, not just ones matching CLI arguments. There are users relying on this behavior so we should not break it without longer discussion and a major release.
* Revert "Fix multiple issues discovered via running examples (#95)" This reverts commit 5276f24. * Revert "Fix config parsing (#91)" This reverts commit 484aaef. * Revert "OTAVA-82: use ConfigArgParse to create Config (#86)" This reverts commit 69d2b97. * Fix docker run commands in examples * Bump year in the postgres example data By default, Otava looks 1 year back. Example data is too old. * Update CLI help description * Add e2e tests covering CSV and PostgreSQL usage * OTAVA-65: Fix --help requiring a config file * Run tests against branch 0.7 * Fixup csv docs
Kudos to @Sowiks who noticed issues with PostgreSQL example during release vote.