-
Notifications
You must be signed in to change notification settings - Fork 440
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
[chore] Change the E2E automation to run the tests in OpenShift #1254
[chore] Change the E2E automation to run the tests in OpenShift #1254
Conversation
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
eda82ed
to
72af183
Compare
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…or into run-tests-openshift
…or into run-tests-openshift
I'm not able to reproduce the error in the |
@iblancasa as part of this PR #1233 I just added a change 1213f7b to skip that test as it was failing frequently for me |
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
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…try-operator into run-tests-openshift
…or into run-tests-openshift
…try-operator into run-tests-openshift
…or into run-tests-openshift
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…or into run-tests-openshift
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
hack/ensure-collector-deployment.go
Outdated
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package main |
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.
I am not a big fan to see this written in golang.
Did you use golang because of te poll?
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.
I had two options: Golang or shell. Shell will be more difficult to understand/maintain. Also, stuff like the poll
mechanism is implemented in the libraries we use: with bash I would have to implement it.
hack/ensure-collector-deployment.go
Outdated
fmt.Println("Wait until the creation of OTEL Collectors is available") | ||
pollInterval := 3 * time.Second | ||
timeoutPoll := time.Duration(timeout) * time.Second | ||
err = wait.Poll(pollInterval, timeoutPoll, func() (done bool, err error) { |
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.
why the poll is used to apply the install manifest? Why does the installation fail? Is it because the webhook or the CRD is not recognized in the cluster?
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.
Because the error I pointed in #1254 (comment). As I pointed in previous comments: I don't know how to solve it without adding sleep
statements or trying to create a resource until the creation doesn't fail. If you know a better way to do it, please, give me a hint.
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…or into run-tests-openshift
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…-telemetry#1254) * Run the E2E tests in OpenShift Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Set version for GitHub Actions workflow Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix CI Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Apply some changes to simplify the upgrade E2E test Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix CI Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix CI Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Install OpenShift routes only if needed Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Trigger Build Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Remove cert-manager installation from deployment step Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Trigger Build Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Ensure the webhook don't fail when kubectl apply Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix coding standard issues Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix coding standard issues Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Increase timeout for golangci Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Apply changes requested in CR Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Change timeout to 500ms Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Change program file name Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Do the check without depending on a manifest file Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Change program file name Signed-off-by: Israel Blancas <iblancasa@gmail.com> Signed-off-by: Israel Blancas <iblancasa@gmail.com>
This PRs adds some changes to the E2E automation in order to allow the usage of Kubernetes clusters not created with
kind
. It also allows the usage of OpenShift.