Skip to content

Fix: add checkout step to reusable-fabric-etl workflow#25

Merged
michaeldeongreen merged 1 commit into
devfrom
fix/etl-workflow-checkout
May 9, 2026
Merged

Fix: add checkout step to reusable-fabric-etl workflow#25
michaeldeongreen merged 1 commit into
devfrom
fix/etl-workflow-checkout

Conversation

@michaeldeongreen

Copy link
Copy Markdown
Owner

Problem

After the Phase 1 refactor (PR #22), the ETL Prod workflow started failing with:

python: can't open file '.../scripts/run_fabric_etl.py': [Errno 2] No such file or directory

reusable-fabric-etl.yml was missing the actions/checkout step that the other two refactored reusables already have.

Why this slipped past CI

workflow_run-triggered workflows execute the workflow file from the default branch, not the head ref. When PR #23 (dev → test) merged, ETL Test ran the version of the reusable that still lived on main — the pre-refactor inline-Python version that didn't need a checkout. The bug only surfaced once PR #24 promoted the refactored reusable to main, breaking the prod ETL run that fired on that same merge.

Fix

One step added: actions/checkout, pinned to the same SHA the deploy workflows use.

Failing run for reference

https://github.com/michaeldeongreen/microsoft-fabric-sdlc-patterns/actions/runs/25597178051

Phase 1 extracted inline Python from this workflow into scripts/run_fabric_etl.py
but the corresponding actions/checkout step was never added. The other two
refactored reusables (reusable-deploy-supported.yml, reusable-deploy-bulk.yml)
both have it; only this one was missed.

Without checkout, the runner has no scripts/ directory and the python invocation
fails with 'No such file or directory'. The Phase 1 refactor's test-environment
ETL run looked successful because workflow_run-triggered workflows execute the
workflow file from the default branch — at that moment main still held the
pre-refactor inline-Python version. The bug surfaced as soon as PR #24 promoted
the refactored workflow to main, breaking the next prod ETL run.
@michaeldeongreen michaeldeongreen merged commit 356bc05 into dev May 9, 2026
2 checks passed
@michaeldeongreen michaeldeongreen deleted the fix/etl-workflow-checkout branch May 9, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant