Skip to content

fix: モジュール検出がhardware/zonesを誤検出する問題を修正 - #53

Merged
kigawa01 merged 1 commit into
mainfrom
fix/detect-modules-exclude-zones
Jul 23, 2026
Merged

fix: モジュール検出がhardware/zonesを誤検出する問題を修正#53
kigawa01 merged 1 commit into
mainfrom
fix/detect-modules-exclude-zones

Conversation

@kigawa01

Copy link
Copy Markdown
Member

Summary

kigawa-net/infra PR #51hardware/zones/kigawa.net.zoneにAレコード追加)で、既存のterraform.ymlのPR自動plan(module検出→plan→PRコメント)が以下のエラーで失敗した:

Error: No configuration files
Plan requires configuration to be present.

hardware/zones/配下は.tfファイルを含まないゾーンデータ(.zone)のみで、それ自体はterraformモジュールではない。しかしdetect-modulesジョブのHARDWARE_SUB_MODULES検出ロジックはhardware/modules/のみを除外対象としており、zones/は除外されていなかったため、zonesが誤ってモジュール名として検出されていた。

Changes

  • .github/workflows/terraform.yml: HARDWARE_SUB_MODULES検出の除外パターンにzonesを追加(modulesと同様の扱い)

Test plan

  • YAML構文チェック
  • マージ後、hardware/zones/のみを変更するPRでdetect-moduleszonesをモジュールとして検出しないことを確認

🤖 Generated with Claude Code

hardware/zones/配下は.tfファイルを含まないゾーンデータ(.zone)のみで、
それ自体はterraformモジュールではない。しかしdetect-modulesの
HARDWARE_SUB_MODULES検出ロジックがhardware/modules/のみを除外しており、
hardware/zones/kigawa.net.zoneを変更したPR(#51)で"zones"が
誤ってモジュールとして検出され、"Error: No configuration files"で
CIが失敗していた。

hardware/modules/と同様にhardware/zones/も除外対象に追加した。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@kigawa01
kigawa01 marked this pull request as ready for review July 23, 2026 16:14
@kigawa01
kigawa01 merged commit af77d08 into main Jul 23, 2026
@kigawa01
kigawa01 deleted the fix/detect-modules-exclude-zones branch July 23, 2026 16:15
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.

1 participant