Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions forks/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function runForkTest(
});

return true;
} catch (e) {
console.error("Error running fork test", e);
} catch (e: any) {
console.error(`Error running fork test: ${e?.message}`);
return false;
// Test may fail if forks are detected, that's expected
// We'll analyze the logs afterward
Expand Down
4 changes: 2 additions & 2 deletions forks/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export const epochRotationOperations = {
removeMember: true, // removes a random member from the group
};
export const otherOperations = {
createInstallation: true, // creates a new installation for a random worker
createInstallation: false, // creates a new installation for a random worker
sendMessage: true, // sends a message to the group
sync: true, // syncs the group
sync: false, // syncs the group
};
export const randomInboxIdsCount = 50; // How many inboxIds to use randomly in the add/remove operations
export const installationCount = 2; // How many installations to use randomly in the createInstallation operations
Expand Down
6 changes: 3 additions & 3 deletions helpers/analyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const PATTERNS = {
"xmtp_mls::groups::welcome_sync",
],

FAIL: /FAIL\s+\w+\//,

// Patterns to match error log lines
MATCH: [/ERROR/, /forked/, /FAIL/, /QA_ERROR/, /WARN/],
} as const;
Expand Down Expand Up @@ -380,9 +382,7 @@ export function extractErrorLogs(testName: string): Set<string> {
* Extract lines that contain test failures
*/
export function extractfail_lines(errorLogs: Set<string>): string[] {
return Array.from(errorLogs).filter((log) =>
log.includes("FAIL monitoring/"),
);
return Array.from(errorLogs).filter((log) => PATTERNS.FAIL.test(log));
}

/**
Expand Down
23 changes: 1 addition & 22 deletions helpers/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ import {
Dm as Dm426,
Group as Group426,
} from "@xmtp/node-sdk-4.2.6";
// import {
// Client as Client430Dev,
// Conversation as Conversation430Dev,
// Dm as Dm430Dev,
// Group as Group430Dev,
// } from "@xmtp/node-sdk-4.3.0-dev";
// import {
// Client as Client440,
// Conversation as Conversation440,
// Dm as Dm440,
// Group as Group440,
// } from "@xmtp/node-sdk-4.4.0";
import {
Client as Client450,
Conversation as Conversation450,
Expand Down Expand Up @@ -74,22 +62,13 @@ export {

// Node SDK version list
export const VersionList = [
// {
// Client: Client40Dev,
// Conversation: Conversation430Dev,
// Dm: Dm430Dev,
// Group: Group430Dev,
// nodeSDK: "4.3.0",
// nodeBindings: "1.7.0",
// auto: true,
// },
{
Client: Client450,
Conversation: Conversation450,
Dm: Dm450,
Group: Group450,
nodeSDK: "4.5.0",
nodeBindings: "1.6.1",
nodeBindings: "1.6.2",
auto: true,
},
{
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,16 @@
"@xmtp/node-bindings-1.4.0": "npm:@xmtp/[email protected]",
"@xmtp/node-bindings-1.5.4": "npm:@xmtp/[email protected]",
"@xmtp/node-bindings-1.6.1": "npm:@xmtp/[email protected]",
"@xmtp/node-bindings-1.7.0": "npm:@xmtp/node-bindings@1.7.0-dev.9bc470b",
"@xmtp/node-bindings-1.6.2": "npm:@xmtp/node-bindings@1.6.2-rc1",
"@xmtp/node-sdk-3.2.2": "npm:@xmtp/[email protected]",
"@xmtp/node-sdk-4.0.1": "npm:@xmtp/[email protected]",
"@xmtp/node-sdk-4.0.2": "npm:@xmtp/[email protected]",
"@xmtp/node-sdk-4.0.3": "npm:@xmtp/[email protected]",
"@xmtp/node-sdk-4.1.0": "npm:@xmtp/[email protected]",
"@xmtp/node-sdk-4.2.3": "npm:@xmtp/[email protected]",
"@xmtp/node-sdk-4.2.6": "npm:@xmtp/[email protected]",
"@xmtp/node-sdk-4.3.0-dev": "npm:@xmtp/[email protected]",
"@xmtp/node-sdk-4.4.0": "npm:@xmtp/[email protected]",
"@xmtp/node-sdk-4.5.0": "npm:@xmtp/[email protected]rc1",
"@xmtp/node-sdk-4.5.0": "npm:@xmtp/[email protected]rc2",
"axios": "^1.8.2",
"datadog-metrics": "^0.12.1",
"dotenv": "^16.5.0",
Expand Down
37 changes: 12 additions & 25 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1696,17 +1696,17 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/node-bindings-1.6.1@npm:@xmtp/[email protected], @xmtp/node-bindings@npm:1.6.1-rc3":
"@xmtp/node-bindings-1.6.1@npm:@xmtp/[email protected]":
version: 1.6.1-rc3
resolution: "@xmtp/node-bindings@npm:1.6.1-rc3"
checksum: 10/64e72da74c0552758c360a0f4596c04a0e091017fa07471d454bb25da4e36293005c830c1adc09974333e3d073f2fb164c922ce59ced15fce99389848a16e71f
languageName: node
linkType: hard

"@xmtp/node-bindings-1.7.0@npm:@xmtp/node-bindings@1.7.0-dev.9bc470b, @xmtp/node-bindings@npm:1.7.0-dev.9bc470b":
version: 1.7.0-dev.9bc470b
resolution: "@xmtp/node-bindings@npm:1.7.0-dev.9bc470b"
checksum: 10/d0f3dfd15a65bc1ccb628271cba0310900217c72dfa0ee66c2405b6e2be052394bda2d9db029538ee9c842a4991c4b964a4887dabbad343314406b9b0a5e8c60
"@xmtp/node-bindings-1.6.2@npm:@xmtp/node-bindings@1.6.2-rc1, @xmtp/node-bindings@npm:1.6.2-rc1":
version: 1.6.2-rc1
resolution: "@xmtp/node-bindings@npm:1.6.2-rc1"
checksum: 10/42e4995b532883d7ee35e05f8caa262f2556bd9be3cd2288eff6cf7217c087091f0828374c1d7814b986f62a7e693a986264eaf82296867ff3a91c56ad0ddd09
languageName: node
linkType: hard

Expand Down Expand Up @@ -1815,18 +1815,6 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/node-sdk-4.3.0-dev@npm:@xmtp/[email protected]":
version: 4.3.0-dev.395f798c
resolution: "@xmtp/node-sdk@npm:4.3.0-dev.395f798c"
dependencies:
"@xmtp/content-type-group-updated": "npm:^2.0.2"
"@xmtp/content-type-primitives": "npm:^2.0.2"
"@xmtp/content-type-text": "npm:^2.0.2"
"@xmtp/node-bindings": "npm:1.7.0-dev.9bc470b"
checksum: 10/5aa30fcb240e91c416dafe1eee3b1fd692765460100907da95f689749acd5455a8a511f1e8814002aa2a65a6eec64099d0e8ff0a7afe10e181318e245faf1515
languageName: node
linkType: hard

"@xmtp/node-sdk-4.4.0@npm:@xmtp/[email protected]":
version: 4.4.0
resolution: "@xmtp/node-sdk@npm:4.4.0"
Expand All @@ -1839,15 +1827,15 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/node-sdk-4.5.0@npm:@xmtp/[email protected]rc1":
version: 4.5.0-rc1
resolution: "@xmtp/node-sdk@npm:4.5.0-rc1"
"@xmtp/node-sdk-4.5.0@npm:@xmtp/[email protected]rc2":
version: 4.5.0-rc2
resolution: "@xmtp/node-sdk@npm:4.5.0-rc2"
dependencies:
"@xmtp/content-type-group-updated": "npm:^2.0.2"
"@xmtp/content-type-primitives": "npm:^2.0.2"
"@xmtp/content-type-text": "npm:^2.0.2"
"@xmtp/node-bindings": "npm:1.6.1-rc3"
checksum: 10/3df3027cc189cf2c31a83ad47b0a917081046522e3bca8761672d2850f122f87c5b5ea4dc430a59498c02074183f510b2f599f1a15653788a365c160b1423f67
"@xmtp/node-bindings": "npm:1.6.2-rc1"
checksum: 10/654ef67fd8a5cbff6d5077bb8cff89f1388e1dda28247610fc26b4f357f7352feac62de9154becd4ab822c2d28bc24482a9a71a036c39fae5517f6391ba05315
languageName: node
linkType: hard

Expand Down Expand Up @@ -5377,17 +5365,16 @@ __metadata:
"@xmtp/node-bindings-1.4.0": "npm:@xmtp/[email protected]"
"@xmtp/node-bindings-1.5.4": "npm:@xmtp/[email protected]"
"@xmtp/node-bindings-1.6.1": "npm:@xmtp/[email protected]"
"@xmtp/node-bindings-1.7.0": "npm:@xmtp/node-bindings@1.7.0-dev.9bc470b"
"@xmtp/node-bindings-1.6.2": "npm:@xmtp/node-bindings@1.6.2-rc1"
"@xmtp/node-sdk-3.2.2": "npm:@xmtp/[email protected]"
"@xmtp/node-sdk-4.0.1": "npm:@xmtp/[email protected]"
"@xmtp/node-sdk-4.0.2": "npm:@xmtp/[email protected]"
"@xmtp/node-sdk-4.0.3": "npm:@xmtp/[email protected]"
"@xmtp/node-sdk-4.1.0": "npm:@xmtp/[email protected]"
"@xmtp/node-sdk-4.2.3": "npm:@xmtp/[email protected]"
"@xmtp/node-sdk-4.2.6": "npm:@xmtp/[email protected]"
"@xmtp/node-sdk-4.3.0-dev": "npm:@xmtp/[email protected]"
"@xmtp/node-sdk-4.4.0": "npm:@xmtp/[email protected]"
"@xmtp/node-sdk-4.5.0": "npm:@xmtp/[email protected]rc1"
"@xmtp/node-sdk-4.5.0": "npm:@xmtp/[email protected]rc2"
axios: "npm:^1.8.2"
datadog-metrics: "npm:^0.12.1"
dotenv: "npm:^16.5.0"
Expand Down