Intersmash / intersmash

Intersmash - Cloud-native testing with Java!
Apache License 2.0
5 stars 13 forks source link

[issue 190] - Fix InfinispanOperatorProvisionerTest in order not to use .spec.service.type=cache and .spec.autoscale #191

Closed fabiobrz closed 2 months ago

fabiobrz commented 2 months ago

Description

Removing a test which specifically sets .spec.service.type=cache and changing another one in order to set .spec.service.type=datagrid

Fixes #190

Type of change

Checklist

fabiobrz commented 2 months ago

/test

fabiobrz commented 2 months ago

/test

fabiobrz commented 2 months ago

Intersmash PR CI check results

Hi @fabiobrz, this comment is meant to report the outcome of Intersmash integration tests, which were triggered by @fabiobrz comment, see https://github.com/Intersmash/intersmash/pull/191#issuecomment-2322844527.

CI checks job <continuous-testing-umb-listener-for-intersmash-pr-checks#80> FAILED:

fabiobrz commented 2 months ago

Intersmash PR CI check results

Hi @fabiobrz, this comment is meant to report the outcome of Intersmash integration tests, which were triggered by @fabiobrz comment, see #191 (comment).

CI checks job <continuous-testing-umb-listener-for-intersmash-pr-checks#80> FAILED:

* Intersmash integration tests job <_eap-8.x-intersmash-integration-tests-community#34_> reported failures.
  Please verify your changes locally or reach out to maintainers in order to investigate the issues.

<eap-8.x-intersmash-integration-tests-community#34> reported 1 failure, i.e.:

  • org.jboss.intersmash.testsuite.provision.openshift.KafkaOperatorProvisionerTest.basicProvisioningTest which is confirmed as an issue by the following run <eap-8.x-intersmash-integration-tests-community#34>. Tis is unrelated to the changes in this PR, and tracked separately by #193 :white_check_mark:

    • Intersmash integration tests job <eap-8.x-intersmash-integration-tests-products-jboss-eap#46> reported failures. Please verify your changes locally or reach out to maintainers in order to investigate the issues. <eap-8.x-intersmash-integration-tests-products-jboss-eap#46> reported 1 failure, i.e.:
  • org.jboss.intersmash.testsuite.provision.auto.AutoProvisioningTests.testAppIsLive which is intermittent as fixed in <eap-8.x-intersmash-integration-tests-products-jboss-eap#46> :white_check_mark:

    • Intersmash integration tests job <eap-8.x-intersmash-integration-tests-products-jboss-eap-xp#50> reported failures. Please verify your changes locally or reach out to maintainers in order to investigate the issues. <eap-8.x-intersmash-integration-tests-products-jboss-eap-xp#50> Reported 2 failures, i.e.:
  • org.jboss.intersmash.testsuite.provision.openshift.InfinispanOperatorProvisionerTest.testMinimalTwoReplicasInfinispan
  • org.jboss.intersmash.testsuite.provision.openshift.ProvisionerCleanupTestCase.testProvisioningWorkflowCleanup(OpenShiftProvisioner)[1] Both are intermittent as the latter was fixed in <eap-8.x-intersmash-integration-tests-products-jboss-eap-xp#52> and the former in <eap-8.x-intersmash-integration-tests-products-jboss-eap-xp#52> :white_check_mark:

Based on the above findings, the changes in the PR are deemed to pass the integration tests and can now be reviewed.

marekkopecky commented 2 months ago

Removing a test which specifically sets .spec.service.type=cache and changing another one in order to set .spec.service.type=datagrid

It seems that this PR doesn't chage any test in order to set .spec.service.type=datagrid. It seems that this PR just removes two tests. Can you please double-check this?

Do you have some tracker for the last part of https://github.com/Intersmash/intersmash/issues/190 ?

Another issue should then track the effort to update the Intersmash provisioning tooling for Infinispan provisioning to the latest version, and check whether this would work with against product bits.

Generally I'm not sure whether this is upstream related only, or whether this is related with product as well.

fabiobrz commented 2 months ago

Removing a test which specifically sets .spec.service.type=cache and changing another one in order to set .spec.service.type=datagrid

It seems that this PR doesn't chage any test in order to set .spec.service.type=datagrid. It seems that this PR just removes two tests. Can you please double-check this?

Correct @marekkopecky - testMinimalTwoReplicasCacheServiceInfinispan is removed because it duplicates testMinimalTwoReplicasInfinispan, with the only difference that it uses a .spec.service.type=cache, which is no longer supported in latest Infinispan, see https://infinispan.org/docs/infinispan-operator/main/operator.html#services_services Then, once that was removed I stumbled upon a different failure, mentioning .spec.autoscale being no longer supported by the operator, so I had to remove the testMinimalCacheServiceInfinispanWithAutoscale test too. Sadly, it seem they didn't document the deprecation. The only note is here:

Do you have some tracker for the last part of #190 ?

Thanks, just logged: https://github.com/Intersmash/intersmash/issues/195

Another issue should then track the effort to update the Intersmash provisioning tooling for Infinispan provisioning to the latest version, and check whether this would work with against product bits.

Generally I'm not sure whether this is upstream related only, or whether this is related with product as well.

Not yet related with productized version, tests that use .spec.service.type=cache are still passing with the latest Red Hat Data Grid Operator version (8.5.2), which installs Red Hat Data Grid Server 8.5.0.GA, i.e. .spec.service.type=cache is still supported. But this doesn't change a thing, as users can still leverage the spec, since CRDs still allow to do so. We need to remove the test, though, since Intersmash is following a comunity-first approach.

marekkopecky commented 2 months ago

@fabiobrz Thank you for the explanation! Based on it, MR LGTM. Merging.