JustPaste.it

full Run npm run full-test

Run npm run full-test
2 npm run full-test
3 shell: /usr/bin/bash -e {0}
4 env:
5 CI: true
6
7> pokemon-showdown@0.11.7 full-test /home/runner/work/Kaskade-Official-Showdown/Kaskade-Official-Showdown
12> npm run full-lint && npm run tsc && mocha --timeout 6000 --forbid-only -g ".*"
17> pokemon-showdown@0.11.7 full-lint /home/runner/work/Kaskade-Official-Showdown/Kaskade-Official-Showdown
19> eslint . --cache --ext .js,.ts --max-warnings 0
22> pokemon-showdown@0.11.7 tsc /home/runner/work/Kaskade-Official-Showdown/Kaskade-Official-Showdown
23> tsc
25Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(40,5): error TS2416: Property 'outputs' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
26 Type 'KernelOutput[]' is not assignable to type 'Float32Array[]'.
27 Type 'KernelOutput' is not assignable to type 'Float32Array'.
28 Type 'number' is not assignable to type 'Float32Array'.
29Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(41,5): error TS2416: Property 'deltas' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
30 Type 'KernelOutput[]' is not assignable to type 'Float32Array[]'.
31Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(42,5): error TS2416: Property 'errors' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
32 Type 'KernelOutput[]' is not assignable to type 'Float32Array[]'.
33Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(43,5): error TS2416: Property 'weights' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
34 Type 'KernelOutput[]' is not assignable to type 'Float32Array[][]'.
35 Type 'KernelOutput' is not assignable to type 'Float32Array[]'.
36 Type 'number' is not assignable to type 'Float32Array[]'.
37Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(44,5): error TS2416: Property 'changes' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
38 Type 'KernelOutput[]' is not assignable to type 'Float32Array[][]'.
39Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(45,5): error TS2416: Property 'biases' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
40 Type 'KernelOutput[]' is not assignable to type 'Float32Array[]'.
41Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(49,5): error TS2416: Property 'trainPattern' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
42 Type '(value: INeuralNetworkGPUDatumFormatted, logErrorRate?: boolean | undefined) => KernelOutput | null' is not assignable to type '(value: INeuralNetworkDatumFormatted<Float32Array>, logErrorRate?: boolean | undefined) => number | null'.
43 Type 'KernelOutput | null' is not assignable to type 'number | null'.
44 Type 'void' is not assignable to type 'number | null'.
45Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(53,5): error TS2416: Property 'runInput' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
46 Type '(input: KernelOutput) => KernelOutput' is not assignable to type '(input: Float32Array) => Float32Array'.
47 Type 'KernelOutput' is not assignable to type 'Float32Array'.
48Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(62,5): error TS2416: Property 'prepTraining' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
49 Type '(data: INeuralNetworkDatum<InputType, OutputType>[], options?: Partial<INeuralNetworkTrainOptions> | undefined) => INeuralNetworkGPUPreppedTrainingData' is not assignable to type '(data: INeuralNetworkDatum<InputType, OutputType>[], options?: Partial<INeuralNetworkTrainOptions> | undefined) => INeuralNetworkPreppedTrainingData<...>'.
50 Call signature return types 'INeuralNetworkGPUPreppedTrainingData' and 'INeuralNetworkPreppedTrainingData<Float32Array>' are incompatible.
51 The types of 'preparedData' are incompatible between these types.
52 Type 'INeuralNetworkDatumFormatted<KernelOutput>[]' is not assignable to type 'INeuralNetworkDatumFormatted<Float32Array>[]'.
53 Type 'INeuralNetworkDatumFormatted<KernelOutput>' is not assignable to type 'INeuralNetworkDatumFormatted<Float32Array>'.
54 Type 'KernelOutput' is not assignable to type 'Float32Array'.
55Error: node_modules/brain.js/dist/src/neural-network-gpu.d.ts(63,5): error TS2416: Property 'toFunction' in type 'NeuralNetworkGPU<InputType, OutputType>' is not assignable to the same property in base type 'NeuralNetwork<InputType, OutputType>'.
56 Type '() => (input: InputType) => OutputType' is not assignable to type '(cb?: ((source: string) => string) | undefined) => (input: Partial<InputType>) => OutputType'.
57 Type '(input: InputType) => OutputType' is not assignable to type '(input: Partial<InputType>) => OutputType'.
58 Types of parameters 'input' and 'input' are incompatible.
59 Type 'Partial<InputType>' is not assignable to type 'InputType'.
60 'InputType' could be instantiated with an arbitrary type which could be unrelated to 'Partial<InputType>'.
61Error: node_modules/brain.js/dist/src/recurrent.d.ts(7,18): error TS2430: Interface 'IRecurrentOptions' incorrectly extends interface 'IFeedForwardOptions'.
62 Types of property 'hiddenLayers' are incompatible.
63 Type '((inputLayer: ILayer, recurrentInput: IRecurrentInput, index: number) => ILayer)[]' is not assignable to type '((inputLayer: ILayer, layerIndex: number) => ILayer)[]'.
64 Type '(inputLayer: ILayer, recurrentInput: IRecurrentInput, index: number) => ILayer' is not assignable to type '(inputLayer: ILayer, layerIndex: number) => ILayer'.
65Error: node_modules/brain.js/dist/src/recurrent.d.ts(17,5): error TS2416: Property 'options' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
66 Type 'IRecurrentOptions' is not assignable to type 'IFeedForwardOptions'.
67Error: node_modules/brain.js/dist/src/recurrent.d.ts(32,5): error TS2416: Property 'run' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
68 Type '(inputs: KernelOutput[]) => TextureArrayOutput' is not assignable to type '(input: number[] | Float32Array) => number[] | Float32Array'.
69 Types of parameters 'inputs' and 'input' are incompatible.
70 Type 'number[] | Float32Array' is not assignable to type 'KernelOutput[]'.
71 Type 'Float32Array' is missing the following properties from type 'KernelOutput[]': pop, push, concat, shift, and 5 more.
72Error: node_modules/brain.js/dist/src/recurrent.d.ts(35,5): error TS2416: Property 'train' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
73 Type '(data: KernelOutput[][], options?: Partial<IRecurrentTrainingOptions> | undefined) => ITrainingStatus' is not assignable to type '(data: IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array>[], options?: Partial<IFeedForwardTrainingOptions> | undefined) => ITrainingStatus'.
74 Types of parameters 'data' and 'data' are incompatible.
75 Type 'IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array>[]' is not assignable to type 'KernelOutput[][]'.
76 Type 'IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array>' is missing the following properties from type 'KernelOutput[]': length, pop, push, concat, and 28 more.
77Error: node_modules/brain.js/dist/src/recurrent.d.ts(37,5): error TS2416: Property 'transferData' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
78 Type '(formattedData: KernelOutput[][]) => KernelOutput[][]' is not assignable to type '(formattedData: IFeedForwardNormalizedTrainingData[]) => IFeedForwardGPUTrainingData[]'.
79 Types of parameters 'formattedData' and 'formattedData' are incompatible.
80 Type 'IFeedForwardNormalizedTrainingData[]' is not assignable to type 'KernelOutput[][]'.
81 Type 'IFeedForwardNormalizedTrainingData' is missing the following properties from type 'KernelOutput[]': length, pop, push, concat, and 28 more.
82Error: node_modules/brain.js/dist/src/recurrent.d.ts(38,5): error TS2416: Property '_prepTraining' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
83 Type '(data: KernelOutput[][], options: Partial<IRecurrentTrainingOptions>) => IRecurrentPreppedTrainingData' is not assignable to type '(data: IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array>[], options: Partial<IFeedForwardTrainingOptions>) => IFeedForwardPreppedTrainingData'.
84 Types of parameters 'data' and 'data' are incompatible.
85 Type 'IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array>[]' is not assignable to type 'KernelOutput[][]'.
86Error: node_modules/brain.js/dist/src/recurrent.d.ts(39,5): error TS2416: Property '_calculateTrainingError' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
87 Type '(data: KernelOutput[][]) => number' is not assignable to type '(preparedData: IFeedForwardGPUTrainingData[]) => number'.
88 Types of parameters 'data' and 'preparedData' are incompatible.
89 Type 'IFeedForwardGPUTrainingData[]' is not assignable to type 'KernelOutput[][]'.
90 Type 'IFeedForwardGPUTrainingData' is missing the following properties from type 'KernelOutput[]': length, pop, push, concat, and 28 more.
91Error: node_modules/brain.js/dist/src/recurrent.d.ts(40,5): error TS2416: Property 'formatData' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
92 Type '(data: Float32Array) => Float32Array' is not assignable to type '(data: IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array> | IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array>[]) => IFeedForwardNormalizedTrainingData[]'.
93 Types of parameters 'data' and 'data' are incompatible.
94 Type 'IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array> | IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array>[]' is not assignable to type 'Float32Array'.
95 Type 'IFeedForwardTrainingData<number[] | Float32Array, number[] | Float32Array>' is missing the following properties from type 'Float32Array': BYTES_PER_ELEMENT, buffer, byteLength, byteOffset, and 26 more.
96Error: node_modules/brain.js/dist/src/recurrent.d.ts(41,5): error TS2416: Property '_calculateDeltas' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
97 Type '(target: KernelOutput[]) => void' is not assignable to type '(target: KernelOutput) => void'.
98 Types of parameters 'target' and 'target' are incompatible.
99 Type 'KernelOutput' is not assignable to type 'KernelOutput[]'.
100 Type 'number' is not assignable to type 'KernelOutput[]'.
101Error: node_modules/brain.js/dist/src/recurrent.d.ts(43,5): error TS2416: Property '_trainPatterns' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
102 Type '(data: KernelOutput[][]) => void' is not assignable to type '(data: IFeedForwardGPUTrainingData[]) => void'.
103 Types of parameters 'data' and 'data' are incompatible.
104 Type 'IFeedForwardGPUTrainingData[]' is not assignable to type 'KernelOutput[][]'.
105Error: node_modules/brain.js/dist/src/recurrent.d.ts(44,5): error TS2416: Property '_trainPattern' in type 'Recurrent' is not assignable to the same property in base type 'FeedForward<number[] | Float32Array, number[] | Float32Array>'.
106 Type '(inputs: KernelOutput[], logErrorRate: boolean) => KernelOutput | null' is not assignable to type '(input: KernelOutput, target: KernelOutput, logErrorRate: boolean) => KernelOutput | null'.
107 Types of parameters 'inputs' and 'input' are incompatible.
108 Type 'KernelOutput' is not assignable to type 'KernelOutput[]'.
109Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(67,5): error TS2416: Property 'model' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
110 Property 'input' is missing in type 'IRNNTimeStepModel' but required in type 'IRNNModel'.
111Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(68,5): error TS2416: Property 'options' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
112 Property 'dataFormatter' is missing in type 'IRNNTimeStepOptions' but required in type 'IRNNOptions'.
113Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(77,5): error TS2416: Property 'mapModel' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
114 Type '() => IRNNTimeStepModel' is not assignable to type '() => IRNNModel'.
115 Type 'IRNNTimeStepModel' is not assignable to type 'IRNNModel'.
116Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(79,5): error TS2416: Property 'run' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
117 Type '<InputType extends InputOutputValue | InputOutputValue[]>(rawInput: InputType) => ValuesOf<InputType>' is not assignable to type '(rawInput?: Value | undefined, isSampleI?: boolean | undefined, temperature?: number | undefined) => string'.
118 Types of parameters 'rawInput' and 'rawInput' are incompatible.
119 Type 'Value | undefined' is not assignable to type 'InputOutputValue | InputOutputValue[]'.
120 Type 'undefined' is not assignable to type 'InputOutputValue | InputOutputValue[]'.
121Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(84,5): error TS2416: Property 'train' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
122 Type '(data: FormattableData[], trainOpts?: Partial<IRNNTrainingOptions> | undefined) => IRNNStatus' is not assignable to type '(data: (Value | IRNNDatum)[], trainOpts?: Partial<IRNNTrainingOptions> | undefined) => IRNNStatus'.
123 Types of parameters 'data' and 'data' are incompatible.
124 Type '(Value | IRNNDatum)[]' is not assignable to type 'FormattableData[]'.
125 Type 'Value | IRNNDatum' is not assignable to type 'FormattableData'.
126 Type 'string' is not assignable to type 'FormattableData'.
127Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(86,5): error TS2416: Property 'trainPattern' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
128 Type '(input: Float32Array[], logErrorRate?: boolean | undefined) => number' is not assignable to type '(input: number[], logErrorRate?: boolean | undefined) => number'.
129 Types of parameters 'input' and 'input' are incompatible.
130 Type 'number[]' is not assignable to type 'Float32Array[]'.
131 Type 'number' is not assignable to type 'Float32Array'.
132Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(111,5): error TS2416: Property 'addFormat' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
133 Type '(value: FormattableData) => void' is not assignable to type '() => void'.
134Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(112,5): error TS2416: Property 'toJSON' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
135 Type '() => IRNNTimeStepJSON' is not assignable to type '() => IRNNJSON'.
136 Type 'IRNNTimeStepJSON' is missing the following properties from type 'IRNNJSON': trainOpts, input
137Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(113,5): error TS2416: Property 'fromJSON' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
138 Type '(json: IRNNTimeStepJSON) => this' is not assignable to type '(json: IRNNJSON) => this'.
139 Types of parameters 'json' and 'json' are incompatible.
140 Type 'IRNNJSON' is missing the following properties from type 'IRNNTimeStepJSON': inputLookup, inputLookupLength, outputLookup, outputLookupLength
141Error: node_modules/brain.js/dist/src/recurrent/rnn-time-step.d.ts(114,5): error TS2416: Property 'toFunction' in type 'RNNTimeStep' is not assignable to the same property in base type 'RNN'.
142 Type '(cb?: ((src: string) => string) | undefined) => RNNTimeStepFunction' is not assignable to type '(cb?: ((src: string) => string) | undefined) => RNNFunction'.
143 Type 'RNNTimeStepFunction' is not assignable to type 'RNNFunction'.
144 Types of parameters 'rawInput' and 'rawInput' are incompatible.
145 Type 'string | (Value | IRNNDatum)[] | undefined' is not assignable to type 'InputOutputValue | InputOutputValue[] | undefined'.
146 Type 'string' is not assignable to type 'InputOutputValue | InputOutputValue[] | undefined'.
147Error: node_modules/gpu.js/src/index.d.ts(163,12): error TS2304: Cannot find name 'WebGLRenderingContext'.
148Error: node_modules/gpu.js/src/index.d.ts(286,12): error TS2304: Cannot find name 'WebGLRenderingContext'.
149Error: node_modules/gpu.js/src/index.d.ts(396,5): error TS2304: Cannot find name 'HTMLCanvasElement'.
150Error: node_modules/gpu.js/src/index.d.ts(397,5): error TS2304: Cannot find name 'OffscreenCanvas'.
151Error: node_modules/gpu.js/src/index.d.ts(398,5): error TS2304: Cannot find name 'HTMLVideoElement'.
152Error: node_modules/gpu.js/src/index.d.ts(399,5): error TS2304: Cannot find name 'HTMLImageElement'.
153Error: node_modules/gpu.js/src/index.d.ts(400,5): error TS2304: Cannot find name 'HTMLImageElement'.
154Error: node_modules/gpu.js/src/index.d.ts(401,5): error TS2304: Cannot find name 'ImageBitmap'.
155Error: node_modules/gpu.js/src/index.d.ts(402,5): error TS2304: Cannot find name 'ImageData'.
156Error: node_modules/gpu.js/src/index.d.ts(563,12): error TS2304: Cannot find name 'WebGLTexture'.
157Error: node_modules/gpu.js/src/index.d.ts(567,12): error TS2304: Cannot find name 'WebGLRenderingContext'.
158Error: server/ip-tools.ts(54,9): error TS2488: Type 'string | null' must have a '[Symbol.iterator]()' method that returns an iterator.
159Error: server/ip-tools.ts(54,43): error TS2558: Expected 1 type arguments, but got 2.
160npm ERR! code ELIFECYCLE
161npm ERR! errno 2
162npm ERR! pokemon-showdown@0.11.7 tsc: `tsc`
163npm ERR! Exit status 2
164npm ERR!
165npm ERR! Failed at the pokemon-showdown@0.11.7 tsc script.
166npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
168npm ERR! A complete log of this run can be found in:
169npm ERR! /home/runner/.npm/_logs/2022-02-22T18_33_12_840Z-debug.log
170npm ERR! code ELIFECYCLE
171npm ERR! errno 2
172npm ERR! pokemon-showdown@0.11.7 full-test: `npm run full-lint && npm run tsc && mocha --timeout 6000 --forbid-only -g ".*"`
166npm ERR! Exit status 2
167npm ERR!
168npm ERR! Failed at the pokemon-showdown@0.11.7 full-test script.
169npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
171npm ERR! A complete log of this run can be found in:
172npm ERR! /home/runner/.npm/_logs/2022-02-22T18_33_12_863Z-debug.log
173Error: Process completed with exit code 2.