From 7dbf554a7c7965d20f82e326a153bb3a0ce4aeac Mon Sep 17 00:00:00 2001 From: Josh Dzielak <174777+joshed-io@users.noreply.github.com> Date: Wed, 18 Feb 2026 15:20:25 +0100 Subject: [PATCH 1/2] Fix notion-cli CI test failures from Notion API rate limiting Run test files sequentially (--test-concurrency=1) to avoid overwhelming Notion's rate limit when all 10 files hit the API in parallel. --- notion-cli/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notion-cli/package.json b/notion-cli/package.json index fc1a59a..13a7304 100644 --- a/notion-cli/package.json +++ b/notion-cli/package.json @@ -10,7 +10,7 @@ "build": "tsc", "prepare": "npm run build", "cli": "npx tsx cli.ts", - "test": "node --import tsx --test ./test/docs.test.ts ./test/user.test.ts ./test/search.test.ts ./test/page.test.ts ./test/block.test.ts ./test/comment.test.ts ./test/database.test.ts ./test/datasource.test.ts ./test/file.test.ts ./test/integration-cmd.test.ts", + "test": "node --import tsx --test --test-concurrency=1 ./test/docs.test.ts ./test/user.test.ts ./test/search.test.ts ./test/page.test.ts ./test/block.test.ts ./test/comment.test.ts ./test/database.test.ts ./test/datasource.test.ts ./test/file.test.ts ./test/integration-cmd.test.ts", "test:docs": "node --import tsx --test ./test/docs.test.ts", "test:user": "node --import tsx --test ./test/user.test.ts", "test:search": "node --import tsx --test ./test/search.test.ts", From 84b7dd7b453abe1c6560c9a4fa20ade9e9f6e066 Mon Sep 17 00:00:00 2001 From: Josh Dzielak <174777+joshed-io@users.noreply.github.com> Date: Wed, 18 Feb 2026 15:23:28 +0100 Subject: [PATCH 2/2] Avoid duplicate CI runs on PR branches Limit push trigger to main only; PRs are covered by pull_request. Add concurrency group to cancel stale runs on the same ref. --- .github/workflows/notion-cli.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/notion-cli.yml b/.github/workflows/notion-cli.yml index aa0a243..c3639e0 100644 --- a/.github/workflows/notion-cli.yml +++ b/.github/workflows/notion-cli.yml @@ -2,6 +2,7 @@ name: notion-cli on: push: + branches: [main] paths: - "notion-cli/**" pull_request: @@ -9,6 +10,10 @@ on: - "notion-cli/**" workflow_dispatch: # allow manual runs +concurrency: + group: notion-cli-${{ github.ref }} + cancel-in-progress: true + defaults: run: working-directory: notion-cli