-
Notifications
You must be signed in to change notification settings - Fork 0
Loki e2e test support #99
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
Merged
Conversation
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
kakusiA
added a commit
that referenced
this pull request
Sep 18, 2025
* feat: ์ ์ฌ๋ torch ์ญ์ ํ onnx ์ถ๊ฐ * feat: ์ ์ฌ๋ torch ์ญ์ ํ onnx ์ถ๊ฐ * chore: onnx ๋ชจ๋ธ ์ ์ฅ์ฉ ๋ณผ๋ฅจ docker-composer์ ์ถ๊ฐ * chore: poetry.lock ์ถ๊ฐ * chore: poetry.lock ์ถ๊ฐ * chore: poetry run black & ci-python ์์ ๋ณต๊ตฌ * chore: ci-python ๋จธ์ง ํ ์คํธ ์ถ๊ฐ * typeHandler๊ฐ ๋ฑ๋ก๋์ง ์๋ ๋ฒ๊ทธ (#88) * ๊ธฐ๋ณธ์ ์ธ global exception handling (#90) * feat: ๊ธฐ๋ณธ์ ์ธ global exception handling * chore: Security exception handling * feat: Duplicate Exception handling * Caddyfile copy ์ถ๊ฐ (#89) * refactor: ํ์์๋ API url ์ญ์ * refactor: 2์ฐจ ๋ง์ผ์คํค์์ํ ๊ณตํต request๋ฐ response ์ฃผ์ * refactor: - 2์ฐจ ๋ง์ผ์คํค์์ํ ๊ณตํต request๋ฐ response ์ฃผ์์๋ฐ๋ฅธ blog์ฝ๋ ๋ฆฌํํ ๋ง * Workflow dummy data insert sql (alpha) (#93) * chore: workflow dummy data (experimental) * chore: Super admin์ workflow ํ ๋น * chore: v0.0.4 erd ์ ์ฉ * Loki, Grafana ๋ก์ปฌ ์ธํ ๋ฐ log ์ฒ๋ฆฌ (#95) * chore: Docker compose loki, grafana * chore: Sync appender ๊ธฐ๋ฐ grafana ์ฐ๊ฒฐ * chore: fix test * ๋ก๊ทธ์์ api (#96) * feat: UserLogoutFlowE2eTest ์ด์ * feat: UserLogoutFlowE2eTest * feat: AuthController์ logout api ์ถ๊ฐ * feat: AuthApiIntegrationTest์ Logout ์ถ๊ฐ * feat: h2 ํธํ ์คํค๋ง ํ์ผ * Grafana Loki ๋ก๊น (develop) (#97) * chore: Develop logging appender ๋ณต๊ตฌ * chore: Trace id, span id ๋์ * chore: Source id, run id label๋ก ๋ถ๋ฆฌ * Pagination dto ๋ฐ ๊ณตํต service (#94) * chore: Paging request, reponse dto * chore: Pagination controller, service example * chore: workflows api ์์ v0 ์ถ๊ฐ * refactor: ํ์ด์ง๋ค์ด์ ๊ตฌ์กฐ ๊ฐ์ PageService๋ฅผ PageableService ์ธํฐํ์ด์ค๋ก ๋ณ๊ฒฝํ์ฌ ํธ๋์ญ์ ์ฒ๋ฆฌ ๊ฐ์ * feat: crawling_util ํ๊ฐ๋ก ํฉ์นจ 1. service ์์ 2. schemas ์์ * ๋ธ๋ก๊ทธ ์๋ํ ๋ฐฐ์น Job ๋ฐ Tasklet ์ธํ (#91) * refactor: health๊ด๋ จ ํจํค์ง ๋ค์ด๋ฐ ๋ฐ ํ์ผ ๋ค์ด๋ฐ ๋ณ๊ฒฝ * feat(config): @ConfigurationProperties๋ก ํ์ -์์ ํ ์ค์ ๊ด๋ฆฌ ๋์ ๊ธฐ์กด์ @value๋ ํ๋์ฝ๋ฉ ๋ฐฉ์์ ์คํ์ ์ทจ์ฝํ๊ณ , ์ค์ ๊ฐ ๋๋ฝ ์ ๋ฐํ์ ์ค๋ฅ๋ฅผ ์ ๋ฐํ ์ ์๋ ํ์ ๋ถ์์ ์ฑ ๋ฌธ์ ๊ฐ ์์์ต๋๋ค. ์ด๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด @ConfigurationProperties๋ฅผ ์ฌ์ฉํ๋ `FastApiProperties` ํด๋์ค๋ฅผ ๋์ ํ์ฌ FastAPI ์ฐ๋ ์ค์ ์ ์ค์ํํ๊ณ , ์ ํ๋ฆฌ์ผ์ด์ ์์ ์์ ์ ์ค์ ๊ฐ์ ํ์ ๊ณผ ์ ํจ์ฑ์ ๊ฒ์ฆํ๋๋ก ๊ฐ์ ํ์ต๋๋ค. ์ด๋ฅผ ํตํด ์ ์ฌ์ ์ธ ๋ฐํ์ ์ฅ์ ๋ฅผ ์์ฒ ์ฐจ๋จํ๊ณ , ์ฝ๋์ ์์ ์ฑ๊ณผ ์ ์ง๋ณด์์ฑ์ ํฌ๊ฒ ํฅ์์์ผฐ์ต๋๋ค. * refactor: Code Formatting * feature: ๋ธ๋ก๊ทธ ์๋ํ ๋ฐฐ์น Job ๋ฐ Tasklet ๊ตฌํ ์ฝํ ์ธ ์๋ํ ์ํฌํ๋ก์ฐ์ ํต์ฌ ์คํ ๋ก์ง์ธ Spring Batch Job๊ณผ ๊ทธ๋ฅผ ๊ตฌ์ฑํ๋ 7๊ฐ์ Tasklet์ ๊ตฌํํฉ๋๋ค. ### ์ฃผ์ ๊ตฌํ ๋ด์ฉ: 1. **`BlogAutomationJobConfig.java`**: - ์ํฌํ๋ก์ฐ์ ์ ์ฒด ์คํ ํ๋ฆ์ ๋ด๋นํ๋ ๋ ๊ฐ์ Job(`productSelectionJob`, `contentPublishingJob`)๊ณผ ๊ฐ Job์ ๊ตฌ์ฑํ๋ Step๋ค์ ์ ์ํ์ต๋๋ค. - '์ํ ์ ์ /์์ง'๊ณผ '์ฝํ ์ธ ์์ฑ/๋ฐํ'์ด๋ผ๋ ์ญํ ์ ๋ช ํํ ๋ถ๋ฆฌํ์ฌ Job์ ์ฌ์ฌ์ฉ์ฑ๊ณผ ๋ ๋ฆฝ์ฑ์ ํ๋ณดํ์ต๋๋ค. 2. **7๊ฐ์ Tasklet ๊ตฌํ**: - `ExtractTrendKeywordTasklet`: ํธ๋ ๋ ํค์๋ ์ถ์ถ - `SearchProductsFromMallTasklet`: ํค์๋๋ก ์ผํ๋ชฐ ์ํ ๋ชฉ๋ก ๊ฒ์ - `MatchProductWithKeywordTasklet`: ํค์๋์ ์ํ๋ช ๋งค์นญ - `FindSimilarProductsTasklet`: ๋งค์นญ๋ ์ํ์ ์ ์ฌ ์ํ ํ์ - `CrawlSelectedProductTasklet`: ์ต์ข ์ ํ๋ ์ํ ์์ธ ์ ๋ณด ํฌ๋กค๋ง - `GenerateBlogContentTasklet`: ์์ง๋ ์ ๋ณด๋ก AI ๋ธ๋ก๊ทธ ์๊ณ ์์ฑ - `PublishBlogPostTasklet`: ์์ฑ๋ ์๊ณ ๋ฅผ ๋ธ๋ก๊ทธ์ ๋ฐํ 3. **Step ๊ฐ ๋ฐ์ดํฐ ์ ๋ฌ**: - ๊ฐ Tasklet์ `JobExecutionContext`๋ฅผ ํตํด ๋ค์ ๋จ๊ณ๋ก ํ์ํ ๋ฐ์ดํฐ(์ถ์ถ๋ ํค์๋, ์ ํ๋ ์ํ ์ ๋ณด, ์์ฑ๋ ์ฝํ ์ธ ๋ฑ)๋ฅผ ์ ๋ฌํ๋๋ก ๊ตฌํ๋์์ต๋๋ค. * chore: fastapi์ ์ํธ์์ฉ์ ๋ด๋นํ๋ external ํจํค์ง ๊ตฌ์ฑ * chore: task ๊ฐ์ ๊ฒฐํฉ๋๋ฅผ ์ค์ด๊ธฐ ์ํ ์ธํฐํ์ด์ค ๊ตฌ์ฑ - ํน์ step์์ ๋ง๋ ๋ฐ์ดํฐ๋ฅผ ๋ค์ step์์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ๊ฐ ์์(`JobExecutionContext`๋ฅผ ํตํด ๋ฐ์ดํฐ๋ฅผ ์ฃผ๊ณ ๋ฐ์) - `JobContextKeys`๋ผ๋ ์ธํฐํ์ด์ค๋ฅผ ์ ์ํด ๋ค๋ฅธ task์ ๋ด๋ถ ๋ณ์๋ฅผ ์ง์ ์ฐธ์กฐํ์ง ์๋๋ก ํจ * refactor: FastApiAdapter ๋ฐ JobContextKeys ์ ์ฉ * refactor: schedule ํจํค์ง domain ๋ฐ์ผ๋ก ๋ถ๋ฆฌ * refactor: AOP๋ฅผ ์ด์ฉํ Tasklet ์คํ ๋ก๊น ์ค์ํ ๊ฐ Tasklet ํด๋์ค ๋ด๋ถ์ ํฉ์ด์ ธ ์๋ ์์/์ข ๋ฃ ๋ก๊ทธ๋ ์ฝ๋ ์ค๋ณต์ ์ ๋ฐํ๊ณ , ๋น์ฆ๋์ค ๋ก์ง์ ๊ฐ๋ ์ฑ์ ์ ํดํ๋ ๋ฌธ์ ๊ฐ ์์์ต๋๋ค. ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด, AOP๋ฅผ ์ฌ์ฉํ์ฌ ๋ชจ๋ Tasklet์ ์คํ์ ์๋์ผ๋ก ๋ก๊น ํ๋ `LoggingAspect`๋ฅผ ํ์ฅ ๊ตฌํํฉ๋๋ค. ### ์ฃผ์ ๋ณ๊ฒฝ ์ฌํญ: - `LoggingAspect.java`์ `batch.tasklet` ํจํค์ง๋ฅผ ๋์์ผ๋ก ํ๋ ์๋ก์ด Pointcut(`taskletMethods`)์ ์ถ๊ฐํ์ต๋๋ค. - `@Around` ์ด๋๋ฐ์ด์ค๋ฅผ ํตํด ๋ชจ๋ Tasklet์ ์คํ ์์, ์ข ๋ฃ, ๊ทธ๋ฆฌ๊ณ ์์ ์๊ฐ์ ์๋์ผ๋ก ๊ธฐ๋กํ๋๋ก ๊ตฌํํ์ต๋๋ค. ### ๊ธฐ๋ ํจ๊ณผ: - **์ฝ๋ ์ค๋ณต ์ ๊ฑฐ**: ๊ฐ Tasklet ํด๋์ค์ ์๋์ผ๋ก ์์ฑํ๋ ์์/์ข ๋ฃ ๋ก๊ทธ๋ฅผ ์ ๊ฑฐํ์ฌ, ๋น์ฆ๋์ค ๋ก์ง์ ๊ฐ๋ ์ฑ์ ํฌ๊ฒ ํฅ์์ํต๋๋ค. - **๊ด์ฌ์ฌ์ ๋ถ๋ฆฌ(SoC)**: ํต์ฌ ๋ก์ง๊ณผ ๋ก๊น ์ด๋ผ๋ ๋ถ๊ฐ ๊ธฐ๋ฅ ๋ก์ง์ ์๋ฒฝํ๊ฒ ๋ถ๋ฆฌํ์ต๋๋ค. * refactor: Code Formating * chore: ์ฝ๋์ ์๋ job_id ์ ๋ถ ์ ๊ฑฐ 1. middleware ์์ ํด์ผํจ(๊ฒฝ๋ฏผ) 2. pytest all pass * chore: poetry run black . * Loki e2e test support (#99) * chore: e2e loki test set up * fix: E2e test ํด๋์ค ์ํ ์ truncate * feat: ์์ ๋ฐ์ดํฐ๋ก GPTํํ ์ฝํ ์ธ ์์ฑ ํ blogger์ ์ ๋ก๋ ์ฑ๊ณต * feat: rag๋ก ์ฝํ ์ธ ์์ฑ ํ blogger ํฌ์คํ ํ ์คํธ ํต๊ณผ * feat: poetry run black * feat: WorkflowCardDto * feat: WorkflowMapper * feat: WorkflowMapper.xml * feat: WorkflowService * feat: Workflow๊ด๋ จ api Security์ ์ถ๊ฐ * fix: spotlessApply * RDB Log4j2 append (experimental) (#104) * chore: Workflow history ๋ฐ์ดํฐ๋ฒ ์ด์ค input * chore: e2e test logger ์ธํ ๋จ * chore: Workflow logging example controller ์ด๋ฆ ๋ณ๊ฒฝ Changes to be committed: renamed: src/main/java/site/icebang/domain/TestController.java -> src/main/java/site/icebang/domain/WorkflowLogInsertExampleController.java * chore: Production workflow log (RDB) ์์ฑ * feat : HTML ์์ ์๋ ์ถ์ถ Util ํ์ผ Selenium์ผ๋ก HTML ๊ฐ์ ธ์ค๊ธฐ -> HTML ๋ถํ์ํ ํ๊ทธ ์ญ์ -> LLM ํ๋กฌํํธ๋ก ์์ ์ถ์ถ ์๋ํ ํ์ฌ ๋ค์ด๋ฒ, ํฐ์คํ ๋ฆฌ ๋ธ๋ก๊ทธ ์๋ ํ์ธ ์๋ฃ. ํด๋น ํ์ผ ์ฌ์ฉ ์, ํ์ด์ง ๋ถ์ ๋ฐ ์์ธํ ํ๋กฌํํธ ์์ฑ ํ์ * refactor : FAST API Response ๋ฆฌํํ ๋ง (#105) * refactoring: ์ฌ์ฉํ์ง ์๋ url ์ญ์ * refactoring: - keyword Response ๋ฆฌํํ ๋ง - match Response ๋ฆฌํํ ๋ง - search Response ๋ฆฌํํ ๋ง - ๊ณตํต Response ๋ฆฌํํ ๋ง๋ฐ ์์ ์ค * refactor: product response ๊ณตํตํ ์์ * refactor: - service๋จ ๊ณตํต response ์ ์ฉ ์๋ฃ - schemas.py ์ฌ์ฉํ์ง์์ ํ๋ผ๋ฏธํฐ ์ญ์ - api response result -> response_data๋ก ๋ช ๋ช ๊ท์น ๊ณตํตํ ์๋ฃ * feat: ๊ณตํต ์๋ต์์ํ success,error,not_found util ๊ฐ๋ฐ * chore: poetry์์กด์ฑ ์ถ๊ฐ * test: response๋ณ๊ฒฝ์ผ๋ก์ธํ ํ ์คํธ์ฝ๋ ์์ ์๋ฃ * style: ์ฝ๋ ํฌ๋งทํ * chore: poetry.lockํ์ผ update --------- Co-authored-by: kakusia <wtecho25@gmail.com> * chore : black ์ ์ฉ ๋ฐ ์ฃผ์ ๋ณ๊ฒฝ * feat: ๋ธ๋ก๊ทธ Rag๊ธฐ๋ฐ ์ฝํ ์ธ ์์ฑ * feat: ๋ธ๋ก๊ทธ Rag๊ธฐ๋ฐ ์ฝํ ์ธ ์์ฑ ํ ์คํธ ์ฝ๋ ์์ฑ ์๋ฃ * chore: poetry run black . * chore: poetry run black . * test: ์คํ๋ง ์๋์คํ์์ํ url ๊ฐ๋ฐ (#110) * test: spring Fastapi testing * refactor: test-url response refactor * style: test-url response code formating --------- Co-authored-by: kakusia <wtecho25@gmail.com> * fix : localํ๊ฒฝ docker-compose.yml network ์ถ๊ฐ * feat: blog rag create endpoint * refactor: blog service ๋ฆฌํฉํ ๋ง 1. endpoint์ ์๋ if-else ์๋น์ค๋ก ์ด๋ 2. ํ์ฌ ์๋ 3๊ฐ์ ๋ธ๋ก๊ทธ ๋ชจ๋ ํฌ์คํ ํ์์ด ๋์ผํด์ factory method ์ ์ฉ * chore: poetry run black . * fix: ํ์์๋ ๋ฉ์๋ ์ญ์ * fix: spotlessApply * ์ํฌํ๋ก์ฐ ์คํ ๋ฐ Quartz ์ค์ผ์ค๋ฌ ์ฐ๋ (#106) * chore: workflow ๋๋ฉ์ธ ๋ชจ๋ธ ์์ฑ * chore: Job ๋๋ฉ์ธ ๋ชจ๋ธ ์์ฑ * refactor: schedule ๋๋ฉ์ธ ๋๋ ํ ๋ฆฌ ์์น ์ด๋ * chore: Workflow ๋๋ฉ์ธ๊ด๋ จ Mapper ๋ฐ Service ์ค์ * chore: execution ๋๋ฉ์ธ ์์ฑ ๋ฐ mapper ์ค์ * chore: schedule ๋๋ฉ์ธ ์์ฑ ๋ฐ mapper ์ค์ * chore: Java ํ์ค ๋ผ์ดํ์ฌ์ดํด ์ด๋ ธํ ์ด์ ์ค์ ์ถ๊ฐ * refactor: workflow ๋๋ฉ์ธ ๋๋ ํ ๋ฆฌ ์์น ๋ณ๊ฒฝ * refactor: ScheduleMapper ๋ฉ์๋๋ช ๋ณ๊ฒฝ * feature: Workflow ์๋ ์คํ(REST API) * fix: ๋ถํ์ํ ์ฃผ์ ์ ๊ฑฐ * chore: ๋ถํ์ํ ์์กด์ฑ ์ ๊ฑฐ ๋ฐ Spring Quartz ์์กด์ฑ ์ถ๊ฐ * fix: ๋ถํ์ํ batch ํจํค์ง ์ญ์ * fix: ๋ถํ์ํ batch ํจํค์ง ์ญ์ * fix(deprecated): FastApiDto ์์ ์์ * refactor: Spring ๋ด์ฅ ์ค์ผ์ค๋ฌ ์ญ์ * refactor: Spring ๋ด์ฅ ์ค์ผ์ค๋ฌ ์ค์ ์ญ์ * fix: ๋ถํ์ํ WorkflowJobMapper ์ญ์ * chore: job ๋๋ฉ์ธ ์ธํ * chore: JobRun ๋๋ฉ์ธ ์ธํ * chore: Schedule ๋๋ฉ์ธ ์ธํ * chore: Task ๋๋ฉ์ธ ์ธํ * chore: TaskRun ๋๋ฉ์ธ ์ธํ * chore: WorkflowRun ๋๋ฉ์ธ ์ธํ * chore: Workflow ๋๋ฉ์ธ ์ธํ * chore: Spring Quartz ์ธํ * chore: MyBatis JsonNodeTypeHandler ์ธํ * refactor: Code Formatting * fix: ๋ถํ์ํ import ์ญ์ * refactor: execution(TaskRun, JobRun, WorkflowRun) ๋๋ฉ์ธ ์ค์ * refactor: Quartz ๊ด๋ จ datasource ์ค์ ํ์ * refactor: Mapper.xml ์์ * refactor: Code Formatting * feat: RDB,Loki ๋ก๊ทธ ์ ์ฅ logic ๊ฐ๋ฐ * refactor: loging ์ธ๋ชจ์๋ ๋ก๊ทธ ์ฃผ์๋ฐ ํ๋์ฝ๋ฉ ์ญ์ * Spring boot Promtail์ ํตํด Loki log ์ ์ก (#115) * chore: Loki Promtail์ ํตํด file ์ ์ก์ผ๋ก ๋ณ๊ฒฝ * chore: Promtail์ ํตํด loki ์ ์ก (local) * chore: Exception handler error, warn logging - warn: Data duplicate - error: Exception * fix: spanid logging ์ถ๊ฐ * chore: production grafana ์ค์ * chore: Promtail ๋ณต์ฌ ci ์์ฑ * chore: User-service promtail ์ด ํ containerํ ๋๋๋ก ์ค์ * chore: Production, grafana ์ฐ๋ ์ธํ * refactor: _default_mappings url ์ถ๊ฐ * fix: E2e ์ํ ์ truncate๋ฅผ ๊ฐ ํ ์คํธ ์ ์ํ * refactor: - log pre-processing-app.log์ ๋ก๊ทธ๊ฐ ์์ด๋๋ก ์ฝ๋ ์์ ๋ฐ ๊ฐ๋ฐ, ๊ธฐ์กด loki์ฝ๋ ์์ ์ค * feat: - Fastapi promtail local ๊ฐ๋ฐ * style: FAST API ์ฝ๋ ํฌ๋งทํ --------- Co-authored-by: thkim7 <xogusrla7@gmail.com> Co-authored-by: Yousung Jung <jys01012@gmail.com> Co-authored-by: kakusia <wtecho25@gmail.com> Co-authored-by: bwnfo3 <142577603+bwnfo3@users.noreply.github.com> Co-authored-by: Jihu Kim <jihu0210@naver.com> Co-authored-by: bwnfo3 <bwnfo0702@gmail.com> Co-authored-by: JiHoon <fair0838@gmail.com> Co-authored-by: ์กฐ์งํ <78245504+rll2641@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
๐ ์์ ๋ด์ฉ
๐ ๊ด๋ จ ์ด์
๐ฌ ์ถ๊ฐ ์์ฒญ์ฌํญ
โ ์ฒดํฌ๋ฆฌ์คํธ
์ฝ๋ ํ์ง
ํ ์คํธ
๋ฐฐํฌ ์ค๋น