-
Notifications
You must be signed in to change notification settings - Fork 344
Development
: Store shorter repository URI in database
#11376
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
base: develop
Are you sure you want to change the base?
Conversation
End-to-End (E2E) Test Results Summary
|
RepositoryUriConversionUtil is now compatible with parallel test execution
…el test execution
} | ||
var participation = participationUtilService.addStudentParticipationForProgrammingExerciseForLocalRepo(programmingExercise, userLogin, | ||
URI.create(LocalRepositoryUriUtil.convertToLocalVcUriString(programmingExerciseTestService.studentRepo.workingCopyGitRepoFile, localVCRepoPath))); | ||
String shortUri = LocalRepositoryUriUtil.convertToLocalVcUriShortUriString(programmingExerciseTestService.studentRepo.workingCopyGitRepoFile, localVCRepoPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pattern is used in different tests. It's needed because our local repositories use file paths as git repository uris which is kind of a hack and incompatible with our conversion mechansim because file paths are never used as repo uris in production. Therefore, we have to make the uris compatible while not breaking the usage of LocalRepository.
We do this by first extracting the short uri (projectName/repo-slug) from the file path and then converting it to a full repository uri because that's the value the production code will use the call the method. Without specifying the full repository uri, mocking won't work.
f8040d3
End-to-End (E2E) Test Results Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS1. Changes work with new exercises. Existing exercises do not show template and solution repository urls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapprove DB migration
End-to-End (E2E) Test Results Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
End-to-End (E2E) Test Results Summary
|
de1cbbb
End-to-End (E2E) Test Results Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapprove DB migration
Only deploy to TS1!
Checklist
General
Server
Changes affecting Programming Exercises
VCS is the same for all setups
Motivation and Context
We store a lot of redundant information in the repository_url column of each participation.
The server url, the /git/prefix and the .git suffix
This wastes space in the database.
Description
Steps for Testing
Prerequisites:
Testserver States
You can manage test servers using Helios. Check environment statuses in the environment list. To deploy to a test server, go to the CI/CD page, find your PR or branch, and trigger the deployment.
Review Progress
Code Review
Manual Tests
Test Coverage
Summary by CodeRabbit