Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cu-dev] Concurrency 3.0 TCK test failures in ManagedScheduledExecutorDefinitionTests.testScheduleWithCronTrigger
  • From: Nathan Rauh <nathan.rauh@xxxxxxxxxx>
  • Date: Wed, 28 Aug 2024 15:19:41 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=us.ibm.com; dmarc=pass action=none header.from=us.ibm.com; dkim=pass header.d=us.ibm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wipXrVaTb91kwa8bZDmb/7/pfFFHP3Fv3XfbKKbWlr4=; b=uKpchjL2aNYraHi6Ee+e8TVq7gvFZr7bD8IMlSvQAwZVO43LgZxTUniJJXNTG/E5fP7GbmmPP3IyvfX6VRThlZJ6fBzQvcTAIG7wHwyTfwqETVXJPWa1zEYv4c83z9MKbRPKlgdS2H8Z5iT4GdYMxHVEsXvWBWf13+En75P02k6YttpTFKkERGOIG78kbFjm8quR/+NhWKOyWq5X61NqrvzwsfdDqBkLEFOtLaAtfhojlPdJiVVjOChFXiJZGrfo6wMsA6VB6dk07fAPiAvJPeWzt22bztgC1fSPFNC898HZLmqRPsIuPxpDs4HORUrPI2PdGVdmoDkxbD7mVCXn2A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SjhPcmCMJvl8e1wknJglU08pG/Ua0psF1pMIg2pR9E+x+lQ5j5m9avuYqg5NJYz3ivQCBMJ8z93j/xELelvigDtumFTmj9gVad5rcid1wfPtxVgt7mbEZ7M+q9TUpL45vxNuwm4pXJEOlE3LagQsfDJshV+Wb9HD3UEOPDtCaD7Elle7NpyJRuYBkjlXtOnIhmn0am4W8iVw16VqwAlmN+ErHvaByTuetSVONWhEk9i5Le8EHwe6Z5afro3pzPOIftrY8KiQ5ueTmyY0McfOg5k2gtFgID2rPVamFs5TYI0tvSmbSGqDSthcdI0mh5EMWayC8lxKL6Hd5w8DXoPBDg==
  • Delivered-to: cu-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cu-dev/>
  • List-help: <mailto:cu-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cu-dev>, <mailto:cu-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cu-dev>, <mailto:cu-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHa+Vq3kompD48Y+0SuiHt7K1McZbI8xSnv
  • Thread-topic: [EXTERNAL] [cu-dev] Concurrency 3.0 TCK test failures in ManagedScheduledExecutorDefinitionTests.testScheduleWithCronTrigger

In general, I would say that seeing a test fail often is not a valid reason for excluding it.

To exclude a test, there needs to be a reason why something in the test is incorrect or if it is testing something beyond the specification requirements. You might have intended to include that information in your email, but I don’t see it stated anywhere.

 

If I click on the results link, I see a more informative error message that goes with the assertion,

 

[ Response code: 200, Response body: FAILURECaught exception attempting to call test method testScheduleWithCronTrigger on servlet ee.jakarta.tck.concurrent.spec.ManagedScheduledExecutorService.resourcedef.ManagedScheduledExecutorDefinitionServletjava.lang.AssertionError: Must be able to cancel a repeating task after it executes a few times: org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$TriggerControllerFuture@475ae802[Cancelled] expected [true] but found [false]            

 

The test itself looks reasonable to me.  Are you certain that the implementation you are testing does not itself have a bug in sometimes reporting back a wrong result of future.cancel(true) ?

 

 

From: cu-dev <cu-dev-bounces@xxxxxxxxxxx> on behalf of Scott Marlow via cu-dev <cu-dev@xxxxxxxxxxx>
Date: Wednesday, August 28, 2024 at 9:58
AM
To: cu developer discussions <cu-dev@xxxxxxxxxxx>
Cc: Scott Marlow <smarlow@xxxxxxxxxx>
Subject: [EXTERNAL] [cu-dev] Concurrency 3.0 TCK test failures in ManagedScheduledExecutorDefinitionTests.testScheduleWithCronTrigger

From https://ci.eclipse.org/jakartaee-tck/job/10/job/jakarta-concurrency-tck-glassfish/138/consoleText: " [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR]   ManagedScheduledExecutorDefinitionTests>Arquillian.run:138->testScheduleWithCronTrigger:147->TestClient.runTest:52->TestClient.runTest:60->TestClient.assertSuccessfulURLResponse:143->ArquillianTests.assertTrue:108

From https://ci.eclipse.org/jakartaee-tck/job/10/job/jakarta-concurrency-tck-glassfish/138/consoleText:
"
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   ManagedScheduledExecutorDefinitionTests>Arquillian.run:138->testScheduleWithCronTrigger:147->TestClient.runTest:52->TestClient.runTest:60->TestClient.assertSuccessfulURLResponse:143->ArquillianTests.assertTrue:108 Output did not contain successful message: SUCCESS expected [true] but found [false]
[INFO]
[ERROR] Tests run: 148, Failures: 1, Errors: 0, Skipped: 0
"

 

We see this failure with WildFly a lot but it seems intermittent.

 

Should we consider excluding this test for Concurrency 3.0?  If yes, it shouldn't be hard to open a TCK challenge for this test.

 

Scott


Back to the top