Skip to content

Comments

Fix runtime-import crash by including workflows folder in sparse-checkout#13512

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/debug-crash-issue
Closed

Fix runtime-import crash by including workflows folder in sparse-checkout#13512
Copilot wants to merge 3 commits intomainfrom
copilot/debug-crash-issue

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

Workflows crashed during prompt generation with "Runtime import file not found: workflows/issue-triage-agent.md". The runtime-import JavaScript attempted to read .github/workflows/*.md files, but sparse-checkout only included the actions folder.

Changes

Sparse-checkout configuration (pkg/workflow/compiler_yaml_helpers.go)

  • Added workflows folder to sparse-checkout for dev and script modes
  • All 149 workflows use runtime-import macros for their markdown content, so this folder is universally required

Before:

sparse-checkout: |
  actions

After:

sparse-checkout: |
  actions
  workflows

Test coverage (pkg/workflow/compiler_yaml_helpers_test.go)

  • Added TestGenerateCheckoutActionsFolder to verify both folders are included in sparse-checkout
  • Covers dev mode, script mode, release mode, and action-tag feature flag scenarios

Impact

All workflow lock files recompiled with updated sparse-checkout. Runtime-import macros will now successfully resolve workflow markdown files at execution time.

Original prompt

Reference: https://github.com/github/gh-aw/actions/runs/21633765610/job/62353295108#step:19:1

Debug why it crashed.

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 3, 2026 14:29
…kout

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix crash issue during execution Fix runtime-import crash by including workflows folder in sparse-checkout Feb 3, 2026
Copilot AI requested a review from pelikhan February 3, 2026 14:32
@pelikhan pelikhan closed this Feb 3, 2026
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.

2 participants