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

Programming exercises: Calculate submission time difference with server time #10123

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Add mock for tests

6708a73
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Programming exercises: Calculate submission time difference with server time #10123

Add mock for tests
6708a73
Select commit
Loading
Failed to load commit list.
GitHub Actions / H2 Tests failed Jan 10, 2025 in 0s

8284 passed, 4 failed and 1 skipped

Tests failed
Report exceeded GitHub limit of 65535 bytes and has been trimmed

Annotations

Check failure on line 121 in src/test/java/de/tum/cit/aet/artemis/assessment/ResultListenerIntegrationTest.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.assessment.ResultListenerIntegrationTest ► updateExercisePoints_ShouldUpdatePointsInParticipantScores(boolean) [2] isTeamTest=false

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.assessment.ResultListenerIntegrationTest.xml
Error:
  org.opentest4j.AssertionFailedError: 
Raw output
org.opentest4j.AssertionFailedError: 
expected: 200.0
 but was: 20.0
	at app//de.tum.cit.aet.artemis.assessment.ResultListenerIntegrationTest.updateExercisePoints_ShouldUpdatePointsInParticipantScores(ResultListenerIntegrationTest.java:121)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at [email protected]/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at [email protected]/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at [email protected]/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at [email protected]/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at [email protected]/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at [email protected]/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at [email protected]/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at [email protected]/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at [email protected]/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at [email protected]/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at [email protected]/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at [email protected]/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at [email protected]/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at [email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at [email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at [email protected]/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at [email protected]/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at [email protected]/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Check failure on line 725 in src/test/java/de/tum/cit/aet/artemis/communication/MessageIntegrationTest.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.communication.MessageIntegrationTest ► testDecreaseUnreadMessageCountWhenDeletingMessage()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.communication.MessageIntegrationTest.xml
Error:
  org.opentest4j.AssertionFailedError: 
Raw output
org.opentest4j.AssertionFailedError: 
expected: 0L
 but was: 1L
	at app//de.tum.cit.aet.artemis.communication.MessageIntegrationTest.lambda$testDecreaseUnreadMessageCountWhenDeletingMessage$28(MessageIntegrationTest.java:725)
	at app//org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:53)
	at app//org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
	at app//org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
	at [email protected]/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at [email protected]/java.lang.Thread.run(Thread.java:1583)

Check failure on line 211 in src/main/java/de/tum/cit/aet/artemis/iris/service/session/IrisExerciseChatSessionService.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.iris.PyrisEventSystemIntegrationTest ► testShouldNotFireProgressStalledEventWithIncreasingScores()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.iris.PyrisEventSystemIntegrationTest.xml
Error:
  org.mockito.exceptions.verification.NeverWantedButInvoked: 
Raw output
org.mockito.exceptions.verification.NeverWantedButInvoked: 
irisExerciseChatSessionService.onNewResult(
    <any de.tum.cit.aet.artemis.assessment.domain.Result>
);
Never wanted here:
-> at de.tum.cit.aet.artemis.iris.service.session.IrisExerciseChatSessionService.onNewResult(IrisExerciseChatSessionService.java:211)
But invoked here:
-> at de.tum.cit.aet.artemis.iris.service.pyris.event.NewResultEvent.handleEvent(NewResultEvent.java:30) with arguments: [Result{id161, completionDate=2025-01-10T03:37:32.741705773Z[Etc/UTC], successful=false, score=40.0, rated=true, assessmentType=AUTOMATIC, hasComplaint=null, testCaseCount=0, passedTestCaseCount=0, codeIssueCount=0}]

	at app//de.tum.cit.aet.artemis.iris.service.session.IrisExerciseChatSessionService.onNewResult(IrisExerciseChatSessionService.java:211)
	at app//de.tum.cit.aet.artemis.iris.PyrisEventSystemIntegrationTest.testShouldNotFireProgressStalledEventWithIncreasingScores(PyrisEventSystemIntegrationTest.java:317)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at [email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at [email protected]/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at [email protected]/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at [email protected]/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Check failure on line 211 in src/main/java/de/tum/cit/aet/artemis/iris/service/session/IrisExerciseChatSessionService.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.iris.PyrisEventSystemIntegrationTest ► testShouldNotFireProgressStalledEventWithLessThanThreeSubmissions()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.iris.PyrisEventSystemIntegrationTest.xml
Error:
  org.mockito.exceptions.verification.NeverWantedButInvoked: 
Raw output
org.mockito.exceptions.verification.NeverWantedButInvoked: 
irisExerciseChatSessionService.onNewResult(
    <any de.tum.cit.aet.artemis.assessment.domain.Result>
);
Never wanted here:
-> at de.tum.cit.aet.artemis.iris.service.session.IrisExerciseChatSessionService.onNewResult(IrisExerciseChatSessionService.java:211)
But invoked here:
-> at de.tum.cit.aet.artemis.iris.service.pyris.event.NewResultEvent.handleEvent(NewResultEvent.java:30) with arguments: [Result{id181, completionDate=2025-01-10T03:37:35.800288271Z[Etc/UTC], successful=false, score=20.0, rated=true, assessmentType=AUTOMATIC, hasComplaint=null, testCaseCount=0, passedTestCaseCount=0, codeIssueCount=0}]

	at app//de.tum.cit.aet.artemis.iris.service.session.IrisExerciseChatSessionService.onNewResult(IrisExerciseChatSessionService.java:211)
	at app//de.tum.cit.aet.artemis.iris.PyrisEventSystemIntegrationTest.testShouldNotFireProgressStalledEventWithLessThanThreeSubmissions(PyrisEventSystemIntegrationTest.java:302)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at [email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at [email protected]/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at [email protected]/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at [email protected]/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)