Skip to content

Commit a85de08

Browse files
authored
Merge branch 'naga' into feature/jss-110-security-pin-all-versions-v8
2 parents 5e9f92c + 7481a12 commit a85de08

30 files changed

+2270
-1030
lines changed

.github/workflows/e2e-naga.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ jobs:
5656
# - environment: naga-staging
5757
# network: naga-staging
5858
# privateKey: LIVE_MASTER_ACCOUNT_NAGA_STAGING
59-
# - environment: naga-test
60-
# network: naga-test
61-
# privateKey: LIVE_MASTER_ACCOUNT_NAGA_TEST
59+
- environment: naga-test
60+
network: naga-test
61+
privateKey: LIVE_MASTER_ACCOUNT_NAGA_TEST
6262
env:
6363
LOG_LEVEL: debug2
6464
LIVE_MASTER_ACCOUNT: ${{ secrets[matrix.privateKey] }}

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,31 @@ LOCAL_MASTER_ACCOUNT=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf
5555
NETWORK=<network-name> pnpm run test:e2e all
5656
```
5757

58+
### Target a specific spec
59+
60+
Use `test:target` when you only need to exercise one file:
61+
62+
```bash
63+
pnpm run test:target packages/e2e/src/tickets/delegation.spec.ts
64+
```
65+
66+
Append additional Jest flags after the path if you need finer filtering.
67+
68+
## QA Starter Kit workflow
69+
70+
When you need to validate SDK integrations against backend or node features, lean on the [QA Starter Kit](https://github.com/LIT-Protocol/QA-kit). That repo installs published packages, so it mirrors how downstream teams will consume the SDK.
71+
72+
1. The node team opens a feature branch for their service.
73+
2. Create a matching SDK branch and build the integration for that node change.
74+
3. Publish a snapshot (prerelease) of the SDK packages so the QA Starter Kit can install them from npm.
75+
4. Point the QA Starter Kit to that snapshot to perform the e2e flow before promoting the release.
76+
77+
This keeps QA aligned with the packages that will actually ship and avoids the drift that comes with local linking.
78+
5879
# Running it against a local network
5980

81+
Generate a fresh `networkContext.json` for local nodes with `pnpm run gen:local-network-context` before running the e2e tests against the `naga-local` local network.
82+
6083
## Required Environment Variables
6184

6285
```bash
@@ -132,6 +155,18 @@ This command must be run manually and is NOT part of the build process, as it re
132155
DEV_BRANCH=develop GH_API_KEY=github_pat_xxx pnpm run sync:contracts
133156
```
134157

158+
## Keeping the docs changelog in sync with the public site
159+
160+
Use the `sync:docs-changelog` script to refresh the changelog that powers [naga.developer.litprotocol.com/changelog](https://naga.developer.litprotocol.com/changelog).
161+
162+
```shell
163+
pnpm run sync:docs-changelog
164+
```
165+
166+
> Note: we currently run this manually after the Changeset PR lands in the `naga` main branch, though we expect to automate it in CI in the future.
167+
168+
The script collates the latest entries from `packages/*/CHANGELOG.md` and rewrites the target `changelog.mdx`. Commit and publish the regenerated file in the docs repo so the public changelog stays current.
169+
135170
---
136171

137172
# Legacy Documentation for V7 and Earlier

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"lint": "npx nx run-many --target=lint --all",
1515
"lint:fix": "npx nx run-many --target=lint --all -- --fix",
1616
"format:check": "npx nx format:check --all",
17-
"test:e2e": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 -t",
18-
"test:custom": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000",
17+
"test:e2e": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 --runTestsByPath packages/e2e/src/e2e.spec.ts",
18+
"test:target": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000",
1919
"test:e2e:ci": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} npx jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 --runTestsByPath",
2020
"test:health": "LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- tsx packages/e2e/src/health/index.ts",
2121
"ci:health": "LOG_LEVEL=${LOG_LEVEL:-silent} tsx packages/e2e/src/health/index.ts"

packages/artillery/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @lit-protocol/artillery
22

3+
## 0.0.9
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [f109877]
8+
- @lit-protocol/e2e@4.0.1
9+
310
## 0.0.8
411

512
### Patch Changes

packages/artillery/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/artillery",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"private": true,
55
"type": "commonjs",
66
"dependencies": {

packages/auth-services/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @lit-protocol/auth-services
22

3+
## 2.0.7
4+
5+
### Patch Changes
6+
7+
- f109877: update naga-test contract addresses. Users are expected to update and reinstall the SDK to continue using naga-test.
8+
- Updated dependencies [f109877]
9+
- @lit-protocol/contracts@0.8.1
10+
311
## 2.0.6
412

513
### Patch Changes

packages/auth-services/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/auth-services",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"license": "MIT",
55
"type": "commonjs",
66
"main": "./src/index.js",

packages/auth/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @lit-protocol/auth
22

3+
## 8.1.2
4+
5+
### Patch Changes
6+
7+
- f109877: update naga-test contract addresses. Users are expected to update and reinstall the SDK to continue using naga-test.
8+
39
## 8.1.1
410

511
### Patch Changes

packages/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"crypto": false,
4545
"stream": false
4646
},
47-
"version": "8.1.1",
47+
"version": "8.1.2",
4848
"main": "./index.js",
4949
"typings": "./index.d.ts",
5050
"types": "./index.d.ts"

packages/constants/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @lit-protocol/constants
22

3+
## 8.0.7
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [f109877]
8+
- @lit-protocol/contracts@0.8.1
9+
310
## 8.0.6
411

512
### Patch Changes

0 commit comments

Comments
 (0)