-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Scripts: Add quickstart script for alert generator compliance test #5441
Conversation
Signed-off-by: Matej Gera <[email protected]>
Signed-off-by: Matej Gera <[email protected]>
Signed-off-by: Matej Gera <[email protected]>
Signed-off-by: Matej Gera <[email protected]>
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! Awesome work! 🌟
Signed-off-by: Matej Gera <[email protected]>
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.
cool! ❇️
I tested the script locally and it seems to work fine :)
left a small suggestion
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, awesome work 🎉
I think last thing would be to fix the commit sign off
Co-authored-by: Jéssica Lins <[email protected]> Signed-off-by: Matej Gera <[email protected]>
Signed-off-by: Matej Gera <[email protected]>
05309df
to
feb069a
Compare
Hm, I would like to challenge this a little bit. I used the e2e on purpose, so it's actually more reliable for us to run, so maintain, and perhaps run nightly someday. Going through your arguments:
I think passing just the example config we autogenerate is good enough. Many of those solutions are managed services, so you can't easily provide scripts anyway. See:
Right, but who is a user. Is there a requirement for any user to run compliance on Thanos? The user to me is just Thanos maintainers responsible for it, so we can apply our processes. Plus you can experiment with e2e too - perhaps we need better documentation on how to do it (add
They still do - how else they build thanos binary, we use in this script? To sum upI don't strictly oppose here (: Looks like team is happy here - but I just don't see why we would need to maintain the configuration of the extra script in different way we test other things. Alternatives:
|
@bwplotka those are good counterarguments (I also do not want to push this change at all costs, as it is extra stuff to maintain, but still thought it would be a nice suggestion). To give more context how I was thinking about this:
I think I look at the compliance to be more for users to be able to transparently verify we comply with the official specification, more than for developers (but who also need it if they make relevant change). It's kind of a 'certification' to me and often it's good to provide an easy way to verify that the certification is valid for anyone who wants to challenge it.
I was thinking about that as well, and we could try if the compliance suite maintainers are fine with it, it's just quiet a few lines so it seemed liked it would be better if it's separate script. But we could try this alternative as well.
That would be fine as well, although users would still need to clone the repo, have Go etc. (point I addressed above, but maybe it's not that strong of a hurdle). |
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.
Don't want to block this, it's not a big harm in having the extra script, just it might get obsolete pretty soon.
I don't think we have a strong enough agreement on this, I don't want to introduce something that might not be really needed / might become obsolete fast. I'd rather close this and if we decide to introduce the script, whether here or in the compliance repo, we can reuse this PR 👍. |
Signed-off-by: Matej Gera [email protected]
Changes
We have recently introduced the alert generator compliance test via E2E (see #5315). While this is useful for being able to run the test as part of our E2E suite, I want to propose also adding a separate script to spin up all components for the test run. Couple of reasons why:
Verification
Tested the alert generator compliance suite with the script on my local machine.