Skip to content

Commit 727a19e

Browse files
author
junwoo
committed
♻️ 자동 테스트 확인
1 parent fc00733 commit 727a19e

13 files changed

+110681
-2
lines changed

.github/workflows/pr-ci.yaml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: PR 시 CI 테스트 자동화
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- 'part3-김준우'
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
checks: write
16+
pull-requests: write
17+
18+
steps:
19+
- name: 레포지토리 체크아웃
20+
uses: actions/checkout@v4
21+
with:
22+
token: ${{ secrets.GIT_TOKEN }}
23+
24+
- name: JDK 17 설치
25+
uses: actions/setup-java@v3
26+
with:
27+
distribution: 'oracle'
28+
java-version: '17'
29+
30+
- name: Gradle 명령 실행 권한 부여
31+
run: chmod +x ./gradlew
32+
shell: bash
33+
34+
- name: Gradle로 프로젝트 Build
35+
run: ./gradlew build
36+
37+
- name: 테스트 결과를 PR 코멘트로 출력
38+
uses: EnricoMi/publish-unit-test-result-action@v2
39+
if: always()
40+
with:
41+
files: '**/build/test-results/test/TEST-*.xml'
42+
43+
- name: 테스트 실패 시, 오류가 발생한 코드 라인에 코멘트 추가
44+
uses: mikepenz/action-junit-report@v4
45+
if: always()
46+
with:
47+
report_paths: '**/build/test-results/test/TEST-*.xml'

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ bin/
4848

4949
### 숨김 파일 ###
5050
.*
51-
!.gitignore
51+
!.gitignore
52+
!.github/

.gitmessage.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [타입] 커밋 제목 (한 줄 요약)
2+
# 예: feat: 사용자 로그인 기능 추가
3+
4+
# 본문 (무엇을, 왜 했는지)
5+
# - 변경한 이유
6+
# - 고려한 사항
7+
8+
# 이슈 번호 (있다면)
9+
# Related issue: #123

.logs/latest.log

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
25-04-06 00:05:45.044 [background-preinit] INFO org.hibernate.validator.internal.util.Version [ | | ] - HV000001: Hibernate Validator 8.0.1.Final
2+
25-04-06 00:05:45.450 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Starting MessageControllerTest using Java 17.0.14 with PID 25324 (started by junwo in C:\Users\junwo\IdeaProjects\1-sprint-mission)
3+
25-04-06 00:05:45.455 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - The following 1 profile is active: "dev"
4+
25-04-06 00:05:54.054 [Test worker] INFO org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping [ | | ] - Adding welcome page: class path resource [static/index.html]
5+
25-04-06 00:05:55.942 [Test worker] INFO org.springframework.boot.test.mock.web.SpringBootMockServletContext [ | | ] - Initializing Spring TestDispatcherServlet ''
6+
25-04-06 00:05:55.945 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Initializing Servlet ''
7+
25-04-06 00:05:55.950 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Completed initialization in 4 ms
8+
25-04-06 00:05:56.082 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Started MessageControllerTest in 14.304 seconds (process running for 18.155)
9+
25-04-06 00:08:30.356 [background-preinit] INFO org.hibernate.validator.internal.util.Version [ | | ] - HV000001: Hibernate Validator 8.0.1.Final
10+
25-04-06 00:08:30.762 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Starting MessageControllerTest using Java 17.0.14 with PID 7016 (started by junwo in C:\Users\junwo\IdeaProjects\1-sprint-mission)
11+
25-04-06 00:08:30.766 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - The following 1 profile is active: "dev"
12+
25-04-06 00:08:39.592 [Test worker] INFO org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping [ | | ] - Adding welcome page: class path resource [static/index.html]
13+
25-04-06 00:08:41.221 [Test worker] INFO org.springframework.boot.test.mock.web.SpringBootMockServletContext [ | | ] - Initializing Spring TestDispatcherServlet ''
14+
25-04-06 00:08:41.222 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Initializing Servlet ''
15+
25-04-06 00:08:41.226 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Completed initialization in 4 ms
16+
25-04-06 00:08:41.358 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Started MessageControllerTest in 14.393 seconds (process running for 18.743)
17+
25-04-06 00:09:04.230 [background-preinit] INFO org.hibernate.validator.internal.util.Version [ | | ] - HV000001: Hibernate Validator 8.0.1.Final
18+
25-04-06 00:09:04.445 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Starting MessageControllerTest using Java 17.0.14 with PID 6012 (started by junwo in C:\Users\junwo\IdeaProjects\1-sprint-mission)
19+
25-04-06 00:09:04.447 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - The following 1 profile is active: "dev"
20+
25-04-06 00:09:11.484 [Test worker] INFO org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping [ | | ] - Adding welcome page: class path resource [static/index.html]
21+
25-04-06 00:09:13.211 [Test worker] INFO org.springframework.boot.test.mock.web.SpringBootMockServletContext [ | | ] - Initializing Spring TestDispatcherServlet ''
22+
25-04-06 00:09:13.213 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Initializing Servlet ''
23+
25-04-06 00:09:13.219 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Completed initialization in 6 ms
24+
25-04-06 00:09:13.397 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Started MessageControllerTest in 11.994 seconds (process running for 16.197)

.logs/logfile-2025-03-27.log

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
25-03-27 18:39:54.558 [SpringApplicationShutdownHook] INFO org.springframework.boot.web.embedded.tomcat.GracefulShutdown - Commencing graceful shutdown. Waiting for active requests to complete
2+
25-03-27 18:39:54.813 [tomcat-shutdown] INFO org.springframework.boot.web.embedded.tomcat.GracefulShutdown - Graceful shutdown complete
3+
25-03-27 18:39:54.818 [SpringApplicationShutdownHook] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
4+
25-03-27 18:39:54.820 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
5+
25-03-27 18:39:54.822 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
6+
25-03-27 18:39:57.526 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 8.0.1.Final
7+
25-03-27 18:39:57.591 [main] INFO com.sprint.mission.discodeit.DiscodeitApplication - Starting DiscodeitApplication using Java 17.0.14 with PID 9360 (C:\Users\junwo\IdeaProjects\1-sprint-mission\build\classes\java\main started by junwo in C:\Users\junwo\IdeaProjects\1-sprint-mission)
8+
25-03-27 18:39:57.592 [main] INFO com.sprint.mission.discodeit.DiscodeitApplication - The following 1 profile is active: "dev"
9+
25-03-27 18:39:58.561 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate - Bootstrapping Spring Data JPA repositories in DEFAULT mode.
10+
25-03-27 18:39:58.650 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 77 ms. Found 6 JPA repository interfaces.
11+
25-03-27 18:39:59.285 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port 8081 (http)
12+
25-03-27 18:39:59.313 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8081"]
13+
25-03-27 18:39:59.316 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
14+
25-03-27 18:39:59.316 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.33]
15+
25-03-27 18:39:59.392 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
16+
25-03-27 18:39:59.393 [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 1755 ms
17+
25-03-27 18:39:59.425 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
18+
25-03-27 18:39:59.638 [main] INFO com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:testdb user=SA
19+
25-03-27 18:39:59.640 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
20+
25-03-27 18:39:59.650 [main] INFO org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration - H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:testdb'
21+
25-03-27 18:39:59.834 [main] INFO org.hibernate.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
22+
25-03-27 18:39:59.904 [main] INFO org.hibernate.Version - HHH000412: Hibernate ORM core version 6.6.2.Final
23+
25-03-27 18:39:59.945 [main] INFO org.hibernate.cache.internal.RegionFactoryInitiator - HHH000026: Second-level cache disabled
24+
25-03-27 18:40:00.250 [main] INFO org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo - No LoadTimeWeaver setup: ignoring JPA class transformer
25+
25-03-27 18:40:00.331 [main] INFO org.hibernate.orm.connections.pooling - HHH10001005: Database info:
26+
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
27+
Database driver: undefined/unknown
28+
Database version: 2.3.232
29+
Autocommit mode: undefined/unknown
30+
Isolation level: undefined/unknown
31+
Minimum pool size: undefined/unknown
32+
Maximum pool size: undefined/unknown
33+
25-03-27 18:40:01.513 [main] INFO org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
34+
25-03-27 18:40:01.565 [main] DEBUG org.hibernate.SQL -
35+
alter table if exists read_statuses
36+
drop constraint if exists UKqttel343c4eq691kcxipoixr7
37+
25-03-27 18:40:01.566 [main] DEBUG org.hibernate.SQL -
38+
alter table if exists read_statuses
39+
add constraint UKqttel343c4eq691kcxipoixr7 unique (user_id, channel_id)
40+
25-03-27 18:40:01.572 [main] DEBUG org.hibernate.SQL -
41+
alter table if exists message_attachments
42+
add constraint FKj7twd218e2gqw9cmlhwvo1rth
43+
foreign key (message_id)
44+
references messages
45+
25-03-27 18:40:01.582 [main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default'
46+
25-03-27 18:40:01.908 [main] INFO org.springframework.data.jpa.repository.query.QueryEnhancerFactory - Hibernate is in classpath; If applicable, HQL parser will be used.
47+
25-03-27 18:40:02.596 [main] INFO org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping - Adding welcome page: class path resource [static/index.html]
48+
25-03-27 18:40:03.051 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8081"]
49+
25-03-27 18:40:03.072 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port 8081 (http) with context path '/'
50+
25-03-27 18:40:03.083 [main] INFO com.sprint.mission.discodeit.DiscodeitApplication - Started DiscodeitApplication in 6.209 seconds (process running for 6.892)
51+
25-03-27 18:42:35.191 [http-nio-8081-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
52+
25-03-27 18:42:35.192 [http-nio-8081-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
53+
25-03-27 18:42:35.197 [http-nio-8081-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 4 ms
54+
25-03-27 19:59:22.162 [HikariPool-1 housekeeper] WARN com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=58m52s69ms170µs200ns).
55+
25-03-27 21:48:38.094 [HikariPool-1 housekeeper] WARN com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=1h48m11s842ms998µs900ns).
56+
25-03-27 21:57:24.070 [SpringApplicationShutdownHook] INFO org.springframework.boot.web.embedded.tomcat.GracefulShutdown - Commencing graceful shutdown. Waiting for active requests to complete
57+
25-03-27 21:57:24.377 [tomcat-shutdown] INFO org.springframework.boot.web.embedded.tomcat.GracefulShutdown - Graceful shutdown complete
58+
25-03-27 21:57:24.390 [SpringApplicationShutdownHook] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
59+
25-03-27 21:57:24.404 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
60+
25-03-27 21:57:24.410 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.

0 commit comments

Comments
 (0)