Skip to content

Conversation

@GoGradually
Copy link
Collaborator

변경된 점

  • 테스트 시 키 파일을 직접 가져오지 않도록 제거
  • CI 작업과 CD 작업 분리

Copilot AI review requested due to automatic review settings December 20, 2025 11:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR separates CI and CD workflows and removes the dependency on external JWT key files during testing by generating test keys in-memory.

  • Introduced a test-specific application profile with H2 database configuration
  • Created a TestKeys utility class to generate RSA key pairs for testing
  • Split the combined CI/CD workflow into separate CI (pull request) and CD (master branch push) workflows

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/test/resources/application-test.yml Adds test profile configuration with H2 database and JWT key paths
src/test/java/me/gg/pinit/utils/TestKeys.java New utility class to generate RSA key pairs for testing without external files
src/test/java/me/gg/pinit/PinitAuthApplicationTests.java Configures test JwtTokenProvider bean using generated test keys
.github/workflows/ci.yml New CI workflow triggered on pull requests for build and test
.github/workflows/cd.yml Updated CD workflow (renamed from CI/CD) with cleaned up comments
Comments suppressed due to low confidence (1)

.github/workflows/cd.yml:58

  • Kubernetes v1.33.6 may not exist yet. As of early 2025, the latest stable Kubernetes versions are in the v1.31-v1.32 range. Please verify that v1.33.6 is a valid and available version, or adjust to a confirmed stable version like v1.31.x or v1.32.x to avoid installation failures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Bean
@Primary
JwtTokenProvider testJwtTokenProvider() {
return new JwtTokenProvider(TestKeys.privateKey(), TestKeys.publicKey(), "https://pinit.go-gradually.me", Duration.ofMinutes(5), Duration.ofDays(14));
Copy link

Copilot AI Dec 20, 2025

Choose a reason for hiding this comment

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

The hardcoded issuer URL "https://pinit.go-gradually.me" duplicates the value from the production SecurityConfig. Consider extracting this to a configuration property or constant to maintain consistency and make it easier to update across the codebase.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings December 20, 2025 11:44
@GoGradually GoGradually merged commit ef46a80 into master Dec 20, 2025
5 checks passed
@GoGradually GoGradually deleted the build/ci-cd-분리 branch December 20, 2025 11:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

cache: gradle

- name: Build & Test
run: ./gradlew clean test build
Copy link

Copilot AI Dec 20, 2025

Choose a reason for hiding this comment

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

The command runs tests twice: once explicitly with 'test' and again as part of 'build' (since build depends on test in Gradle). Consider using either './gradlew clean build' (which includes test) or './gradlew clean test' if you only want to run tests without creating the final JAR. The current approach wastes CI resources and time.

Suggested change
run: ./gradlew clean test build
run: ./gradlew clean build

Copilot uses AI. Check for mistakes.
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.

2 participants