[CI failure] Production deployment migration step runs without repository checkout
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
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
- Lingua principale
- HTML
- Stelle
- 8
- Fork
- 8
- Merge medio
- 1g 7h
- PR unite (30g)
- 89
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di IntelliTect/EssentialCSharp.Web
-
agentic-workflows
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
IntelliTect/EssentialCSharp.Web#1535 ·
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
IntelliTect/EssentialCSharp.Web#1534 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[aw] Detection RunsApertaagentic-workflows
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
IntelliTect/EssentialCSharp.Web#1452 · 6 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
automation repo-assist
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
IntelliTect/EssentialCSharp.Web#1447 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[repo-assist] Fix accessibility review app startupForse già presa @BenjaminMichaelis l’ha presa 22 giorni fa. Apertaagentic-workflows automation repo-assist
IntelliTect/EssentialCSharp.Web#1424 · 1 reazione · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di IntelliTect/EssentialCSharp.Web
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
facebookincubator/muse-gadget-sdk#249 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
notationlabs/notation#48 ·
-
debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoft/vscode-flake8#601 ·
I maintainer di solito rispondono entro 1 giorno