-
Notifications
You must be signed in to change notification settings - Fork 8
chore: 게시글 조회수 동시성 테스트 반복 실행 워크플로우 추가 #811
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
whqtker
merged 1 commit into
develop
from
chore/post-view-count-concurrency-test-workflow
Jul 9, 2026
Merged
Changes from all commits
Commits
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 |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: Post View Count Concurrency Test (x50) | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| repeat-test: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| checks: write | ||
|
|
||
| steps: | ||
| - name: Checkout master | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: master | ||
|
|
||
| - 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 test 50 times | ||
| run: | | ||
| set +e | ||
| FAIL_COUNT=0 | ||
| for i in $(seq 1 50); do | ||
| echo "=== Run $i/50 ===" | ||
| ./gradlew test --tests "com.example.solidconnection.concurrency.PostViewCountConcurrencyTest.게시글을_조회할_때_조회수_동시성_문제를_해결한다" --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 / 50" | ||
| 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' | ||
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.
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win
persist-credentials: false추가를 권장합니다.actions/checkout@v4는 기본적으로 GitHub 토큰을 git config에 저장합니다. 이 워크플로우는 테스트 실행만 수행하므로 credential 지속이 불필요하며, 보안 노출면을 줄이기 위해persist-credentials: false를 명시하는 것이 좋습니다.🔒️ 제안하는 수정
- name: Checkout master uses: actions/checkout@v4 with: ref: master + persist-credentials: false📝 Committable suggestion
🧰 Tools
🪛 zizmor (1.26.1)
[warning] 14-17: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
🤖 Prompt for AI Agents
Source: Linters/SAST tools