Skip to content

Commit 9613aff

Browse files
authored
ci: Run SDK browser smoke tests as a separate workflow job (#3372)
## Summary Separates SDK browser smoke tests from the main browser end-to-end test job into its own dedicated workflow job for better CI visibility and parallel execution. ## Changes - Extracted `npm run test-browser-smoke` from existing browser test job - Created new `sdk-browser-smoke-test` job with required Docker services and test environment configuration – this includes `cassandra` now for the resend testing. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Separates SDK browser smoke tests from the main browser E2E job and updates test credentials. > > - Adds `sdk-browser-smoke-test` job in `.github/workflows/validate.yml` with browser setup, required Docker services (including `cassandra`), and runs `npm run test-browser-smoke` > - Removes inline `npm run test-browser-smoke` execution from `sdk-browser-e2e` job > - Updates `packages/sdk/test/browser-smoke-test/smoke-test.html` to use a new `PUBLISHER_KEY` value > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 9562af2. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 7039eea commit 9613aff

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/validate.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,17 @@ jobs:
155155
command: |
156156
sudo apt-get install xvfb
157157
xvfb-run --auto-servernum npm run test-browser-end-to-end
158-
npm run test-browser-smoke
158+
sdk-browser-smoke-test:
159+
needs: build
160+
uses: ./.github/workflows/test-setup.yml
161+
with:
162+
package: sdk
163+
browser: true
164+
extra-log-prefix: '-browser-smoke-test'
165+
docker-services: cassandra init-keyspace dev-chain-fast deploy-network-subgraphs-fastchain
166+
run-entry-point: true
167+
run-nodes: true
168+
command: npm run test-browser-smoke
159169
cli-tools:
160170
needs: build
161171
uses: ./.github/workflows/test-setup.yml

packages/sdk/test/browser-smoke-test/smoke-test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script src='/static/exports-umd.min.js'></script>
77
<script>
88
const SUBSCRIBER_KEY = '0000000000000000000000000000000000000000000000000000000000000055'
9-
const PUBLISHER_KEY = '0000000000000000000000000000000000000000000000000000000000000056'
9+
const PUBLISHER_KEY = '0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0'
1010
const STORAGE_NODE_ADDRESS = '0xde1112f631486CfC759A50196853011528bC5FA0'
1111
const PUBLISH_RATE_IN_MS = 300
1212
let publishMsgCounter = 0

0 commit comments

Comments
 (0)