Skip to content

Commit d5efb58

Browse files
committed
ci: verify malformed settings successor on current dev
1 parent 013e66e commit d5efb58

1 file changed

Lines changed: 10 additions & 30 deletions

File tree

.github/workflows/rebuild-settings-successor.yml

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,18 @@ jobs:
1919
fetch-depth: 0
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121

22-
- name: Apply closed-PR net diff to current dev
23-
id: apply
24-
continue-on-error: true
22+
- name: Rebuild closed-PR net diff on current dev
2523
shell: bash
2624
run: |
2725
git config user.name 'twoimo'
2826
git config user.email '32544727+twoimo@users.noreply.github.com'
27+
git remote add upstream https://github.com/Yeachan-Heo/gajae-code.git || true
28+
git fetch --no-tags upstream dev
2929
git fetch --no-tags origin backup/malformed-settings-e5f15e86
30+
git reset --hard upstream/dev
3031
git diff --binary 96f64a8e22eacf496742c87b0be2a38f1821ba91..origin/backup/malformed-settings-e5f15e86 > /tmp/settings-successor.patch
31-
if ! git apply --3way --index /tmp/settings-successor.patch; then
32-
git diff --name-only --diff-filter=U | sort > /tmp/settings-conflicts.txt
33-
git diff --cc > /tmp/settings-conflict-diff.txt
34-
exit 1
35-
fi
36-
37-
- name: Upload conflict evidence
38-
if: steps.apply.outcome == 'failure'
39-
uses: actions/upload-artifact@v4
40-
with:
41-
name: settings-successor-conflicts-${{ github.run_id }}
42-
path: |
43-
/tmp/settings-conflicts.txt
44-
/tmp/settings-conflict-diff.txt
45-
if-no-files-found: error
46-
retention-days: 1
47-
48-
- name: Stop after conflict capture
49-
if: steps.apply.outcome == 'failure'
50-
run: exit 1
32+
git apply --3way --index /tmp/settings-successor.patch
33+
test -z "$(git diff --name-only --diff-filter=U)"
5134
5235
- uses: oven-sh/setup-bun@v2
5336
with:
@@ -64,7 +47,8 @@ jobs:
6447
git add "${changed[@]}"
6548
fi
6649
67-
- run: bun test --timeout 30000 packages/coding-agent/test/modes/components/settings-selector-pet.test.ts
50+
- name: Re-run exact prior blocker
51+
run: bun test --timeout 30000 packages/coding-agent/test/modes/components/settings-selector-pet.test.ts
6852

6953
- name: Run malformed-settings control suite
7054
run: |
@@ -76,16 +60,12 @@ jobs:
7660
packages/coding-agent/test/modes/components/settings-selector-pet.test.ts \
7761
packages/coding-agent/test/modes/components/thinking-selector.test.ts \
7862
packages/coding-agent/test/startup-update-contract.test.ts
79-
80-
- name: Run package check and build
81-
run: |
8263
bun --cwd=packages/coding-agent run check
8364
bun --cwd=packages/coding-agent run build
8465
85-
- name: Commit verified successor
66+
- name: Publish verified clean successor
8667
shell: bash
8768
run: |
88-
git rm .github/trigger/rebuild-settings-successor
8969
git add -A
9070
git commit -m 'fix(coding-agent): harden malformed settings recovery'
91-
git push origin HEAD:successor/malformed-settings-recovery-current
71+
git push --force origin HEAD:successor/malformed-settings-recovery-current

0 commit comments

Comments
 (0)