diff --git a/forks/cli.ts b/forks/cli.ts index 4ee01bd1e..4db4a89be 100644 --- a/forks/cli.ts +++ b/forks/cli.ts @@ -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 diff --git a/forks/config.ts b/forks/config.ts index bc2c85252..dd4cdfc0a 100644 --- a/forks/config.ts +++ b/forks/config.ts @@ -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 diff --git a/helpers/analyzer.ts b/helpers/analyzer.ts index b6a504cef..b808fbd87 100644 --- a/helpers/analyzer.ts +++ b/helpers/analyzer.ts @@ -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; @@ -380,9 +382,7 @@ export function extractErrorLogs(testName: string): Set { * Extract lines that contain test failures */ export function extractfail_lines(errorLogs: Set): string[] { - return Array.from(errorLogs).filter((log) => - log.includes("FAIL monitoring/"), - ); + return Array.from(errorLogs).filter((log) => PATTERNS.FAIL.test(log)); } /** diff --git a/helpers/versions.ts b/helpers/versions.ts index 5b805c4ea..7e057ec04 100644 --- a/helpers/versions.ts +++ b/helpers/versions.ts @@ -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, @@ -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, }, { diff --git a/package.json b/package.json index e659014d5..38f42b5cd 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "@xmtp/node-bindings-1.4.0": "npm:@xmtp/node-bindings@1.4.0", "@xmtp/node-bindings-1.5.4": "npm:@xmtp/node-bindings@1.5.4", "@xmtp/node-bindings-1.6.1": "npm:@xmtp/node-bindings@1.6.1-rc3", - "@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/node-sdk@3.2.2", "@xmtp/node-sdk-4.0.1": "npm:@xmtp/node-sdk@4.0.1", "@xmtp/node-sdk-4.0.2": "npm:@xmtp/node-sdk@4.0.2", @@ -56,9 +56,8 @@ "@xmtp/node-sdk-4.1.0": "npm:@xmtp/node-sdk@4.1.0", "@xmtp/node-sdk-4.2.3": "npm:@xmtp/node-sdk@4.2.3", "@xmtp/node-sdk-4.2.6": "npm:@xmtp/node-sdk@4.2.6", - "@xmtp/node-sdk-4.3.0-dev": "npm:@xmtp/node-sdk@4.3.0-dev.395f798c", "@xmtp/node-sdk-4.4.0": "npm:@xmtp/node-sdk@4.4.0", - "@xmtp/node-sdk-4.5.0": "npm:@xmtp/node-sdk@4.5.0-rc1", + "@xmtp/node-sdk-4.5.0": "npm:@xmtp/node-sdk@4.5.0-rc2", "axios": "^1.8.2", "datadog-metrics": "^0.12.1", "dotenv": "^16.5.0", diff --git a/yarn.lock b/yarn.lock index d68469914..86411664c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1696,17 +1696,17 @@ __metadata: languageName: node linkType: hard -"@xmtp/node-bindings-1.6.1@npm:@xmtp/node-bindings@1.6.1-rc3, @xmtp/node-bindings@npm:1.6.1-rc3": +"@xmtp/node-bindings-1.6.1@npm:@xmtp/node-bindings@1.6.1-rc3": 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 @@ -1815,18 +1815,6 @@ __metadata: languageName: node linkType: hard -"@xmtp/node-sdk-4.3.0-dev@npm:@xmtp/node-sdk@4.3.0-dev.395f798c": - 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/node-sdk@4.4.0": version: 4.4.0 resolution: "@xmtp/node-sdk@npm:4.4.0" @@ -1839,15 +1827,15 @@ __metadata: languageName: node linkType: hard -"@xmtp/node-sdk-4.5.0@npm:@xmtp/node-sdk@4.5.0-rc1": - version: 4.5.0-rc1 - resolution: "@xmtp/node-sdk@npm:4.5.0-rc1" +"@xmtp/node-sdk-4.5.0@npm:@xmtp/node-sdk@4.5.0-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 @@ -5377,7 +5365,7 @@ __metadata: "@xmtp/node-bindings-1.4.0": "npm:@xmtp/node-bindings@1.4.0" "@xmtp/node-bindings-1.5.4": "npm:@xmtp/node-bindings@1.5.4" "@xmtp/node-bindings-1.6.1": "npm:@xmtp/node-bindings@1.6.1-rc3" - "@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/node-sdk@3.2.2" "@xmtp/node-sdk-4.0.1": "npm:@xmtp/node-sdk@4.0.1" "@xmtp/node-sdk-4.0.2": "npm:@xmtp/node-sdk@4.0.2" @@ -5385,9 +5373,8 @@ __metadata: "@xmtp/node-sdk-4.1.0": "npm:@xmtp/node-sdk@4.1.0" "@xmtp/node-sdk-4.2.3": "npm:@xmtp/node-sdk@4.2.3" "@xmtp/node-sdk-4.2.6": "npm:@xmtp/node-sdk@4.2.6" - "@xmtp/node-sdk-4.3.0-dev": "npm:@xmtp/node-sdk@4.3.0-dev.395f798c" "@xmtp/node-sdk-4.4.0": "npm:@xmtp/node-sdk@4.4.0" - "@xmtp/node-sdk-4.5.0": "npm:@xmtp/node-sdk@4.5.0-rc1" + "@xmtp/node-sdk-4.5.0": "npm:@xmtp/node-sdk@4.5.0-rc2" axios: "npm:^1.8.2" datadog-metrics: "npm:^0.12.1" dotenv: "npm:^16.5.0"