Skip to content

refactor: 서브모듈 포인터 변경 시 terraform plan/apply 실행되도록 경로 감지 기준 수정#47

Merged
Hexeong merged 1 commit into
mainfrom
refactor/46-check-submodule-pointer
Jun 17, 2026
Merged

refactor: 서브모듈 포인터 변경 시 terraform plan/apply 실행되도록 경로 감지 기준 수정#47
Hexeong merged 1 commit into
mainfrom
refactor/46-check-submodule-pointer

Conversation

@Hexeong

@Hexeong Hexeong commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

관련 이슈

작업 내용

dorny/paths-filter의 감지 경로를 수정하여 config/secrets 서브모듈 포인터 변경 시에도 terraform plan/apply가 실행되도록 합니다.

변경 파일: .github/workflows/terraform-plan.yml, .github/workflows/terraform-apply.yml

AS-IS

  • 각 filter group에 config/secrets/app_stack.tfvars, config/secrets/prod.tfvars 등 서브모듈 내부 파일 경로를 명시
  • 서브모듈 내부 파일은 인프라 레포 git diff에 나타나지 않아 실제로 감지되지 않았음 (비동작 설정)
  • 서브모듈 포인터만 변경되는 PR에서 plan/apply가 스킵됨

TO-BE

  • 서브모듈 내부 파일 경로를 모두 제거하고 config/secrets(서브모듈 포인터) 하나로 통일
  • 서브모듈 포인터 변경 시 해당 환경의 plan/apply가 실행됨
  • 서브모듈 내 구체적 파일명이 워크플로우에 노출되지 않음

특이 사항

  • 기존 config/secrets/*.tfvars 경로는 서브모듈 특성상 인프라 레포 diff에 나타나지 않아 원래부터 동작하지 않던 설정이었음
  • config/secrets 포인터는 서브모듈 내 어떤 파일이 변경되든 항상 함께 업데이트되므로 감지 기준으로 충분함

리뷰 요구사항 (선택)

  • config/secrets 하나로 모든 환경 filter를 커버하는 것이 의도에 맞는지 확인 부탁드립니다

@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Hexeong, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 25 minutes and 33 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8f045db6-d908-4a89-b2c6-baeb48a49b74

📥 Commits

Reviewing files that changed from the base of the PR and between 7419217 and cae3852.

📒 Files selected for processing (3)
  • .github/workflows/terraform-apply.yml
  • .github/workflows/terraform-plan.yml
  • config/secrets
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/46-check-submodule-pointer

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown

Terraform Plan: stage

Plan: 0 to add, 1 to change, 0 to destroy.

전체 plan 결과는 보안을 위해 댓글에 포함되지 않습니다. 워크플로우 실행 아티팩트를 확인하세요.

@github-actions

Copy link
Copy Markdown

Terraform Plan: monitoring

No changes. Your infrastructure matches the configuration.

전체 plan 결과는 보안을 위해 댓글에 포함되지 않습니다. 워크플로우 실행 아티팩트를 확인하세요.

@github-actions

Copy link
Copy Markdown

Terraform Plan: global

No changes. Your infrastructure matches the configuration.

전체 plan 결과는 보안을 위해 댓글에 포함되지 않습니다. 워크플로우 실행 아티팩트를 확인하세요.

@github-actions

Copy link
Copy Markdown

Terraform Plan: prod

Plan: 0 to add, 1 to change, 0 to destroy.

전체 plan 결과는 보안을 위해 댓글에 포함되지 않습니다. 워크플로우 실행 아티팩트를 확인하세요.

@lsy1307 lsy1307 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

큰 변경 사항은 없네용 수고하셨습니다

@Hexeong Hexeong merged commit fc79ded into main Jun 17, 2026
7 checks passed
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.

fix: 서브모듈 포인터 변경 시 terraform plan/apply 미실행 문제

2 participants