Coder Social home page Coder Social logo

New flaky tests about fuels-ts HOT 21 OPEN

arboleya avatar arboleya commented on September 27, 2024
New flaky tests

from fuels-ts.

Comments (21)

arboleya avatar arboleya commented on September 27, 2024 2

Note

Re-check this issue after this lands:

from fuels-ts.

danielbate avatar danielbate commented on September 27, 2024 1

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

from fuels-ts.

arboleya avatar arboleya commented on September 27, 2024 1

@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?

from fuels-ts.

maschad avatar maschad commented on September 27, 2024 1

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"}}}

from fuels-ts.

maschad avatar maschad commented on September 27, 2024 1

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| 

from fuels-ts.

arboleya avatar arboleya commented on September 27, 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) ]

from fuels-ts.

arboleya avatar arboleya commented on September 27, 2024

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'

from fuels-ts.

arboleya avatar arboleya commented on September 27, 2024

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) ]

from fuels-ts.

arboleya avatar arboleya commented on September 27, 2024

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"}}}

from fuels-ts.

arboleya avatar arboleya commented on September 27, 2024

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) ]

from fuels-ts.

arboleya avatar arboleya commented on September 27, 2024

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"}}}

from fuels-ts.

petertonysmith94 avatar petertonysmith94 commented on September 27, 2024

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.

from fuels-ts.

arboleya avatar arboleya commented on September 27, 2024

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.

from fuels-ts.

maschad avatar maschad commented on September 27, 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"}}}}

from fuels-ts.

Torres-ssf avatar Torres-ssf commented on September 27, 2024

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":
...

from fuels-ts.

maschad avatar maschad commented on September 27, 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.

from fuels-ts.

maschad avatar maschad commented on September 27, 2024

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

from fuels-ts.

petertonysmith94 avatar petertonysmith94 commented on September 27, 2024

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".

from fuels-ts.

arboleya avatar arboleya commented on September 27, 2024

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

from fuels-ts.

petertonysmith94 avatar petertonysmith94 commented on September 27, 2024

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: packages/account/src/account.ts#L4036
FuelError: Transaction is not inserted. UTXO does not exist: 0x49e7ddec3cd3e6a1f913e862e0018c0babcfc63faba5300a139c08c1792819610000

packages/fuel-gauge/src/transaction-response.test.ts > TransactionResponse > should throw error for a SqueezedOut status update [waitForResult]: packages/errors/src/test-utils/safeExec.ts#L101
Error: Passed-in lambda didn't throw.

from fuels-ts.

petertonysmith94 avatar petertonysmith94 commented on September 27, 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

from fuels-ts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.