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

Development: Migrate FAQ feature to new client guidelines #9902

Merged
merged 5 commits into from
Dec 10, 2024

Merge branch 'develop' into chore/communication/faq/migrate-client-to…

11bd262
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Development: Migrate FAQ feature to new client guidelines #9902

Merge branch 'develop' into chore/communication/faq/migrate-client-to…
11bd262
Select commit
Loading
Failed to load commit list.
GitHub Actions / H2 Tests failed Dec 9, 2024 in 0s

8504 passed, 2 failed and 1 skipped

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

Annotations

Check failure on line 478 in src/test/java/de/tum/cit/aet/artemis/core/connector/GitlabRequestMockProvider.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest ► testGradedFinalExamSummaryWithPlagiarismAndNotParticipatedBonusExamAsStudent()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.xml
Error:
  org.mockito.exceptions.misusing.UnfinishedStubbingException: 
Raw output
org.mockito.exceptions.misusing.UnfinishedStubbingException: 
Unfinished stubbing detected here:
-> at de.tum.cit.aet.artemis.core.connector.GitlabRequestMockProvider.mockUserExists(GitlabRequestMockProvider.java:478)

E.g. thenReturn() may be missing.
Examples of correct stubbing:
    when(mock.isOk()).thenReturn(true);
    when(mock.isOk()).thenThrow(exception);
    doThrow(exception).when(mock).someVoidMethod();
Hints:
 1. missing thenReturn()
 2. you are trying to stub a final method, which is not supported
 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed

	at app//org.gitlab4j.api.UserApi.getUser(UserApi.java:348)
	at app//de.tum.cit.aet.artemis.core.connector.GitlabRequestMockProvider.mockUserExists(GitlabRequestMockProvider.java:478)
	at app//de.tum.cit.aet.artemis.core.connector.GitlabRequestMockProvider.mockConfigureRepository(GitlabRequestMockProvider.java:468)
	at app//de.tum.cit.aet.artemis.shared.base.AbstractSpringIntegrationJenkinsGitlabTest.mockConnectorRequestsForStartParticipation(AbstractSpringIntegrationJenkinsGitlabTest.java:246)
	at app//de.tum.cit.aet.artemis.programming.util.ProgrammingExerciseTestService.prepareStudentExamsForConduction(ProgrammingExerciseTestService.java:2010)
	at app//de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.prepareStudentExamsForConduction(StudentExamIntegrationTest.java:442)
	at app//de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.createStudentExamWithResultsAndAssessments(StudentExamIntegrationTest.java:1819)
	at app//de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.testGradedFinalExamSummaryWithPlagiarismAndNotParticipatedBonusExamAsStudent(StudentExamIntegrationTest.java:2212)
	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 122 in src/test/java/de/tum/cit/aet/artemis/programming/util/LocalRepository.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.programming.icl.LocalVCSshIntegrationTest ► testUserTriesToDeleteBranch()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.programming.icl.LocalVCSshIntegrationTest.xml
Error:
  org.apache.commons.io.IOExceptionList: 1 exception(s): [org.apache.commons.io.IOIndexedException: FileNotFoundException #6: File does not exist: /tmp/SHORTBCC71846062A204179095FC0F830031B6A3ETSTEXC/shortbcc71846062a204179095fc0f830031b6a3etstexc-localvcsshintstudent1.git/gc.log.lock]
Raw output
org.apache.commons.io.IOExceptionList: 1 exception(s): [org.apache.commons.io.IOIndexedException: FileNotFoundException #6: File does not exist: /tmp/SHORTBCC71846062A204179095FC0F830031B6A3ETSTEXC/shortbcc71846062a204179095fc0f830031b6a3etstexc-localvcsshintstudent1.git/gc.log.lock]
	at org.apache.commons.io.IOExceptionList.checkEmpty(IOExceptionList.java:50)
	at org.apache.commons.io.function.IOStream.forAll(IOStream.java:357)
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:42)
	at org.apache.commons.io.function.IOStreams.forAll(IOStreams.java:36)
	at org.apache.commons.io.function.IOConsumer.forAll(IOConsumer.java:80)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:367)
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1242)
	at de.tum.cit.aet.artemis.programming.util.LocalRepository.resetLocalRepo(LocalRepository.java:122)
	at de.tum.cit.aet.artemis.programming.icl.LocalVCIntegrationTest.removeRepositories(LocalVCIntegrationTest.java:73)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: org.apache.commons.io.IOIndexedException: FileNotFoundException #6: File does not exist: /tmp/SHORTBCC71846062A204179095FC0F830031B6A3ETSTEXC/shortbcc71846062a204179095fc0f830031b6a3etstexc-localvcsshintstudent1.git/gc.log.lock
	at org.apache.commons.io.function.IOStream.lambda$forAll$11(IOStream.java:352)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at org.apache.commons.io.function.IOStream.forAll(IOStream.java:343)
	... 13 more
Caused by: java.io.FileNotFoundException: File does not exist: /tmp/SHORTBCC71846062A204179095FC0F830031B6A3ETSTEXC/shortbcc71846062a204179095fc0f830031b6a3etstexc-localvcsshintstudent1.git/gc.log.lock
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1396)
	at org.apache.commons.io.function.IOStream.lambda$forAll$11(IOStream.java:345)
	... 16 more