Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with flaky tests #1755

Closed
4 tasks done
arboleya opened this issue Feb 15, 2024 · 26 comments
Closed
4 tasks done

Fix issues with flaky tests #1755

arboleya opened this issue Feb 15, 2024 · 26 comments
Assignees
Labels
bug Issue is a bug chore Issue is a chore

Comments

@arboleya
Copy link
Member

arboleya commented Feb 15, 2024

We have a number of flakey tests in CI. The source of which seems to be the shared fuel-core node across test suites. Given we have merged #2378 we can now integrate launchTestNode across our testing infrastructure, then we review the flakey tests.

E.g. I've seen this one a couple of times now:
https://github.com/FuelLabs/fuels-ts/actions/runs/7914766231/job/21605183065#step:9:505

⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯

 FAIL  packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts > Predicate > With Contract > calls a predicate and uses proceeds for a contract call
Error: Expected value: '1299797' to be within range: '1300778-1300818'
 ❯ Module.expectToBeInRange packages/utils/src/test-utils/getForcProject.ts:118:9
     76|     inputGlobal,
     77|   };
     78| };
       |             ^
     79| 
 ❯ packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts:149:7

Here's the list of issues related to the integration of launchTestNode across our suites:

@arboleya arboleya added bug Issue is a bug chore Issue is a chore labels Feb 15, 2024
@arboleya
Copy link
Member Author

arboleya commented Feb 15, 2024

Two more in the same run:
https://github.com/FuelLabs/fuels-ts/actions/runs/7919038562/job/21618878393?pr=1759#step:9:505


FAIL  packages/account/src/providers/memory-cache.test.ts > Memory Cache > can get active [with data]
AssertionError: expected [ '0x6c4060175c289d6e', …(1) ] to strictly equal [ '0x6c4060175c289d6e', …(2) ]

 FAIL  packages/account/src/providers/memory-cache.test.ts > Memory Cache > can get all [with data + expired data]
AssertionError: expected [ '0x6c4060175c289d6e', …(2) ] to strictly equal [ '0x6c4060175c289d6e', …(3) ]

@arboleya
Copy link
Member Author

Three more in the same run:
https://github.com/FuelLabs/fuels-ts/actions/runs/7920711419/job/21624341501?pr=1759#step:9:597

 FAIL  packages/account/src/providers/memory-cache.test.ts > Memory Cache > can get active [with data]
AssertionError: expected [ '0xa82b33dd9ae34fd0' ] to strictly equal [ '0xa82b33dd9ae34fd0', …(2) ]
 FAIL  packages/account/src/providers/memory-cache.test.ts > Memory Cache > can get all [with data + expired data]
AssertionError: expected [ '0xa82b33dd9ae34fd0', …(1) ] to strictly equal [ '0xa82b33dd9ae34fd0', …(3) ]
 FAIL  packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts > Predicate > With Contract > calls a predicate and uses proceeds for a contract call
Error: Expected value: '1299797' to be within range: '1300778-1300818'

@arboleya arboleya changed the title New flaky test New flaky tests Feb 19, 2024
@arboleya
Copy link
Member Author

Again, and again.
https://github.com/FuelLabs/fuels-ts/actions/runs/8001998696/job/21854332907?pr=1788#step:9:125

FAIL  packages/account/src/providers/memory-cache.test.ts > Memory Cache > can get active [with data]
AssertionError: expected [ '0xe3f854f2d6d563b8', …(1) ] to strictly equal [ '0xe3f854f2d6d563b8', …(2) ]
FAIL  packages/account/src/providers/memory-cache.test.ts > Memory Cache > can get all [with data + expired data]
AssertionError: expected [ '0xe3f854f2d6d563b8', …(2) ] to strictly equal [ '0xe3f854f2d6d563b8', …(3) ]

@arboleya
Copy link
Member Author

One more time:
https://github.com/FuelLabs/fuels-ts/actions/runs/8002556292/job/21856024641?pr=1789

 FAIL  packages/fuel-gauge/src/predicate/predicate-evaluations.test.ts > Predicate > Evaluations > calls a no argument predicate and returns true
Error: Validity(InsufficientFeeAmount { expected: 213, provided: 128 }): {"response":{"data":null,"errors":[{"message":"Validity(InsufficientFeeAmount { expected: 213, provided: 128 })","locations":[{"line":2,"column":3}],"path":["submit"]}],"status":200,"headers":{}},"request":{"query":"mutation submit($encodedTransaction: HexString!) {\n  submit(tx: $encodedTransaction) {\n    id\n  }\n}","variables":{"encodedTransaction":"0x000000000000000000000000000027100000000000000004000000000000000000000000000000010000000000000002000000000000000200000000000000010000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000010000000000000000e2dfb233ae4c38757a2080a4ea0353b02943e31dc25f33ca7f7b6053c61772c10000000000000001d19a5fe4cb9baf41ad9813f1a6fef551107c8e8e3f499a6e32bccbb954a747640000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013000000000000003400000000000000007400000347000000000000000000002c5dfcc00110fff3001aec5000910000005c43f00024400000470000000100000000000000000000000000000000000000575f5b043f4e9e7966c9fee5ed043010a3d0f4dc11552885bee50594d00970f80000000000000001d19a5fe4cb9baf41ad9813f1a6fef551107c8e8e3f499a6e32bccbb954a74764000000000000001c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013000000000000003400000000000000007400000347000000000000000000002c5dfcc00110fff3001aec5000910000005c43f000244000004700000001000000000000000000000000000000000000003179123b1c8446cd6d30f607726309ff685194186a948102bbbd220ca9e798c4000000000000003200000000000000000000000000000000000000000000000000000000000000000000000000000002d19a5fe4cb9baf41ad9813f1a6fef551107c8e8e3f499a6e32bccbb954a7476400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}}}

@arboleya
Copy link
Member Author

Here we go again:
https://github.com/FuelLabs/fuels-ts/actions/runs/8002871668/job/21857013841?pr=1790

FAIL  packages/account/src/providers/memory-cache.test.ts > Memory Cache > can get active [with data]
AssertionError: expected [ '0x7ab461586a7e9b8a' ] to strictly equal [ '0x7ab461586a7e9b8a', …(2) ]
FAIL  packages/account/src/providers/memory-cache.test.ts > Memory Cache > can get all [with data + expired data]
AssertionError: expected [ '0x7ab461586a7e9b8a', …(1) ] to strictly equal [ '0x7ab461586a7e9b8a', …(3) ]

@arboleya
Copy link
Member Author

https://github.com/FuelLabs/fuels-ts/actions/runs/8002556292/job/21858435060?pr=1789

FAIL  packages/fuel-gauge/src/policies.test.ts > Policies > should ensure TX policies are properly set (ScriptTransactionRequest)
Error: Validity(TransactionMaturity): {"response":{"data":null,"errors":[{"message":"Validity(TransactionMaturity)","locations":[{"line":2,"column":3}],"path":["submit"]}],"status":200,"headers":{}},"request":{"query":"mutation submit($encodedTransaction: HexString!) {\n  submit(tx: $encodedTransaction) {\n    id\n  }\n}","variables":{"encodedTransaction":"0x0000000000000000000000000000000d00000000000000040000000000000000000000000000000f0000000000000001000000000000000200000000000000010000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000020000000000000345000000000000000200000000000024b1000000000000000018c01c262530830dc4f9f14c05c130a47926eb560da1721f44dbed385a1c9caa0000000000000001fd40d01[533](https://github.com/FuelLabs/fuels-ts/actions/runs/8002556292/job/21858435060?pr=1789#step:9:534)047bd71716c66c8547f7cdb6af1b466118c03a4c5a67da3a274309000000000007a120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd96f2b11f7beeeddd9d33814201ab01f7099a86ceb5463c88f9e9f075636f1100000000000001f400000000000000000000000000000000000000000000000000000000000000000000000000000002fd40d01533047bd71716c66c8547f7cdb6af1b466118c03a4c5a67da3a274309000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040f7e97892eb4d0c659f9c2716692854bda602b15276e44a707f96945bd820546045d9593b5dd76a310540ae5be16c3ff2605bb483a220cc12ac8dc754fcfff7a8"}}}

@danielbate
Copy link
Contributor

Would be interesting to see if we can prove these working with #1356 where parallel txs wouldn't be an issue.

@petertonysmith94
Copy link
Contributor

https://github.com/FuelLabs/fuels-ts/actions/runs/8230682592/job/22504434996?pr=1846#step:9:207

packages/fuel-gauge/src/transaction-response.test.ts > TransactionResponse > should throw error for a SqueezedOut status update [submitAndAwait]
Test timed out in 7000ms.

@arboleya
Copy link
Member Author

https://github.com/FuelLabs/fuels-ts/actions/runs/8472514511/job/23214781407?pr=1972#step:9:101

   ❯ packages/fuel-gauge/src/transaction-response.test.ts > TransactionResponse > should throw error for a SqueezedOut status update [submitAndAwait]
     → Passed-in lambda didn't throw.

@maschad
Copy link
Member

maschad commented Apr 9, 2024

Another one https://github.com/FuelLabs/fuels-ts/actions/runs/8615957986/job/23628036102?pr=2030#step:9:620

FAIL  packages/fuel-gauge/src/predicate/predicate-configurables.test.ts > Predicate > Configurables > calls a predicate with configurables using default values
FuelError: Error while parsing stream data response: data:{"data":{"statusChange":{"type":"SubmittedStatus","time":"4611686020140076244"}}}

data:{"data":{"statusChange":{"type":"SuccessStatus","block":{"id":"0x84f3aeea5c3f0acca5ddb98d81093038290bd4fd4ba23ccf[621](https://github.com/FuelLabs/fuels-ts/actions/runs/8615957986/job/23628036102?pr=2030#step:9:622)20c524850124a"},"time":"4611686020140076244","programState":{"returnType":"RETURN","data":"0x0000000000000000"}}}}

@arboleya
Copy link
Member Author

@nedsalk Regarding the above error — is it related to the stream parsing logic?

@Torres-ssf Is this the same stream issue you mentioned you had?

@Torres-ssf
Copy link
Contributor

The same error happens here as well:
https://github.com/FuelLabs/fuels-ts/actions/runs/8601001563/job/23567196292#step:9:807

 FAIL  packages/fuel-gauge/src/raw-slice.test.ts > Raw Slice Tests > should test raw slice input [predicate-raw-slice]
FuelError: Error while parsing stream data response: data:{"data":{"statusChange":{"type":"SubmittedStatus","time":"4611686020139971391"}}}

data:{"data":{"statusChange":{"type":"SuccessStatus","block":
...

@maschad
Copy link
Member

maschad commented Apr 25, 2024

Given many of these flakey tests seem related to the predicates on the e2e workflow, I think until #1820 is ready we can have a temporary fix by adding delays.

@maschad
Copy link
Member

maschad commented Apr 29, 2024

Also https://github.com/FuelLabs/fuels-ts/actions/runs/8878299585/job/24373658684#step:10:699

 FAIL  apps/docs-snippets/src/guide/transactions/transaction-response.test.ts > Transaction Response > gets transaction response from tx id
Error: Transaction is not inserted. UTXO does not exist: 0xbadeb64d29717433856a595ebd3d620af82711e4177d467dfd5b92f03acbfc750000: {"response":{"data":null,"errors":[{"message":"Transaction is not inserted. UTXO does not exist: 0xbadeb64d29717433856a595ebd3d620af82711e4177d467dfd5b92f03acbfc750000","locations":[{"line":2,"column":3}],"path":["submit"]}],"status":200,"headers":{}},"request":{"query":"mutation submit($encodedTransaction: HexString!) {\n  submit(tx: $encodedTransaction) {\n    id\n  }\n}","variables":{"encodedTransaction":"0x000000000000000000000000000004d00000000000000000000000000000000000000000000000000000000000000000000000000000019c000000000000000100000000000000090000000000000001000000000000000100000000000000011af0300074000002000000000000017c5dffc00110ffff001aec5000910000985057b0586140000a1b441000104104405c4100005c47f000105904405c43f008154164007640004c5d43f002264000001a4070005fed00105d43f0025fed00115fec00125043b0805d47b0105d4bb0115d4fb012104d3040165124c076500001135124c0765000065047b0285fec0005504fb06872480018284d14807400000c124d3480104d30401b4d24c0264c0000281d14801a4470005fec10005fed10015fed3002504fb06872440018284fb4405047b04072480018284534805d47b00d134510007644000f5d47b00813451040764400025d43f003364000005047b04050451008504bb0405049200850492008724c0008284114c050450008724c0008284524c05d4500005d4900021b481480104514805e4560005d450002104510405f4110025043b08050450010504bb018724c0008284904c050412008724c0008284114c072400010285524005d4150015d55500025550000360000000a00000000000000ff000000000000000000000000000400cccccccccccc0002000000000100000000000000000000000000000000000000000004640000000000000000badeb64d29717433856a595ebd3d620af82711e4177d467dfd5b92f03acbfc750000000000000000d775b4fb1198695e4e6fb37e3a2f25dc5027e3572d6f139b68720bfa56d00e5d00000000000f424000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d775b4fb1198695e4e6fb37e3a2f25dc5027e3572d6f139b68720bfa56d00e5d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040eda6f2a12fe22e5ab5c17d8b4892230d44d0eda381be8ec8435ba584e512b6c06435c2cdf33fb88f7802a6762c08c388115d229208cb902a85ebd18544d13d8f"}}}

@maschad
Copy link
Member

maschad commented Apr 29, 2024

As well as https://github.com/FuelLabs/fuels-ts/actions/runs/8880413928/job/24380375347?pr=2199#step:10:709 post-merge of the first wave of the network release cycle

 FAIL  packages/fuel-gauge/src/transaction-response.test.ts > TransactionResponse > should throw error for a SqueezedOut status update [submitAndAwait]
Error: Passed-in lambda didn't throw.
 ❯ Module.expectToThrowFuelError packages/errors/src/test-utils/safeExec.ts:101:11
     12| 
     13|   return { error, result };
     14| };
       |             ^
     15| 

@maschad
Copy link
Member

maschad commented May 6, 2024

I'm unassigning myself as these seem far less frequent post-upgrade

@maschad maschad removed their assignment May 6, 2024
@petertonysmith94
Copy link
Contributor

https://github.com/FuelLabs/fuels-ts/actions/runs/9108478633/job/25044563729#step:5:699

FAIL packages/fuel-gauge/src/transaction-response.test.ts > TransactionResponse > should ensure waitForResult always waits for the transaction to be processed
Error: Test timed out in 18500ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".

@arboleya
Copy link
Member Author

https://github.com/FuelLabs/fuels-ts/actions/runs/9157236096/job/25173194256?pr=2332#step:5:635

⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯

 FAIL  packages/fuel-gauge/src/predicate/predicate-with-contract.test.ts > Predicate > With Contract > executes a contract call with a predicate to ensure not extra witnesses are added
FuelError: Transaction is not inserted. UTXO does not exist: 0xc39d40bd57088ba677d7e01162bc1c220a2e1a75ee64ef62d4b2138e20d996610000

@petertonysmith94
Copy link
Contributor

petertonysmith94 commented May 30, 2024

Relates to #2250

https://github.com/FuelLabs/fuels-ts/actions/runs/9304716330/job/25609972065?pr=2250#step:5:133

 ❯ packages/fuel-gauge/src/fee.test.ts > Fee > should ensure fee is properly calculated on transactions with predicate
   → Expected value: '172323' to be within range: '727463-727503'

https://github.com/FuelLabs/fuels-ts/actions/runs/9304716330/job/25609971809?pr=2250#step:5:1027

Failed to terminate worker while running /home/runner/work/fuels-ts/fuels-ts/apps/docs-snippets/src/guide/transactions/transaction-parameters.test.ts. 
See https://vitest.dev/guide/common-errors.html#failed-to-terminate-worker for troubleshooting.
Tests closed successfully but something prevents Vite server from exiting
You can try to identify the cause by enabling "hanging-process" reporter. See https://vitest.dev/config/#reporters

@arboleya arboleya added the p0 label Jun 9, 2024
@arboleya arboleya added this to the Mainnet milestone Jun 9, 2024
@arboleya arboleya removed the mainnet label Jun 9, 2024
@arboleya
Copy link
Member Author

Note

Re-check this issue after this lands:

@arboleya
Copy link
Member Author

arboleya commented Jul 9, 2024

Another possible flaky:

⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯

 FAIL  packages/fuel-gauge/src/await-execution.test.ts > await-execution > awaiting execution of a transaction on the provider works
FuelError: got error during work with storage The historical view is not implemented for `MemoryStore`
 ❯ responseMiddleware packages/account/src/account.ts:4060:19
    724|     return request;
    725|   }
    726| }
       |  ^

Error: FuelError: got error during work with storage The historical view is not implemented for `MemoryStore`
 ❯ responseMiddleware packages/account/src/account.ts:4060:19
 ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/graphql-request/src/index.ts:345:11
 ❯ _Provider.estimateTxDependencies packages/account/src/account.ts:4279:11
 ❯ _Provider.getTransactionCost packages/account/src/account.ts:4520:74
 ❯ WalletUnlocked.estimateAndFundTransaction packages/account/src/account.ts:5852:20
 ❯ WalletUnlocked.createTransfer packages/account/src/account.ts:5619:15
 ❯ packages/fuel-gauge/src/await-execution.test.ts:22:22

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { VERSIONS: { FORC: '0.61.2', FUEL_CORE: '0.31.0', FUELS: '0.91.0' }, metadata: {}, rawError: {}, code: 'invalid-request', toObject: 'Function<toObject>' }

    727| 
 ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/graphql-request/src/index.ts:345:11
 ❯ _Provider.estimateTxDependencies packages/account/src/account.ts:4279:11
 ❯ _Provider.getTransactionCost packages/account/src/account.ts:4520:74
 ❯ WalletUnlocked.estimateAndFundTransaction packages/account/src/account.ts:5852:20
 ❯ WalletUnlocked.createTransfer packages/account/src/account.ts:5619:15
 ❯ packages/fuel-gauge/src/await-execution.test.ts:22:22

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { VERSIONS: { FORC: '0.61.2', FUEL_CORE: '0.31.0', FUELS: '0.91.0' }, metadata: {}, rawError: {}, code: 'invalid-request', toObject: 'Function<toObject>' }
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯

@petertonysmith94
Copy link
Contributor

petertonysmith94 commented Jul 12, 2024

Fixed in #2759

cc @nedsalk

FAIL  packages/account/src/test-utils/launchNode-singular-test.test.ts > launchNode-singular-test > synchronous cleanup kills node before test runner exits
AssertionError: promise resolved "Response{ [Symbol(realm)]: null, …(2) }" instead of rejecting

- Expected
+ Received

- [Error: rejected promise]
+ Response {
+   Symbol(realm): null,
+   Symbol(state): Object {
+     "aborted": false,
+     "body": Object {
+       "stream": ReadableStream {
+         Symbol(kType): "ReadableStream",
+         Symbol(kState): Object {
+           "controller": ReadableStreamDefaultController {
+             Symbol(kType): "ReadableStreamDefaultController",
+             Symbol(kState): Object {
+               "cancelAlgorithm": [Function bound cancel],
+               "closeRequested": false,
+               "highWaterMark": 0,
+               "pullAgain": false,
+               "pullAlgorithm": [Function bound pull],
+               "pulling": false,
+               "queue": Array [],
+               "queueTotalSize": 0,
+               "sizeAlgorithm": [Function size],
+               "started": true,
+               "stream": ReadableStream {
+                 Symbol(kType): "ReadableStream",
+                 Symbol(kState): [Circular],
+                 Symbol(nodejs.webstream.isClosedPromise): Object {
+                   "promise": Promise {},
+                   "reject": [Function anonymous],
+                   "resolve": [Function anonymous],
+                 },
+                 Symbol(nodejs.webstream.controllerErrorFunction): [Function bound error],
+               },
+             },
+           },
+           "disturbed": false,
+           "reader": undefined,
+           "state": "readable",
+           "storedError": undefined,
+           "stream": undefined,
+           "transfer": Object {
+             "port1": undefined,
+             "port2": undefined,
+             "promise": undefined,
+             "writable": undefined,
+           },
+         },
+         Symbol(nodejs.webstream.isClosedPromise): Object {
+           "promise": Promise {},
+           "reject": [Function anonymous],
+           "resolve": [Function anonymous],
+         },
+         Symbol(nodejs.webstream.controllerErrorFunction): [Function bound error],
+       },
+     },
+     "cacheState": "",
+     "headersList": HeadersList {
+       "cookies": null,
+       Symbol(headers map): Map {
+         "access-control-allow-origin" => Object {
+           "name": "access-control-allow-origin",
+           "value": "*",
+         },
+         "access-control-allow-methods" => Object {
+           "name": "access-control-allow-methods",
+           "value": "*",
+         },
+         "access-control-allow-headers" => Object {
+           "name": "access-control-allow-headers",
+           "value": "*",
+         },
+         "content-length" => Object {
+           "name": "content-length",
+           "value": "0",
+         },
+         "date" => Object {
+           "name": "date",
+           "value": "Fri, 12 Jul 2024 06:25:43 GMT",
+         },
+       },
+       Symbol(headers map sorted): null,
+     },
+     "rangeRequested": false,
+     "requestIncludesCredentials": true,
+     "status": 405,
+     "statusText": "Method Not Allowed",
+     "timingAllowPassed": true,
+     "timingInfo": Object {
+       "decodedBodySize": 0,
+       "encodedBodySize": 0,
+       "endTime": 0,
+       "finalConnectionTimingInfo": null,
+       "finalNetworkRequestStartTime": 0,
+       "finalNetworkResponseStartTime": 0,
+       "finalServiceWorkerStartTime": 0,
+       "postRedirectStartTime": 135863.21586599[998](https://github.com/FuelLabs/fuels-ts/actions/runs/9898356515/job/27358845148?pr=2757#step:5:1012),
+       "redirectEndTime": 0,
+       "redirectStartTime": 0,
+       "startTime": 135863.215865[999](https://github.com/FuelLabs/fuels-ts/actions/runs/9898356515/job/27358845148?pr=2757#step:5:1013)98,
+     },
+     "type": "basic",
+     "urlList": Array [
+       "http://0.0.0.0:4002/v1/graphql",
+     ],
+   },
+   Symbol(headers): Headers {
+     Symbol(guard): "immutable",
+     Symbol(headers list): HeadersList {
+       "cookies": null,
+       Symbol(headers map): Map {
+         "access-control-allow-origin" => Object {
+           "name": "access-control-allow-origin",
+           "value": "*",
+         },
+         "access-control-allow-methods" => Object {
+           "name": "access-control-allow-methods",
+           "value": "*",
+         },
+         "access-control-allow-headers" => Object {
+           "name": "access-control-allow-headers",
+           "value": "*",
+         },
+         "content-length" => Object {
+           "name": "content-length",
+           "value": "0",
+         },
+         "date" => Object {
+           "name": "date",
+           "value": "Fri, 12 Jul 2024 06:25:43 GMT",
+         },
+       },
+       Symbol(headers map sorted): null,
+     },
+     Symbol(realm): null,
+   },
+ }

@maschad maschad added the epic label Jul 15, 2024
@maschad maschad changed the title New flaky tests Fix issues with flaky tests Jul 15, 2024
@arboleya arboleya removed this from the 0.x mainnet milestone Jul 19, 2024
@arboleya arboleya added p0 and removed p0 labels Jul 20, 2024
@arboleya
Copy link
Member Author

This MemoryStore error happened again:

⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯

 FAIL  packages/fuel-gauge/src/await-execution.test.ts > await-execution > awaiting execution of a transaction on the provider works
FuelError: got error during work with storage The historical view is not implemented for `MemoryStore`
 ❯ responseMiddleware packages/account/src/wallet/base-wallet-unlocked.ts:3951:19
    158|     return encryptKeystoreWallet(this.privateKey, this.address, passwo…
    159|   }
    160| }
       |  ^
    161| 
 ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/graphql-request/src/index.ts:345:11
 ❯ _Provider.estimateTxDependencies packages/account/src/wallet/base-wallet-unlocked.ts:4170:11
 ❯ _Provider.getTransactionCost packages/account/src/wallet/base-wallet-unlocked.ts:4411:74
 ❯ WalletUnlocked.estimateAndFundTransaction packages/account/src/wallet/base-wallet-unlocked.ts:5575:20
 ❯ WalletUnlocked.createTransfer packages/account/src/wallet/base-wallet-unlocked.ts:5342:15
 ❯ packages/fuel-gauge/src/await-execution.test.ts:23:22

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { VERSIONS: { FORC: '0.62.0', FUEL_CORE: '0.31.0', FUELS: '0.92.1' }, metadata: {}, rawError: {}, code: 'invalid-request', toObject: 'Function<toObject>' }

@petertonysmith94
Copy link
Contributor

@arboleya
Copy link
Member Author

arboleya commented Aug 16, 2024

Closing this before it grows legs and starts chasing us.

Seriously tho, it's time for a new flaky season:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is a bug chore Issue is a chore
Projects
None yet
Development

No branches or pull requests

5 participants