-
Notifications
You must be signed in to change notification settings - Fork 8
[DEPLOY] 260802 #816
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
Merged
[DEPLOY] 260802 #816
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| * @Gyuhyeok99 @wibaek @whqtker @lsy1307 @Hexeong @JAEHEE25 @sukangpunch | ||
| * @Gyuhyeok99 @wibaek @whqtker @lsy1307 @Hexeong @sukangpunch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: Full Test Suite Repeat | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| repeat_count: | ||
| description: '전체 테스트를 반복할 횟수' | ||
| required: true | ||
| default: '10' | ||
|
|
||
| jobs: | ||
| repeat-test: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| checks: write | ||
|
|
||
| steps: | ||
| - name: Checkout the code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '21' | ||
| distribution: 'temurin' | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@v4 | ||
|
|
||
| - name: Make Gradle wrapper executable | ||
| run: chmod +x ./gradlew | ||
|
|
||
| - name: Run full test suite N times | ||
| run: | | ||
| set +e | ||
| REPEAT_COUNT="${{ github.event.inputs.repeat_count }}" | ||
| FAIL_COUNT=0 | ||
| for i in $(seq 1 "$REPEAT_COUNT"); do | ||
| echo "=== Run $i/$REPEAT_COUNT ===" | ||
| ./gradlew test --rerun-tasks | ||
| STATUS=$? | ||
| mkdir -p "build/repeat-test-results/run-$i" | ||
| cp -r build/test-results/test/. "build/repeat-test-results/run-$i/" 2>/dev/null || true | ||
| if [ $STATUS -ne 0 ]; then | ||
| FAIL_COUNT=$((FAIL_COUNT + 1)) | ||
| echo "Run $i FAILED" | ||
| fi | ||
| done | ||
| echo "Total failures: $FAIL_COUNT / $REPEAT_COUNT" | ||
| if [ "$FAIL_COUNT" -ne 0 ]; then | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Publish Test Report | ||
| uses: mikepenz/action-junit-report@v5 | ||
| if: success() || failure() | ||
| with: | ||
| report_paths: 'build/repeat-test-results/**/TEST-*.xml' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/java/com/example/solidconnection/application/dto/ApplicationPreviewResponse.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package com.example.solidconnection.application.dto; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public record ApplicationPreviewResponse( | ||
| long totalUniversityCount, | ||
| List<ApplicationUniversityPreviewResponse> universities) { | ||
| } |
25 changes: 25 additions & 0 deletions
25
...ava/com/example/solidconnection/application/dto/ApplicationUniversityPreviewResponse.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| package com.example.solidconnection.application.dto; | ||
|
|
||
| import com.example.solidconnection.university.domain.UnivApplyInfo; | ||
|
|
||
| public record ApplicationUniversityPreviewResponse( | ||
| long id, | ||
| String koreanName, | ||
| Integer studentCapacity, | ||
| String region, | ||
| String country, | ||
| String logoImageUrl, | ||
| String backgroundImageUrl) { | ||
|
|
||
| public static ApplicationUniversityPreviewResponse from(UnivApplyInfo univApplyInfo) { | ||
| return new ApplicationUniversityPreviewResponse( | ||
| univApplyInfo.getId(), | ||
| univApplyInfo.getKoreanName(), | ||
| univApplyInfo.getStudentCapacity(), | ||
| univApplyInfo.getUniversity().getRegion().getKoreanName(), | ||
| univApplyInfo.getUniversity().getCountry().getKoreanName(), | ||
| univApplyInfo.getUniversity().getLogoImageUrl(), | ||
| univApplyInfo.getUniversity().getBackgroundImageUrl() | ||
| ); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
When a dispatcher supplies
0, a negative value, a fractional value, or malformed text, this loop may execute fewer tests than requested—or none at all—while the precedingset +eignoresseqerrors and leavesFAIL_COUNTat zero, producing a successful workflow without the intended test coverage. GNUseq --helpconfirms that arguments are interpreted as floating-point values and that a default positive sequence below its first value emits nothing; validateREPEAT_COUNTas a positive integer before entering the loop.Useful? React with 👍 / 👎.