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
Add openshift-tekton-resources integration #1892
Conversation
1b0dcdb
to
b8c1a31
Compare
|
b8c1a31
to
2d67a88
Compare
Nothing major stands out, but can we add some unit tests? The one thing that will get in your way is the fetching of settings in |
do you mean more tests apart to those that are in My main worry here is how the dependency with openshift_resources_base.py is not tested. If I'm honest I don't have yet an idea on how to test that module, but it is in my personal roadmap. Since it is used by a few integrations, it makes sense to add them but I think it is a bit out of the scope of this particular MR. I can create a JIRA to track it. |
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.
Sorry, I had forgotten to press "submit" on my comments. :|
While We could use some unit tests around If you open a ticket for that I'm satisfied. |
as discussed, perhaps it would be more consistent to use openshift_base instead of openshift_resources_base (which is for integrations getting their data from the |
I'll get back to https://gitlab.cee.redhat.com/service/app-interface/-/merge_requests/26409 |
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.
You've addressed all comments except for a trivial one around type hints. Approving to unblock you ASAP.
Thx @Piojo. This went back to development due to #1892 (comment) (whenever I have time for it) |
19f436e
to
ea5a910
Compare
@maorfr This is ready for a preliminary review. Style wise things to fix are:
Related schema changes in: app-sre/qontract-schemas#9 |
58c3f4f
to
7eac1c3
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.
Can we have some unit tests at least for the auxiliary methods in the openshift_tekton_resources
integration?
56cdbfb
to
aad5bfe
Compare
Thx for the review, @Piojo . It was still marked as WIP as tests are missing. I will add them. |
1001f6a
to
aeb28ab
Compare
Tests added, this is ready for review now. |
db3e15f
to
b72821f
Compare
conflicts resolved |
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
eb7b4e0
to
ff63766
Compare
Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
ff63766
to
613b835
Compare
We have divided the work for openshift-tekton-resources in two parts: 1) The new integration in app-sre#1892 2) The saasherder bits here. They include logic to make sure that names for the resources created by the new integration are correctly referenced from openshift-saas-deploy integrations and dealing with a race condition on the new objects not yet existing (a recently created saas file). This is part of APPSRE-3389 Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
We have divided the work for openshift-tekton-resources in two parts: 1) The new integration in #1892 2) The saasherder bits here. They include logic to make sure that names for the resources created by the new integration are correctly referenced from openshift-saas-deploy integrations and dealing with a race condition on the new objects not yet existing (a recently created saas file). This is part of APPSRE-3389 Signed-off-by: Rafa Porres Molina <rporresm@redhat.com>
https://issues.redhat.com/browse/APPSRE-3389
Design doc: https://gitlab.cee.redhat.com/service/app-interface/-/blob/master/docs/app-sre/design-docs/openshift-tekton-resources-integration.md
This work has been split in two
We will first merge this one, verify that everything goes well and then merge the other.
Related schema changes
See app-sre/qontract-schemas#9
Current testing includes:
Current testing does not include
Request and limits defaults
The variability is always in the openshift-saas-deploy step task. The rest consume a very low amount of resources. A minimum of 20Mb of memory has been assigned to avoid pod creation issues.
I have gathered a fair amount of openshift-saas-deploy metric pods examples that have been used to generate defaults. The outliers will need to be configured at a saas file level. Find examples in the related JIRA issue
Method documentation
Since the new integration uses type hints, I haven't added parameter related documentation of the methods. Let me know if that's a problem and I will add it.
Signed-off-by: Rafa Porres Molina rporresm@redhat.com
EDIT: Split PR in two.