-
Notifications
You must be signed in to change notification settings - Fork 148
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
test: Makefile target, CI and documentation for alert unit tests #1355
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR can't be merged just yet 😢Please run For more info: https://github.com/opendatahub-io/opendatahub-operator/actions/runs/11725694941 |
the commit message (not PR description) does not reflect the changes pretty much. |
I was actually squashing commits+cherry pick the squashed commit from my previous PR. I got it wrong a couple of times so I didn't realized the commit message. Sorry! Let me know if there is some way I can fix it ? |
You could use |
@zdtsw @StevenTobin @grdryn I'm copying over the comments from the #366 and updating the changes requested there. |
1eb8d80
to
0e6b8c6
Compare
/retest |
bcc6a96
to
1ab82b2
Compare
@zdtsw I added a couple of comments but in general fine for me. |
thanks! |
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.
/lgtm
I made some changes here, so leaving approval for someone else.
d07a540
to
a207e7b
Compare
Make excels at tracking generated output files from specified input files (it might be the only thing it's good at). By having a convention of naming the generated rule files and their corresponding unit test files based on the file names in the ConfigMap, then we don't need a separate script to track the difference in what the files are called inside and outside the ConfigMap, which would need to be updated each time a new unit test file is added. With this change, as long as you name your unit test file in the appropriate way, and there's a corresponding entry in the ConfigMap, then the rule file should get extracted in the expected way.
ca274b4
to
5145525
Compare
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.
/lgtm
@zdtsw @ykaliuta @StevenTobin If there are no objections, are we good to merge this? |
ok for me |
/approve |
JIRA: RHOAIENG-8519
Description
Adding make targets for testing prometheus unit tests and for checking alerts that doesn't have any unit tests created. Additionally added information to Readme about the same.
How Has This Been Tested?
make test-alerts
make check-unit-tests
Screenshot or short clip
Merge criteria