Skip to content

Feat/15#17

Merged
jong-0126 merged 19 commits intodevfrom
feat/15
May 30, 2025
Merged

Feat/15#17
jong-0126 merged 19 commits intodevfrom
feat/15

Conversation

@jong-0126
Copy link
Collaborator

@jong-0126 jong-0126 commented May 30, 2025

PR 생성 시 아래 항목을 채워주세요.

dockercompose 파일 삭제


Summary by CodeRabbit

  • Chores
    • 배포 워크플로우에서 Java 17 Amazon Corretto를 설치하도록 변경되었습니다.
    • Docker Compose 설정 파일이 삭제되어, 더 이상 MySQL 및 Redis 컨테이너가 기본적으로 제공되지 않습니다.

closed #15

Ksr-ccb and others added 18 commits May 28, 2025 13:39
* chore: initialize project structure

* chore: initialize project structure

* chore: initialize project structure

* fix: 엔티티 오류수정 및 설정파일 오류 수정

* 📝 Add docstrings to `dev` (#3)

Docstrings generation was requested by @Ksr-ccb.

* #2 (comment)

The following files were modified:

* `src/main/java/com/example/cs25/domain/ai/exception/AiException.java`
* `src/main/java/com/example/cs25/domain/mail/entity/MailLog.java`
* `src/main/java/com/example/cs25/domain/mail/exception/MailException.java`
* `src/main/java/com/example/cs25/domain/oauth/exception/OauthException.java`
* `src/main/java/com/example/cs25/domain/quiz/exception/QuizException.java`
* `src/main/java/com/example/cs25/domain/userQuizAnswer/entity/UserQuizAnswer.java`
* `src/main/java/com/example/cs25/domain/userQuizAnswer/exception/UserQuizAnswerException.java`
* `src/main/java/com/example/cs25/domain/users/entity/User.java`
* `src/main/java/com/example/cs25/domain/users/exception/UserException.java`
* `src/main/java/com/example/cs25/domain/users/vo/Subscription.java`
* `src/main/java/com/example/cs25/global/exception/BaseException.java`
* `src/main/java/com/example/cs25/global/exception/GlobalExceptionHandler.java`

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* refactor: ERD 수정으로 인한 Entity 수정.

* refactor: ERD 수정으로 인한 Entity 수정2.
# Conflicts:
#	.github/workflows/run-test.yaml
#	build.gradle
#	docker-compose.yml
#	src/main/java/com/example/cs25/domain/users/controller/UserController.java
#	src/main/java/com/example/cs25/domain/users/entity/SocialType.java
#	src/main/java/com/example/cs25/domain/users/entity/User.java
#	src/main/java/com/example/cs25/domain/users/exception/UserExceptionCode.java
#	src/main/java/com/example/cs25/domain/users/repository/UserRepository.java
#	src/main/resources/application.properties
@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 30, 2025

Walkthrough

배포 워크플로우에서 원격 서버에 설치되는 Java 버전이 21에서 17로 변경되었습니다. 또한, MySQL 및 Redis 서비스를 정의하던 docker-compose.yml 파일이 전체 삭제되었습니다. 공개 엔티티 선언에는 변경이 없습니다.

Changes

파일/경로 변경 요약
.github/workflows/deploy.yml 원격 서버에 설치되는 Java 버전을 21에서 17로 변경
docker-compose.yml 전체 파일 삭제: MySQL 및 Redis 서비스, 볼륨 선언 등 모두 제거

Sequence Diagram(s)

sequenceDiagram
    participant GitHub Actions
    participant Remote Server

    GitHub Actions->>Remote Server: sudo yum install -y java-17-amazon-corretto
Loading

Possibly related PRs

  • Feat/9 #14: 배포 워크플로우에서 Java 설치 및 docker-compose 사용 관련 변경이 포함되어 있으며, 본 PR과 유사하게 배포 환경 설정에 초점이 맞춰져 있습니다.

Suggested reviewers

  • wannabeing
  • Kimyoonbeom

Poem

🐇
도커 파일이 사라졌네,
자바도 17로 바뀌었네,
서버 준비 깔끔하게,
토끼도 춤을 추네!
배포의 길 한층 더,
깔끔하게 달려가네!
🥕


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 538b8a4 and 70633ca.

📒 Files selected for processing (1)
  • .github/workflows/deploy.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/deploy.yml

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Inline review comments failed to post. This is likely due to GitHub's limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 2

🧹 Nitpick comments (2)
.github/workflows/deploy.yml (2)

21-21: 선택: Java 배포판 지정 갱신
distribution: 'adopt'은 향후 deprecation 될 수 있으므로, Temurin 또는 Corretto 등 LTS 배포판으로 변경을 검토하세요.

예시:

-          distribution: 'adopt'
+          distribution: 'temurin'

56-56: 개행 누락 감지
파일 끝에 개행(newline)이 없습니다. POSIX 호환성과 일부 lint 툴 경고를 방지하려면 파일 끝에 빈 줄 또는 개행을 추가하세요.

예시:

+ 
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 56-56: no new line character at the end of file

(new-line-at-end-of-file)

🛑 Comments failed to post (2)
.github/workflows/deploy.yml (2)

30-30: 🛠️ Refactor suggestion

버전 고정 필요: scp-action 안정성 확보
appleboy/scp-action@master 대신 특정 릴리즈 태그로 고정해야 의존 액션의 예기치 않은 변경으로 인한 배포 실패를 방지할 수 있습니다.

예시:

- uses: appleboy/scp-action@master
+ uses: appleboy/scp-action@v0.1.4
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

        uses: appleboy/scp-action@v0.1.4
🤖 Prompt for AI Agents
In .github/workflows/deploy.yml at line 30, the usage of appleboy/scp-action is
pinned to the 'master' branch, which risks instability due to unexpected
changes. Replace 'appleboy/scp-action@master' with a specific release tag
version to ensure consistent and reliable deployment behavior.

26-27: ⚠️ Potential issue

치명적: 테스트 단계 누락
현재 워크플로우에 단위 테스트 실행 단계가 없어, 테스트 실패에도 불구하고 빌드 및 배포가 진행될 위험이 있습니다. 배포 전 반드시 ./gradlew test를 실행하도록 테스트 단계를 추가하세요.

예시:

-      - name: gradlew bootJar
-        run: ./gradlew bootJar
+      - name: Run Tests
+        run: ./gradlew test
+      - name: gradlew bootJar
+        run: ./gradlew bootJar
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

      - name: Run Tests
        run: ./gradlew test
      - name: gradlew bootJar
        run: ./gradlew bootJar
🤖 Prompt for AI Agents
In .github/workflows/deploy.yml around lines 26 to 27, the workflow lacks a test
step before building and deploying, which risks deploying broken code. Add a
step to run './gradlew test' before the 'gradlew bootJar' step to ensure unit
tests pass before proceeding with the build and deployment.

@jong-0126 jong-0126 merged commit 39ab7c9 into dev May 30, 2025
1 check passed
@jong-0126 jong-0126 deleted the feat/15 branch May 30, 2025 12:04
This was referenced May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI/CD 접속 안되는 이슈 해결...

4 participants