Skip to content
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

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

Conversation

fabiobrz
Copy link
Member

@fabiobrz fabiobrz commented Aug 30, 2024

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

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • Pull Request contains a description of the changes
  • Pull Request does not include fixes for multiple issues/topics
  • Code is self-descriptive and/or documented
  • I have implemented unit tests to cover my changes
  • I tested my code in OpenShift

@fabiobrz
Copy link
Member Author

/test

…se .spec.service.type=cache and .spec.autoscale, which are no longer supported
@fabiobrz fabiobrz force-pushed the issue-190.infinispan-op-no-cache-service branch from 4f419ea to da20467 Compare August 31, 2024 09:39
@fabiobrz fabiobrz changed the title [issue 190] - Fix InfinispanOperatorProvisionerTest in order not to use .spec.service.type=cache [issue 190] - Fix InfinispanOperatorProvisionerTest in order not to use .spec.service.type=cache and .spec.autoscale Aug 31, 2024
@fabiobrz
Copy link
Member Author

/test

@fabiobrz
Copy link
Member Author

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.

  • 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.

  • 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.

@fabiobrz
Copy link
Member Author

fabiobrz commented Sep 1, 2024

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.:

* 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> ✅
* 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> ✅

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

@marekkopecky
Copy link
Collaborator

marekkopecky commented Sep 2, 2024

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 #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
Copy link
Member Author

fabiobrz commented Sep 2, 2024

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:

[ERROR] org.jboss.intersmash.testsuite.provision.openshift.InfinispanOperatorProvisionerTest.testMinimalCacheServiceInfinispanWithAutoscale  Time elapsed: 30.861 s  <<< ERROR!
...
admission webhook "vinfinispan.kb.io" denied the request: Infinispan.infinispan.org "example-infinispan" is invalid: spec.autoscale: Forbidden: Autoscale is no longer supported. Please remove spec.autoscale field.. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.autoscale, message=Forbidden: Autoscale is no longer supported. Please remove spec.autoscale field., reason=FieldValueForbidden, additionalProperties={})], group=infinispan.org, kind=Infinispan, name=example-infinispan, retryAfterSeconds=null,
 ...        
        at org.jboss.intersmash.testsuite.provision.openshift.InfinispanOperatorProvisionerTest.createAndVerifyInfinispan(InfinispanOperatorProvisionerTest.java:243)
        at org.jboss.intersmash.testsuite.provision.openshift.InfinispanOperatorProvisionerTest.verifyMinimalCacheServiceInfinispanWithAutoscale(InfinispanOperatorProvisionerTest.java:399)
        at org.jboss.intersmash.testsuite.provision.openshift.InfinispanOperatorProvisionerTest.testMinimalCacheServiceInfinispanWithAutoscale(InfinispanOperatorProvisionerTest.java:389)
...

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

Thanks, just logged: #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
Copy link
Collaborator

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

@marekkopecky marekkopecky merged commit 9b66020 into Intersmash:main Sep 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some InfinispanOperatorProvisionerTest tests fail when run with community settings
2 participants