Skip to content

Development: Remove exam modules #58279

Development: Remove exam modules

Development: Remove exam modules #58279

Triggered via pull request January 23, 2025 23:49
Status Failure
Total duration 18m 10s
Artifacts 1

test.yml

on: pull_request
server-tests-mysql
0s
server-tests-mysql
server-tests-postgres
0s
server-tests-postgres
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 7 warnings
client-tests-selected
Process completed with exit code 1.
test#L0
Junit Results ran 8364 in 1213.0720000000003 seconds 0 Errored, 3 Failed, 0 Skipped
testAddCompetenciesToLearningPaths(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/atlas/learningpath/LearningPathIntegrationTest.java#L325
Junit test testAddCompetenciesToLearningPaths() failed org.springframework.dao.DataIntegrityViolationException: could not execute batch [Referential integrity constraint violation: "FK_COURSE_LEARNER_PROFILE_LEARNER_PROFILE: PUBLIC.COURSE_LEARNER_PROFILE FOREIGN KEY(LEARNER_PROFILE_ID) REFERENCES PUBLIC.LEARNER_PROFILE(ID) (CAST(112 AS BIGINT))"; SQL statement: delete from learner_profile where id=? [23503-224]] [delete from learner_profile where id=?]; SQL [delete from learner_profile where id=?]; constraint ["FK_COURSE_LEARNER_PROFILE_LEARNER_PROFILE: PUBLIC.COURSE_LEARNER_PROFILE FOREIGN KEY(LEARNER_PROFILE_ID) REFERENCES PUBLIC.LEARNER_PROFILE(ID) (CAST(112 AS BIGINT))"; SQL statement: delete from learner_profile where id=? [23503-224]]
testGetLearningPathNavigationEmptyCompetencies(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/atlas/learningpath/LearningPathIntegrationTest.java#L550
Junit test testGetLearningPathNavigationEmptyCompetencies() failed org.springframework.dao.DataIntegrityViolationException: could not execute batch [Referential integrity constraint violation: "FK_COURSE_LEARNER_PROFILE_LEARNER_PROFILE: PUBLIC.COURSE_LEARNER_PROFILE FOREIGN KEY(LEARNER_PROFILE_ID) REFERENCES PUBLIC.LEARNER_PROFILE(ID) (CAST(162 AS BIGINT))"; SQL statement: delete from learner_profile where id=? [23503-224]] [delete from learner_profile where id=?]; SQL [delete from learner_profile where id=?]; constraint ["FK_COURSE_LEARNER_PROFILE_LEARNER_PROFILE: PUBLIC.COURSE_LEARNER_PROFILE FOREIGN KEY(LEARNER_PROFILE_ID) REFERENCES PUBLIC.LEARNER_PROFILE(ID) (CAST(162 AS BIGINT))"; SQL statement: delete from learner_profile where id=? [23503-224]]
testAssessUnsubmittedStudentExamsForMultipleCorrectionRounds(): /home/runner/work/Artemis/Artemis/src/test/java/de/tum/cit/aet/artemis/exam/StudentExamIntegrationTest.java#L1110
Junit test testAssessUnsubmittedStudentExamsForMultipleCorrectionRounds() failed org.mockito.exceptions.misusing.UnfinishedStubbingException: Unfinished stubbing detected here: -> at de.tum.cit.aet.artemis.core.connector.GitlabRequestMockProvider.mockProtectBranch(GitlabRequestMockProvider.java:520) 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
de.tum.cit.aet.artemis.atlas.learningpath.LearningPathIntegrationTest ► testAddCompetenciesToLearningPaths(): src/test/java/de/tum/cit/aet/artemis/core/user/util/UserUtilService.java#L363
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.atlas.learningpath.LearningPathIntegrationTest.xml Error: org.springframework.dao.DataIntegrityViolationException: could not execute batch [Referential integrity constraint violation: "FK_COURSE_LEARNER_PROFILE_LEARNER_PROFILE: PUBLIC.COURSE_LEARNER_PROFILE FOREIGN KEY(LEARNER_PROFILE_ID) REFERENCES PUBLIC.LEARNER_PROFILE(ID) (CAST(112 AS BIGINT))"; SQL statement:
de.tum.cit.aet.artemis.atlas.learningpath.LearningPathIntegrationTest ► testGetLearningPathNavigationEmptyCompetencies(): src/test/java/de/tum/cit/aet/artemis/core/user/util/UserUtilService.java#L363
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.atlas.learningpath.LearningPathIntegrationTest.xml Error: org.springframework.dao.DataIntegrityViolationException: could not execute batch [Referential integrity constraint violation: "FK_COURSE_LEARNER_PROFILE_LEARNER_PROFILE: PUBLIC.COURSE_LEARNER_PROFILE FOREIGN KEY(LEARNER_PROFILE_ID) REFERENCES PUBLIC.LEARNER_PROFILE(ID) (CAST(162 AS BIGINT))"; SQL statement:
de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest ► testAssessUnsubmittedStudentExamsForMultipleCorrectionRounds(): src/test/java/de/tum/cit/aet/artemis/core/connector/GitlabRequestMockProvider.java#L520
Failed test found in: build/test-results/test/TEST-de.tum.cit.aet.artemis.exam.StudentExamIntegrationTest.xml Error: org.mockito.exceptions.misusing.UnfinishedStubbingException:
server-tests
Process completed with exit code 1.
server-tests
Process completed with exit code 1.
server-tests
Process completed with exit code 1.
server-tests
Failed test were found and 'fail-on-error' option is set to true
client-tests
Process completed with exit code 1.
client-compilation
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
client-style
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
client-tests-selected
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
server-style
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
server-tests
No files were found with the provided path: build/reports/jacoco/test/html. No artifacts will be uploaded.
server-tests
Test report summary exceeded limit of 65535 bytes and will be trimmed
client-tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
Coverage Report Client Tests
6.32 MB