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

Reporting plugin not working when using 1.0.0rc1 #18

Open
AzMadu opened this issue Dec 6, 2018 · 3 comments
Open

Reporting plugin not working when using 1.0.0rc1 #18

AzMadu opened this issue Dec 6, 2018 · 3 comments

Comments

@AzMadu
Copy link

AzMadu commented Dec 6, 2018

docker run --user id -u -v pwd:/tmp/result -it chaostoolkit/reporting -- report --export-format=html5 journal.json journal2.json report.html
[2018-12-06 16:26:25 WARNING]
There is a new version (1.0.0rc1) of the chaostoolkit available.
You may upgrade by typing:

$ pip install -U chaostoolkit

Please review changes at https://github.com/chaostoolkit/chaostoolkit/blob/master/CHANGELOG.md

Traceback (most recent call last):
File "/usr/local/bin/chaos", line 11, in
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/chaosreport/cli.py", line 31, in report
reports.append(generate_report(journal, export_format))
File "/usr/local/lib/python3.6/site-packages/chaosreport/init.py", line 236, in generate_report
template = get_report_template(journal["chaoslib-version"])
File "/usr/local/lib/python3.6/site-packages/chaosreport/init.py", line 296, in get_report_template
**vinfo._asdict()))):
File "/usr/local/lib/python3.6/site-packages/semver.py", line 329, in match
cmp_res = compare(version, match_version)
File "/usr/local/lib/python3.6/site-packages/semver.py", line 282, in compare
v1, v2 = parse(ver1), parse(ver2)
File "/usr/local/lib/python3.6/site-packages/semver.py", line 65, in parse
raise ValueError('%s is not valid SemVer string' % version)
ValueError: 1.0.0rc1 is not valid SemVer string

@AzMadu
Copy link
Author

AzMadu commented Dec 6, 2018

Inside my journal2.json file is the following:

"chaoslib-version": "1.0.0rc1"

@Lawouach
Copy link
Contributor

Lawouach commented Dec 6, 2018

Fixed in 0.12.0 actually but I forgot to upload the new docker image. It isn't built automatically for some reason I can't recall. I'll push it.

Then, if that works, please close this issue :)

@Lawouach
Copy link
Contributor

Lawouach commented Dec 6, 2018

Image 0.12.0 pushed https://hub.docker.com/r/chaostoolkit/reporting/tags/

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

No branches or pull requests

2 participants