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
Context (former Relevancy) implementation #83
Conversation
Some examples from other fields, like versions from poetry (but it is related to packaging): https://python-poetry.org/docs/versions/ Not applicable fully, but something could apply also to our use cases |
library for parsing semver is here, but not sure if helps us :) https://github.com/python-poetry/semver |
This pull request introduces 3 alerts when merging 34b828b into 6570aa5 - view on LGTM.com new alerts:
|
Pull Request Test Coverage Report for Build 411
💛 - Coveralls |
@lukaszachy nice code man 👍 |
@thrix thank you ;) and also for semver hint - I'll try to use it. My plan for next days is to have 100% coverage and do docstrings + documentation. After that I'll squash commits and resolve WIP |
Thanks for implementing this, @lukaszachy. I haven't reviewed the whole code but gave it a bit of testing and it works as expected. I was thinking a bit about the name and would like to propose
As we want to use not only environment dimensions but also things like And second naming proposal: We were not sure about the summary: Just a simple smoke test
test: tmt --help
enabled: true
adjust:
enable: false
when: distro = centos What do you think? |
It seems that the following two unit tests fail:
|
Worked on my system, I'll look at those flaky tests and will rename class |
Thanks. A couple of Python 2 compatiblity issues fixed in b703ce0. Feel free to squash them as well. |
Squashed previous commits, fixed tests. If tests pass then I'll rename the class and will ask for review. |
Todo
|
Mostly style adjustments plus fixed several typos. Slightly updated the Context example section. Added and enabled a new 'Context' page in docs.
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.
Thanks much for putting this together, @lukaszachy. That must have been a great patience and endurance exercise! Added a few comment and questions. Going to push a bunch of style adjustments in a separate commit as agreed.
I expect a lot of changes for documentation, so it is in it's own PR: #86 From code/working PoV this PR is ready. |
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.
Looks good. Thanks for the adjustments. Just two typos.
Operator changes: defined -> is defined !defined -> is not defined && -> and || -> or
Thanks, merged. |
Let's start with examples for rules