Skip to content

ci: rebuild and verify malformed settings successor #1

ci: rebuild and verify malformed settings successor

ci: rebuild and verify malformed settings successor #1

name: Rebuild and verify malformed settings successor
on:
push:
branches:
- successor/malformed-settings-recovery-current
permissions:
contents: write
jobs:
rebuild:
if: github.actor == 'twoimo'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: successor/malformed-settings-recovery-current
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Apply reviewed net diff to current upstream dev
shell: bash
run: |
git config user.name "twoimo"
git config user.email "32544727+twoimo@users.noreply.github.com"
git remote add upstream https://github.com/Yeachan-Heo/gajae-code.git || true
git fetch --no-tags upstream dev
git fetch --no-tags origin backup/malformed-settings-e5f15e86
git reset --hard upstream/dev
git diff --binary \
96f64a8e22eacf496742c87b0be2a38f1821ba91..origin/backup/malformed-settings-e5f15e86 \
> /tmp/malformed-settings.patch
git apply --3way --index /tmp/malformed-settings.patch
test -z "$(git diff --name-only --diff-filter=U)"
- uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3'
- name: Install and format changed TypeScript
shell: bash
run: |
bun install --frozen-lockfile
changed="$(git diff --cached --name-only -- '*.ts' '*.tsx')"
if [ -n "$changed" ]; then
bunx biome check --write $changed
git add $changed
fi
- name: Re-run exact prior blocker
run: bun test --timeout 30000 packages/coding-agent/test/modes/components/settings-selector-pet.test.ts
- name: Run malformed-settings and control regression boundary
run: |
bun test --timeout 30000 \
packages/coding-agent/test/notifications-config.test.ts \
packages/coding-agent/test/settings-manager.test.ts \
packages/coding-agent/test/issue-775-repro.test.ts \
packages/coding-agent/test/modes/components/settings-selector-memory-refresh.test.ts \
packages/coding-agent/test/modes/components/settings-selector-pet.test.ts \
packages/coding-agent/test/modes/components/thinking-selector.test.ts \
packages/coding-agent/test/startup-update-contract.test.ts
bun --cwd=packages/coding-agent run check
bun --cwd=packages/coding-agent run build
- name: Publish verified clean successor
shell: bash
run: |
git add -A
git commit -m "fix(coding-agent): harden malformed settings recovery"
git push --force origin HEAD:successor/malformed-settings-recovery-current