Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[CI failure] Production deployment migration step runs without repository checkout

クローズ 初心者向け
#1,466 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

bug

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 in deploy-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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IntelliTect/EssentialCSharp.Web のほかの issue

IntelliTect/EssentialCSharp.Web の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。