Skip to content

Commit 0650c6c

Browse files
committed
fix: gh api tag creation syntax + remove --depth=1 in Dockerfile [skip-version]
- Fix gh api to use lightweight tags (POST to /git/refs/{ref} with sha body) instead of annotated tags (which require message field) - Handle 422 (already exists) gracefully by checking if tag exists via GET - Remove --depth=1 from pi git clone in Dockerfile (breaks tag fetches)
1 parent 2aad258 commit 0650c6c

15 files changed

Lines changed: 22 additions & 6 deletions

.github/workflows/build-and-publish.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,18 @@ jobs:
154154
echo "Tagging $repo@$VERSION (from $branch)"
155155
sha=$(git ls-remote "https://github.com/$repo.git" "refs/heads/$branch" | awk '{print $1}')
156156
if [ -n "$sha" ]; then
157-
gh api repos/$repo/git/refs/tags \
158-
--method POST \
159-
-f ref="refs/tags/$VERSION" \
160-
-f sha="$sha" \
161-
2>/dev/null && echo " ✅ $repo@$VERSION" || echo " ⚠️ $repo tag skipped (may exist)"
157+
# Create lightweight tags: POST to /git/refs/{ref} with sha body
158+
# Handle 422 (already exists) gracefully by checking if tag exists
159+
if gh api "repos/$repo/git/refs/refs/tags/$VERSION" \
160+
--method POST \
161+
-f sha="$sha" \
162+
2>/dev/null; then
163+
echo " ✅ $repo@$VERSION"
164+
elif gh api "repos/$repo/git/ref/tags/$VERSION" 2>/dev/null > /dev/null; then
165+
echo " ✅ $repo@$VERSION (already exists)"
166+
else
167+
echo " ⚠️ $repo tag creation failed (tag doesn't exist)"
168+
fi
162169
else
163170
echo " ⚠️ $repo:$branch not found, skipping tag"
164171
fi

.pi/memory-user.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
User Preferences (Memory):
2+
3+
1. **Subprocess Model Routing Verification**: User prefers verifying subprocess model routing by having it perform a visible task (tell a story, do computation) so they can watch NPU/monitoring tools to confirm the right model hardware is active, rather than just checking log output. <!-- created=2026-08-15 -->
4+
5+
2. **Configurable Timeouts & Thresholds**: User explicitly stated timeouts should be configurable, not hardcoded — important for fine-tuning operations. This applies to all timeout/threshold values in subprocess invocations (NPU model calls). <!-- created=2026-08-15 -->
6+
7+
3. **Upstream Fixes Over Downstream Workarounds**: Prefers proper root-cause fixes over workarounds/band-aids. Calls out when a solution masks a deeper design problem (e.g., "this was a workaround not a proper solution"). Expects upstream prevention (fix prompts/architecture) rather than downstream filtering (regex patterns, meta-entry cleanup). <!-- created=2026-08-15 -->
8+
9+
4. **lpb-memory NPU Model**: User wants the lpb-memory extension to use the NPU model (a separate model from the main Qwen3.6-35B-A3B-MTP-GGUF session model) for background memory operations. <!-- created=2026-08-15 -->

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ RUN --mount=type=cache,target=/home/lpb/.npm \
124124
RUN set -eux; \
125125
export PATH="/home/lpb/.npm-global/bin:${PATH}"; \
126126
mkdir -p /opt/pi-src && cd /opt/pi-src; \
127-
git clone --depth=1 --branch lpb-dev ${PI_FORK} .; \
127+
git clone --branch lpb-dev ${PI_FORK} .; \
128128
git fetch origin ${PI_REF}; \
129129
git checkout ${PI_REF}; \
130130
git config user.email "build@localpibox.dev"; \
71.9 KB
Binary file not shown.
1.17 KB
Binary file not shown.
5.65 KB
Binary file not shown.
5.77 KB
Binary file not shown.
6.95 KB
Binary file not shown.
5 KB
Binary file not shown.
8.27 KB
Binary file not shown.

0 commit comments

Comments
 (0)