[CI failure] Production deployment migration step runs without repository checkout
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bash, github-actions, yaml
- 領域
- ci-cd
調査の方向性
.github/workflows/Build-Test-And-Deploy.ymlを読み、deploy-developmentのcheckoutステップとdeploy-productionのスクリプト呼び出しを比較してください。実行37543212282のログで失敗したステップを確認し、その後、scripts/run-ef-migration-job.shを実行する前にproductionジョブにcheckoutを追加して、workflowを再実行してください。migrationステップがスクリプトを見つけ、その先もdeploymentが成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The post-merge deployment run is most likely failing in deploy-production at the new Run database migrations step because that job invokes scripts/run-ef-migration-job.sh without first checking out the repository. GitHub Actions jobs start without workspace source files; therefore Bash cannot find the script. The same commit adds actions/[email protected] to deploy-development, but not to deploy-production.
Failure details
- Run: https://github.com/IntelliTect/EssentialCSharp.Web/actions/runs/37543212282
- Commit:
8909cde2042ba857bf6e5eb5f72eb6f2140633be - Failed job and step: Likely
deploy-production/Run database migrations(the raw run-log endpoint is not exposed by the available GitHub read interface) - Classification: Workflow or environment configuration
- Confidence: High for the workflow defect; medium for attributing this specific run to that defect until the failed-step log is checked
Evidence
The commit diff for .github/workflows/Build-Test-And-Deploy.yml adds checkout at approximately lines 287-288 inside deploy-development. It adds the production migration step at approximately lines 391-398:
- name: Run database migrations
env:
MIGRATION_IMAGE: ${{ vars.PRODCONTAINER_REGISTRY }}/essentialcsharpweb@${{ steps.import.outputs.digest }}
MIGRATION_JOB_NAME: ${{ vars.MIGRATION_JOB_NAME }}
RESOURCEGROUP: ${{ vars.RESOURCEGROUP }}
run: bash scripts/run-ef-migration-job.sh
No corresponding checkout is added to deploy-production. The script exists only in the repository at scripts/run-ef-migration-job.sh, so the expected confirmation is a production-job error such as bash: scripts/run-ef-migration-job.sh: No such file or directory. The script itself was introduced by the same commit. The existing PR review identified related deployment-job wiring risks, and no open issue was found for this exact checkout omission.
Recommended actions
- Add
- uses: actions/[email protected]as the first step indeploy-production, before the migration step, then rerun the workflow. - Confirm run
37543212282's failed-step log contains the missing-script error; if it instead fails inside Azure CLI, retain this checkout fix and open a separate issue for the Azure error rather than conflating the causes. - Add a workflow validation or smoke check that verifies every job executing a repository script has an explicit checkout step.
Prevention
Keep repository-script execution behind an explicit checkout in every job, and add a static workflow check that flags run: bash scripts/ in jobs lacking actions/checkout.
Generated by CI Failure Doctor · copilot · gpt56 · 10.4 AIC · ⌖ 2.61 AIC · ⊞ 24K · ◷
Add this agentic workflow to your repo
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/ci-doctor.md@5d11aa2a05ce2c943c085acb7b12b583f83ed375
- 主要言語
- HTML
- スター
- 8
- フォーク
- 8
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 89
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
IntelliTect/EssentialCSharp.Web のほかの issue
-
agentic-workflows
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
IntelliTect/EssentialCSharp.Web#1535 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
IntelliTect/EssentialCSharp.Web#1534 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[aw] Detection Runsオープンagentic-workflows
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
IntelliTect/EssentialCSharp.Web#1452 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
-
automation repo-assist
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
IntelliTect/EssentialCSharp.Web#1447 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[repo-assist] Fix accessibility review app startup対応中かも @BenjaminMichaelis が 22 日前に担当しました。 オープンagentic-workflows automation repo-assist
IntelliTect/EssentialCSharp.Web#1424 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
IntelliTect/EssentialCSharp.Web の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
area: deploy good first issue security
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 半日 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
yunaremaia/ci-sandbox#89 ·