[ 
https://issues.apache.org/jira/browse/GROOVY-12060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18085653#comment-18085653
 ] 

ASF GitHub Bot commented on GROOVY-12060:
-----------------------------------------

testlens-app[bot] commented on PR #2586:
URL: https://github.com/apache/groovy/pull/2586#issuecomment-4608346808

   ## 🚨 TestLens detected 2 failed tests 🚨
   
   Here is what you can do:
   
   1) Inspect the test failures carefully.
   2) If you are convinced that some of the tests are flaky, you can mute them 
below.
   3) Finally, trigger a rerun by checking the rerun checkbox.
   
   ### Test Summary
   
   | Check | Project/Task | Test | Runs |
   |---|---|---|---|
   | [Build and test / lts \(17, 
macos-latest\)](https://github.com/apache/groovy/actions/runs/26857951653/job/79205001325?pr=2586)
 | :test | ActorTest > testScheduleAtFixedRateCancelStopsFurtherFires\(\) | ❌ |
   | [Build and test / lts \(17, 
macos-latest\)](https://github.com/apache/groovy/actions/runs/26857951653/job/79205001325?pr=2586)
 | :test | ActorTest > testStopCancelsOutstandingTimers\(\) | ❌ |
   
   🏷️ Commit: cdab371a0cdd2d6b0eff94740ef7fae38a55edc9
   ▶️ Tests:  6627 executed
   🟡 Checks: 16/28 completed
   
   ### Test Failures
   
   <details>
   
   <summary><strong>ActorTest > 
testScheduleAtFixedRateCancelStopsFurtherFires()</strong> (:test in <a 
href="https://github.com/apache/groovy/actions/runs/26857951653/job/79205001325?pr=2586";>Build
 and test / lts (17, macos-latest)</a>)</summary>
   
   ```
   java.lang.AssertionError: expected 2 or 3 ticks (got 4). Expression: (n in 
[2, 3]). Values: n = 4
        at 
org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:402)
        at TestScript20.run(TestScript20.groovy:28)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:553)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:588)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:572)
        at groovy.test.GroovyAssert.assertScript(GroovyAssert.java:106)
        at groovy.test.GroovyAssert.assertScript(GroovyAssert.java:96)
        at 
groovy.concurrent.ActorTest.testScheduleAtFixedRateCancelStopsFurtherFires(ActorTest.groovy:1372)
   ```
   
   </details>
   <details>
   
   <summary><strong>ActorTest > testStopCancelsOutstandingTimers()</strong> 
(:test in <a 
href="https://github.com/apache/groovy/actions/runs/26857951653/job/79205001325?pr=2586";>Build
 and test / lts (17, macos-latest)</a>)</summary>
   
   ```
   java.lang.AssertionError: ticks fired after stop (3 extra). Expression: 
(ticks.get() == before). Values: before = 3
        at 
org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:402)
        at TestScript22.run(TestScript22.groovy:23)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:553)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:588)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:572)
        at groovy.test.GroovyAssert.assertScript(GroovyAssert.java:106)
        at groovy.test.GroovyAssert.assertScript(GroovyAssert.java:96)
        at 
groovy.concurrent.ActorTest.testStopCancelsOutstandingTimers(ActorTest.groovy:1405)
   ```
   
   </details>
   
   ### Muted Tests
   > [!NOTE]
   > Checks are currently running using the configuration below.
   
   Select tests to mute in this pull request:
   
   🔲 ActorTest > testScheduleAtFixedRateCancelStopsFurtherFires\(\) <!

> groovy-contracts could support @Decreases at the method level
> -------------------------------------------------------------
>
>                 Key: GROOVY-12060
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12060
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>
> Essentially this would mean it can act as a call-stack/recursion measure for 
> termination.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to