From bba67a4569a6317bd59b221b2a341de00e298b72 Mon Sep 17 00:00:00 2001 From: brenzi-agent <346870783+brenzi-agent@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:51:25 +0000 Subject: [PATCH 1/8] ci: run all tests on the simplex branch and its pull requests --- .github/workflows/simplex.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/simplex.yml diff --git a/.github/workflows/simplex.yml b/.github/workflows/simplex.yml new file mode 100644 index 000000000..1c92abad4 --- /dev/null +++ b/.github/workflows/simplex.yml @@ -0,0 +1,31 @@ +name: SimpleX tests + +on: + push: + branches: [simplex] + pull_request: + branches: [simplex] + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: pnpm + + - run: pnpm install --frozen-lockfile + + - run: pnpm exec hardhat compile + + - run: pnpm exec vitest run + env: + NODE_OPTIONS: --disable-warning=ExperimentalWarning From 4f65b5161a0f06b7bd16e31eccf19a186dd14173 Mon Sep 17 00:00:00 2001 From: brenzi-agent <346870783+brenzi-agent@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:55:18 +0000 Subject: [PATCH 2/8] ci: run upstream's CI only on pull requests to its branches --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e2f4376ff..cf54d0c15 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,6 +4,7 @@ on: push: branches: [staging, mainnet] pull_request: + branches: [staging, mainnet] jobs: wiki_address_check: From 3414da8c3e8356a9c9a54cbe9ea75414ecd6160c Mon Sep 17 00:00:00 2001 From: brenzi-agent <346870783+brenzi-agent@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:55:18 +0000 Subject: [PATCH 3/8] test: transfer a registration by offer and claim, as recipient consent requires --- test/ethregistrar/TestBaseRegistrar.test.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/test/ethregistrar/TestBaseRegistrar.test.ts b/test/ethregistrar/TestBaseRegistrar.test.ts index a6f3bf570..8a3207e06 100644 --- a/test/ethregistrar/TestBaseRegistrar.test.ts +++ b/test/ethregistrar/TestBaseRegistrar.test.ts @@ -166,10 +166,16 @@ describe('BaseRegistrar', () => { it('should permit the owner to transfer a registration', async () => { const { ensRegistry, baseRegistrar } = await loadFixtureWithRegistration() + await baseRegistrar.write.approve( + [otherAccount.address, toLabelId('newname')], + { + account: registrantAccount, + }, + ) await baseRegistrar.write.transferFrom( [registrantAccount.address, otherAccount.address, toLabelId('newname')], { - account: registrantAccount, + account: otherAccount, }, ) @@ -178,12 +184,18 @@ describe('BaseRegistrar', () => { ).resolves.toEqualAddress(otherAccount.address) await expect( ensRegistry.read.owner([namehash('newname.eth')]), - ).resolves.toEqualAddress(registrantAccount.address) + ).resolves.toEqualAddress(otherAccount.address) + await baseRegistrar.write.approve( + [registrantAccount.address, toLabelId('newname')], + { + account: otherAccount, + }, + ) await baseRegistrar.write.transferFrom( [otherAccount.address, registrantAccount.address, toLabelId('newname')], { - account: otherAccount, + account: registrantAccount, }, ) }) From 1b683241a1c17d69da7465c467509924db812bd5 Mon Sep 17 00:00:00 2001 From: brenzi-agent <346870783+brenzi-agent@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:06:27 +0000 Subject: [PATCH 4/8] ci: limit the test workflow's token to reading contents --- .github/workflows/simplex.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/simplex.yml b/.github/workflows/simplex.yml index 1c92abad4..b87ce35cc 100644 --- a/.github/workflows/simplex.yml +++ b/.github/workflows/simplex.yml @@ -7,6 +7,9 @@ on: branches: [simplex] workflow_dispatch: +permissions: + contents: read + jobs: test: runs-on: ubuntu-latest From 89957e3334efbd950d1bfd54915debf674be6f2e Mon Sep 17 00:00:00 2001 From: brenzi-agent <346870783+brenzi-agent@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:24:13 +0000 Subject: [PATCH 5/8] ci: run upstream's CI only on pushes to its branches --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf54d0c15..c684c11b9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,8 +3,6 @@ name: CI on: push: branches: [staging, mainnet] - pull_request: - branches: [staging, mainnet] jobs: wiki_address_check: From 4a240edaf0f89b6fa1bb1e95d8729a953d6bf9b4 Mon Sep 17 00:00:00 2001 From: brenzi-agent <346870783+brenzi-agent@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:24:14 +0000 Subject: [PATCH 6/8] ci: drop the manual trigger, which needs the default branch --- .github/workflows/simplex.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/simplex.yml b/.github/workflows/simplex.yml index b87ce35cc..2c881f096 100644 --- a/.github/workflows/simplex.yml +++ b/.github/workflows/simplex.yml @@ -5,7 +5,6 @@ on: branches: [simplex] pull_request: branches: [simplex] - workflow_dispatch: permissions: contents: read From f333cb1d6532b75902193e73e86c84c4813f48b3 Mon Sep 17 00:00:00 2001 From: brenzi-agent <346870783+brenzi-agent@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:26:57 +0000 Subject: [PATCH 7/8] ci: type-check the tests and scripts --- .github/workflows/simplex.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/simplex.yml b/.github/workflows/simplex.yml index 2c881f096..925ea2563 100644 --- a/.github/workflows/simplex.yml +++ b/.github/workflows/simplex.yml @@ -28,6 +28,8 @@ jobs: - run: pnpm exec hardhat compile + - run: pnpm exec tsc --noEmit + - run: pnpm exec vitest run env: NODE_OPTIONS: --disable-warning=ExperimentalWarning From c752d5ca6f5a47020b3eabad8278faf99e7931cd Mon Sep 17 00:00:00 2001 From: brenzi-agent <346870783+brenzi-agent@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:29:40 +0000 Subject: [PATCH 8/8] ci: drop the type check, which fails on files outside the tests --- .github/workflows/simplex.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/simplex.yml b/.github/workflows/simplex.yml index 925ea2563..2c881f096 100644 --- a/.github/workflows/simplex.yml +++ b/.github/workflows/simplex.yml @@ -28,8 +28,6 @@ jobs: - run: pnpm exec hardhat compile - - run: pnpm exec tsc --noEmit - - run: pnpm exec vitest run env: NODE_OPTIONS: --disable-warning=ExperimentalWarning