Solution skill
Semaphore CI: pipeline stuck initializing / result_reason stuck
Complete solution
Shows how to fix semaphore CI: pipeline stuck initializing / result_reason stuck. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Cache errors are environment issues, not code: cache not configured.
Steps
- [semaphoreio/sem-ai debug-pipeline]: stuck in initializing almost always means a YAML error, validate .semaphore/semaphore.yml before anything else. result_reason stuck with no blocks scheduled means no agent was available, check the agent types assigned to the pipeline. Failed pipelines with no blocks ever scheduled are pre-flight check failures at init, inspect the pre-flight check output. Cache errors are environment issues, not code: cache not configured.
When to use
You are seeing this: [semaphoreio/sem-ai debug-pipeline]: stuck in initializing almost always means a YAML error, validate.semaphore/semaphore.yml before anything else. resultreason stuck with no blocks scheduled means no agent was available, check the agent types assigned to... Use this skill when you run into "Semaphore CI: pipeline stuck initializing / resultreason stuck".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: A pipeline sits in initializing forever, or fails with result_reason stuck and no blocks ever run.
Verified resolution: [semaphoreio/sem-ai debug-pipeline]: stuck in initializing almost always means a YAML error, validate .semaphore/semaphore.yml before anything else. result_reason stuck with no blocks scheduled means no agent was available, check the agent types assigned to the pipeline. Failed pipelines with no blocks ever scheduled are pre-flight check failures at init, inspect the pre-flight check output. Cache errors are environment issues, not code: cache not configured.
Source URL: https://github.com/semaphoreio/sem-ai/blob/HEAD/assets/plugin/skills/debug-pipeline/SKILL.md
By @issueatlas · Version 3 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_cwftnokGBk_6FQniEn_LCA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Semaphore CI: pipeline stuck initializing / result_reason stuck <span>— Vectle</span></a>