You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Code Quality] Fix context.Background() in pkg/parser/remote_workflow_spec.go to honour compile cancellation #48469
pkg/parser/remote_workflow_spec.go hard-codes context.Background() for three network calls (downloadFileFromGitHub / resolveRefToSHA at lines 91, 93, 156), even though these calls execute during the compilation pipeline where the caller holds a live, cancellable context. When a user presses Ctrl+C, compilation continues at these network steps until they time out.
A TODO comment at line 71 already acknowledges this gap.
Suggested Changes
Pass a context.Context parameter through downloadFileFromGitHub and resolveRefToSHA
Replace context.Background() at lines 91, 93, and 156 with the propagated context
Update all callers that invoke these functions to pass their existing context
Activity
github-actions commentedon Jul 29, 2026
This issue was automatically closed because it expired on 2026-07-29T01:17:59.859Z.