Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uppromtool unittests fail with rate() & time() #4817
Comments
This comment has been minimized.
This comment has been minimized.
johannesfrey
commented
Nov 5, 2018
|
Just to verify that
So the initial values seem to be wrong, in order to trigger the alert. |
simonpasquier
added
component/promtool
kind/more-info-needed
labels
Nov 9, 2018
This comment has been minimized.
This comment has been minimized.
|
What kind of information is needed? |
This comment has been minimized.
This comment has been minimized.
|
@simonpasquier I retested it with promtool 2.7.2. The first test (ThanosCompactBucketOperationsFailed) now works. The second one for the Alert ThanosCompactNotRunIn24Hours still doesn't work. I'm not sure what more information you need? I expected the the time() function to resolve to some value during the unit test and then the rule should lead to an alert and a successful test. |
This comment has been minimized.
This comment has been minimized.
|
I will take a look at it in the coming few days, not sure how I missed it. |
sbueringer commentedNov 2, 2018
•
edited
Bug Report
What did you do?
I executed promtool in a dir with the following 2 files:
github.rules
github.rules.test.yaml
What did you expect to see?
I expected the unit test to succeed.
What did you see instead? Under which circumstances?
The unit test failed.
Environment
Linux Fedora with promtool 2.5.0-rc2