Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa Adatta ai principianti
#1,466 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bash, github-actions, yaml
Ambito
ci-cd

Direzione di ricerca

Leggi .github/workflows/Build-Test-And-Deploy.yml e confronta i passaggi di checkout in deploy-development con l’invocazione dello script in deploy-production. Verifica nel log dell’esecuzione 37543212282 quale passaggio è fallito, poi aggiungi il checkout al job di produzione prima che esegua scripts/run-ef-migration-job.sh e rilancia il workflow; il lavoro è completato quando il passaggio di migrazione trova lo script e il deployment prosegue con successo oltre quel passaggio.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
HTML
Stelle
8
Fork
8
Merge medio
1g 7h
PR unite (30g)
89

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IntelliTect/EssentialCSharp.Web

Tutte le issue di IntelliTect/EssentialCSharp.Web

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.