Open mustafakemalgilor opened 1 week ago
IDK why the "Test / test (3.8, ubuntu-20.04) (pull_request)" job is failing, all tests are green in my env. I'll re-run them in a py3.8 environment and get to the bottom of it.
@dosaboy fixed CI issues, ready for review. please feel free to ping me should you need to ask anything.
This feature is intended to be used in conjunction with the aliasing feature: https://github.com/canonical/hotsos/pull/929
expression
is a new requirement type that allows users to express a requirement in human-readable, SQL-like syntax. It has proper grammar to allow users to write checks in as easily digestible manner, which will improve the QOL for scenario writers and code reviewers. The grammar is constructed using thepyparsing
library.Example:
The current grammar supports the following constructs:
Also, the following changes have been made:
pyparsing
as a dependency.This patch rewrites some of the scenario checks in the new expression syntax to demonstrate the difference and provide examples.