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

Exam mode: Generate student exam on demand if student is registered for the exam #9123

Merged

Merge branch 'develop' into feature/exam-mode/generate-missing-studen…

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

Exam mode: Generate student exam on demand if student is registered for the exam #9123

Merge branch 'develop' into feature/exam-mode/generate-missing-studen…
bb6fc86
Select commit
Loading
Failed to load commit list.
GitHub Actions / H2 Tests failed Oct 12, 2024 in 0s

8230 passed, 2 failed and 2 skipped

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

Annotations

Check failure on line 219 in src/test/java/de/tum/cit/aet/artemis/shared/architecture/module/AbstractModuleRepositoryArchitectureTest.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.exam.architecture.ExamRepositoryArchitectureTest ► enforceUsageOfTestRepository()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.exam.architecture.ExamRepositoryArchitectureTest.xml
Error:
  java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.exam..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (2 times):
Raw output
java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'de.tum.cit.aet.artemis.exam..' should not use repositories with subclasses, because Test Repositories should be used over production repositories, if such a repository exist.' was violated (2 times):
Test class de.tum.cit.aet.artemis.exam.ExamRegistrationIntegrationTest uses repository de.tum.cit.aet.artemis.exam.repository.StudentExamRepository which has subclasses: [JavaClass{name='de.tum.cit.aet.artemis.exam.test_repository.StudentExamTestRepository'}]
Test class de.tum.cit.aet.artemis.exam.service.ExamAccessServiceTest uses repository de.tum.cit.aet.artemis.exercise.repository.ExerciseRepository which has subclasses: [JavaClass{name='de.tum.cit.aet.artemis.exercise.repository.ExerciseTestRepository'}]
	at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:94)
	at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:86)
	at com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule.check(ArchRule.java:165)
	at de.tum.cit.aet.artemis.shared.architecture.module.AbstractModuleRepositoryArchitectureTest.enforceUsageOfTestRepository(AbstractModuleRepositoryArchitectureTest.java:219)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	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)

Check failure on line 358 in src/test/java/de/tum/cit/aet/artemis/programming/icl/LocalCIResourceIntegrationTest.java

See this annotation in the file changed.

@github-actions github-actions / H2 Tests

de.tum.cit.aet.artemis.programming.icl.LocalCIResourceIntegrationTest ► testGetBuildJobStatistics()

Failed test found in:
  build/test-results/test/TEST-de.tum.cit.aet.artemis.programming.icl.LocalCIResourceIntegrationTest.xml
Error:
  org.opentest4j.AssertionFailedError: 
Raw output
org.opentest4j.AssertionFailedError: 
expected: 2L
 but was: 3L
	at app//de.tum.cit.aet.artemis.programming.icl.LocalCIResourceIntegrationTest.testGetBuildJobStatistics(LocalCIResourceIntegrationTest.java:358)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	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)