Repository navigation
refactor: mark the workflows called only by other shared workflows as internal - #8
Merged
Merged
Conversation
… internal Claude-Session: https://claude.ai/code/session_01R7jQZQj1VyeBbYR7P1ssV7 Signed-off-by: panicboat <panicboat@gmail.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Claude-Session: https://claude.ai/code/session_01R7jQZQj1VyeBbYR7P1ssV7 Signed-off-by: panicboat <panicboat@gmail.com>
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
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.
Summary
共通の workflow の中からだけ呼ぶ 3 つの workflow を、接頭辞
internal--で区別し、中身に合う名前に変えます。Why
reusable--*には、他のリポジトリから呼ぶものと、resolver などの中から$/でだけ呼ぶものが混ざっていて、ファイル名から区別できません。reusable workflow は
.github/workflowsの直下にしか置けず、サブディレクトリはサポートされていないので、.github/internalには移せません。そのため、置き場所ではなくファイル名の接頭辞で区別します。
あわせて、中身と合っていなかった名前を、やっていることに合わせて変えます。
Before / After
reusable--container-builder・reusable--kubernetes-builder・reusable--kubernetes-hydratorinternal--image-builder・internal--kustomize-builder・internal--helmfile-hydratorkubernetes-builderの本体は head と base のkustomize buildなので、kustomize-builderにします。kubernetes-hydratorは helmfile で manifest を描画するだけなので、helmfile-hydratorにします。reusable--*は変わりません。Decisions
reusable--terragrunt-runnerはinternal--にしません。deploy-dystopia-lambdaが直接呼んでいるためです。$/で指している workflow が実在することを確かめるテストを足しました。refactorなので release は出ません。feat・fixの release で一緒に届けば十分です。scripts/kubernetes-hydrate/、kustomize の job の名前Kustomize Diffは変えていません。Impact
internal--*の説明を足しました。Verification
bash scripts/workflows/test.shで 6 件すべて PASS しました。test_nested_calls_resolve_to_existing_workflowsがmissing: $/.github/workflows/internal--image-builderX.yamlで FAIL することを確かめました。scripts/*/test.sh・scripts/*/*.test.sh・scripts/kubernetes-hydrate/tests/*.test.shがすべて通りました。$/は呼び出し元と同じ commit に解決されるので、古い SHA に固定したリポジトリは古い名前を、新しい SHA に固定したリポジトリは新しい名前を参照し、どちらも壊れません。Relations
🤖 Generated with Claude Code
https://claude.ai/code/session_01R7jQZQj1VyeBbYR7P1ssV7