You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* When running tests on GitHub, this function determines if the tests should be skipped based on
78
-
* whether the binary version copied for tests is compatible with the minimum required version.
79
-
* The minimum required binary version is defined in the `binaryCompat.json` file and changes when
80
-
* there are breaking changes in the communication protocol or messages.
77
+
* When running tests after using `yarn install-and-copy-binaries-for-test`, this function determines
78
+
* if the tests should be skipped based on whether the binary version copied for tests is compatible
79
+
* with the minimum required version. The minimum required binary version is defined in the
80
+
* `minBinaryVersion.json` file and changes when there are breaking changes in the communication
81
+
* protocol or messages.
81
82
*
82
-
* When running locally, the function will always return false since you're expected to have the
83
-
* correct binaries available.
83
+
* When running locally, the function is expected to always return false since you're more likely to
84
+
* have the correct binaries available. If you ever ran `yarn install-and-copy-binaries-for-test` locally
85
+
* and the binaries are too old, this function will return true and skip the tests. The remedy is to
86
+
* delete the `bin/binaryVersion.json` file and/or re-run `yarn install-and-copy-binaries-for-test` to
87
+
* get the latest binaries.
84
88
* @returns A promise that resolves to a boolean indicating whether the tests should be skipped.
85
89
*/
86
90
asyncfunctionshouldSkipTests(): Promise<boolean>{
@@ -99,7 +103,7 @@ async function shouldSkipTests(): Promise<boolean> {
99
103
}
100
104
if(tooOld){
101
105
console.warn(`\nBinary-dependent tests SKIPPED: installed binary version ${binaryVersion.version} is below the required minimum ${binaryCompat.minBinaryVersion}.`);
102
-
console.warn(`Tests will re-enable automatically once binaries >= ${binaryCompat.minBinaryVersion} are installed.\n`);
106
+
console.warn(`Tests will re-enable automatically once binaries >= ${binaryCompat.minBinaryVersion} are installed or 'bin/binaryVersion.json' is removed.\n`);
103
107
returntrue;
104
108
}
105
109
}
@@ -129,7 +133,7 @@ export function run(testsRoot: string, cb: (error: any, failures?: number) => vo
0 commit comments