Skip to content

Commit def55d5

Browse files
committed
Add newest release and error logging
1 parent f8f5ae1 commit def55d5

File tree

6 files changed

+20
-56
lines changed

6 files changed

+20
-56
lines changed

agents/debug-dm.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ async function sendMessage(
115115
client: {
116116
conversations: {
117117
streamAllMessages: () =>
118-
//@ts-expect-error - TODO: fix this
119118
agent.client.conversations.streamAllMessages(),
120119
},
121120
inboxId: agent.client.inboxId,

forks/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ function runForkTest(
8080
});
8181

8282
return true;
83-
} catch (e) {
84-
console.error("Error running fork test", e);
83+
} catch (e: any) {
84+
console.error(`Error running fork test: ${e?.message}`);
8585
return false;
8686
// Test may fail if forks are detected, that's expected
8787
// We'll analyze the logs afterward

helpers/analyzer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export const PATTERNS = {
3737
"xmtp_mls::groups::welcome_sync",
3838
],
3939

40+
FAIL: /FAIL\s+\w+\//,
41+
4042
// Patterns to match error log lines
4143
MATCH: [/ERROR/, /forked/, /FAIL/, /QA_ERROR/, /WARN/],
4244
} as const;
@@ -380,9 +382,7 @@ export function extractErrorLogs(testName: string): Set<string> {
380382
* Extract lines that contain test failures
381383
*/
382384
export function extractfail_lines(errorLogs: Set<string>): string[] {
383-
return Array.from(errorLogs).filter((log) =>
384-
log.includes("FAIL monitoring/"),
385-
);
385+
return Array.from(errorLogs).filter((log) => PATTERNS.FAIL.test(log));
386386
}
387387

388388
/**

helpers/versions.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ import {
3333
Dm as Dm426,
3434
Group as Group426,
3535
} from "@xmtp/node-sdk-4.2.6";
36-
// import {
37-
// Client as Client430Dev,
38-
// Conversation as Conversation430Dev,
39-
// Dm as Dm430Dev,
40-
// Group as Group430Dev,
41-
// } from "@xmtp/node-sdk-4.3.0-dev";
42-
// import {
43-
// Client as Client440,
44-
// Conversation as Conversation440,
45-
// Dm as Dm440,
46-
// Group as Group440,
47-
// } from "@xmtp/node-sdk-4.4.0";
4836
import {
4937
Client as Client450,
5038
Conversation as Conversation450,
@@ -74,22 +62,13 @@ export {
7462

7563
// Node SDK version list
7664
export const VersionList = [
77-
// {
78-
// Client: Client40Dev,
79-
// Conversation: Conversation430Dev,
80-
// Dm: Dm430Dev,
81-
// Group: Group430Dev,
82-
// nodeSDK: "4.3.0",
83-
// nodeBindings: "1.7.0",
84-
// auto: true,
85-
// },
8665
{
8766
Client: Client450,
8867
Conversation: Conversation450,
8968
Dm: Dm450,
9069
Group: Group450,
9170
nodeSDK: "4.5.0",
92-
nodeBindings: "1.6.1",
71+
nodeBindings: "1.6.2",
9372
auto: true,
9473
},
9574
{

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,16 @@
4545
"@xmtp/node-bindings-1.4.0": "npm:@xmtp/[email protected]",
4646
"@xmtp/node-bindings-1.5.4": "npm:@xmtp/[email protected]",
4747
"@xmtp/node-bindings-1.6.1": "npm:@xmtp/[email protected]",
48-
"@xmtp/node-bindings-1.7.0": "npm:@xmtp/node-bindings@1.7.0-dev.9bc470b",
48+
"@xmtp/node-bindings-1.6.2": "npm:@xmtp/node-bindings@1.6.2-rc1",
4949
"@xmtp/node-sdk-3.2.2": "npm:@xmtp/[email protected]",
5050
"@xmtp/node-sdk-4.0.1": "npm:@xmtp/[email protected]",
5151
"@xmtp/node-sdk-4.0.2": "npm:@xmtp/[email protected]",
5252
"@xmtp/node-sdk-4.0.3": "npm:@xmtp/[email protected]",
5353
"@xmtp/node-sdk-4.1.0": "npm:@xmtp/[email protected]",
5454
"@xmtp/node-sdk-4.2.3": "npm:@xmtp/[email protected]",
5555
"@xmtp/node-sdk-4.2.6": "npm:@xmtp/[email protected]",
56-
"@xmtp/node-sdk-4.3.0-dev": "npm:@xmtp/[email protected]",
5756
"@xmtp/node-sdk-4.4.0": "npm:@xmtp/[email protected]",
58-
"@xmtp/node-sdk-4.5.0": "npm:@xmtp/[email protected]rc1",
57+
"@xmtp/node-sdk-4.5.0": "npm:@xmtp/[email protected]rc2",
5958
"axios": "^1.8.2",
6059
"datadog-metrics": "^0.12.1",
6160
"dotenv": "^16.5.0",

yarn.lock

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,17 +1678,17 @@ __metadata:
16781678
languageName: node
16791679
linkType: hard
16801680

1681-
"@xmtp/node-bindings-1.6.1@npm:@xmtp/[email protected], @xmtp/node-bindings@npm:1.6.1-rc3":
1681+
"@xmtp/node-bindings-1.6.1@npm:@xmtp/[email protected]":
16821682
version: 1.6.1-rc3
16831683
resolution: "@xmtp/node-bindings@npm:1.6.1-rc3"
16841684
checksum: 10/64e72da74c0552758c360a0f4596c04a0e091017fa07471d454bb25da4e36293005c830c1adc09974333e3d073f2fb164c922ce59ced15fce99389848a16e71f
16851685
languageName: node
16861686
linkType: hard
16871687

1688-
"@xmtp/node-bindings-1.7.0@npm:@xmtp/node-bindings@1.7.0-dev.9bc470b, @xmtp/node-bindings@npm:1.7.0-dev.9bc470b":
1689-
version: 1.7.0-dev.9bc470b
1690-
resolution: "@xmtp/node-bindings@npm:1.7.0-dev.9bc470b"
1691-
checksum: 10/d0f3dfd15a65bc1ccb628271cba0310900217c72dfa0ee66c2405b6e2be052394bda2d9db029538ee9c842a4991c4b964a4887dabbad343314406b9b0a5e8c60
1688+
"@xmtp/node-bindings-1.6.2@npm:@xmtp/node-bindings@1.6.2-rc1, @xmtp/node-bindings@npm:1.6.2-rc1":
1689+
version: 1.6.2-rc1
1690+
resolution: "@xmtp/node-bindings@npm:1.6.2-rc1"
1691+
checksum: 10/42e4995b532883d7ee35e05f8caa262f2556bd9be3cd2288eff6cf7217c087091f0828374c1d7814b986f62a7e693a986264eaf82296867ff3a91c56ad0ddd09
16921692
languageName: node
16931693
linkType: hard
16941694

@@ -1797,18 +1797,6 @@ __metadata:
17971797
languageName: node
17981798
linkType: hard
17991799

1800-
"@xmtp/node-sdk-4.3.0-dev@npm:@xmtp/[email protected]":
1801-
version: 4.3.0-dev.395f798c
1802-
resolution: "@xmtp/node-sdk@npm:4.3.0-dev.395f798c"
1803-
dependencies:
1804-
"@xmtp/content-type-group-updated": "npm:^2.0.2"
1805-
"@xmtp/content-type-primitives": "npm:^2.0.2"
1806-
"@xmtp/content-type-text": "npm:^2.0.2"
1807-
"@xmtp/node-bindings": "npm:1.7.0-dev.9bc470b"
1808-
checksum: 10/5aa30fcb240e91c416dafe1eee3b1fd692765460100907da95f689749acd5455a8a511f1e8814002aa2a65a6eec64099d0e8ff0a7afe10e181318e245faf1515
1809-
languageName: node
1810-
linkType: hard
1811-
18121800
"@xmtp/node-sdk-4.4.0@npm:@xmtp/[email protected]":
18131801
version: 4.4.0
18141802
resolution: "@xmtp/node-sdk@npm:4.4.0"
@@ -1821,15 +1809,15 @@ __metadata:
18211809
languageName: node
18221810
linkType: hard
18231811

1824-
"@xmtp/node-sdk-4.5.0@npm:@xmtp/[email protected]rc1":
1825-
version: 4.5.0-rc1
1826-
resolution: "@xmtp/node-sdk@npm:4.5.0-rc1"
1812+
"@xmtp/node-sdk-4.5.0@npm:@xmtp/[email protected]rc2":
1813+
version: 4.5.0-rc2
1814+
resolution: "@xmtp/node-sdk@npm:4.5.0-rc2"
18271815
dependencies:
18281816
"@xmtp/content-type-group-updated": "npm:^2.0.2"
18291817
"@xmtp/content-type-primitives": "npm:^2.0.2"
18301818
"@xmtp/content-type-text": "npm:^2.0.2"
1831-
"@xmtp/node-bindings": "npm:1.6.1-rc3"
1832-
checksum: 10/3df3027cc189cf2c31a83ad47b0a917081046522e3bca8761672d2850f122f87c5b5ea4dc430a59498c02074183f510b2f599f1a15653788a365c160b1423f67
1819+
"@xmtp/node-bindings": "npm:1.6.2-rc1"
1820+
checksum: 10/654ef67fd8a5cbff6d5077bb8cff89f1388e1dda28247610fc26b4f357f7352feac62de9154becd4ab822c2d28bc24482a9a71a036c39fae5517f6391ba05315
18331821
languageName: node
18341822
linkType: hard
18351823

@@ -5359,17 +5347,16 @@ __metadata:
53595347
"@xmtp/node-bindings-1.4.0": "npm:@xmtp/[email protected]"
53605348
"@xmtp/node-bindings-1.5.4": "npm:@xmtp/[email protected]"
53615349
"@xmtp/node-bindings-1.6.1": "npm:@xmtp/[email protected]"
5362-
"@xmtp/node-bindings-1.7.0": "npm:@xmtp/node-bindings@1.7.0-dev.9bc470b"
5350+
"@xmtp/node-bindings-1.6.2": "npm:@xmtp/node-bindings@1.6.2-rc1"
53635351
"@xmtp/node-sdk-3.2.2": "npm:@xmtp/[email protected]"
53645352
"@xmtp/node-sdk-4.0.1": "npm:@xmtp/[email protected]"
53655353
"@xmtp/node-sdk-4.0.2": "npm:@xmtp/[email protected]"
53665354
"@xmtp/node-sdk-4.0.3": "npm:@xmtp/[email protected]"
53675355
"@xmtp/node-sdk-4.1.0": "npm:@xmtp/[email protected]"
53685356
"@xmtp/node-sdk-4.2.3": "npm:@xmtp/[email protected]"
53695357
"@xmtp/node-sdk-4.2.6": "npm:@xmtp/[email protected]"
5370-
"@xmtp/node-sdk-4.3.0-dev": "npm:@xmtp/[email protected]"
53715358
"@xmtp/node-sdk-4.4.0": "npm:@xmtp/[email protected]"
5372-
"@xmtp/node-sdk-4.5.0": "npm:@xmtp/[email protected]rc1"
5359+
"@xmtp/node-sdk-4.5.0": "npm:@xmtp/[email protected]rc2"
53735360
axios: "npm:^1.8.2"
53745361
datadog-metrics: "npm:^0.12.1"
53755362
dotenv: "npm:^16.5.0"

0 commit comments

Comments
 (0)