Open klntsky opened 1 year ago
Evaluation with additional UTxOs with native scripts
gets skipped, for the moment, in this PR
Looks like example of the last problem: https://ci.staging.mlabs.city/build/121841/nixlog/2
submit call failed. Error from Ogmios: [{"valueNotConserved...
this time for Evaluation with additional UTxOs
https://ci.staging.mlabs.city/build/134166/log
makes sense
I think the valueNotConserved
+ badInputs
in AdditionalUtxoSet*
tests happens because when we make two subsequent submit
calls there's no guarantee that ogmios will see the outputs of the first transaction when we send the second one. We should probably ask upstream if it is possible to provide an additional UTxO set for submit endpoint as well, just like it is done for evaluteTx.
@klntsky
https://github.com/Plutonomicon/cardano-transaction-lib/pull/1267 says it covers ClientHttpError case. If so it seems like this issue solved?
@uhbif19 as it always is with race condition issues, remains to be seen.
@klntsky I mean the PR is merged for more than a week. And as far as I understand, ClientHttpError was quite frequent in CIs. So if there were no fails for the last days, then the bug is probably fixed, no?
I think I got the insights of this error:
✗ gero:http://localhost:4008/?gero:ECDSA:
Error: Error: (TxOutRefWrongType (TransactionInput { index: 0u, transactionId: (TransactionHash (hexToByteArrayUnsafe "3ca8852ff76537383dded28f3d65249b76b605890193ee306f7e0584b2e5d19a")) }))
at exports.error (webpack-internal:///./output.js:2367:12)
at Object.$$throw [as throw] (webpack-internal:///./output.js:2415:47)
at eval (webpack-internal:///./output.js:33552:47)
at eval (webpack-internal:///./output.js:2215:26)
at eval (webpack-internal:///./output.js:9248:36)
at run (webpack-internal:///./output.js:11927:24)
at eval (webpack-internal:///./output.js:11997:21)
at drain (webpack-internal:///./output.js:11769:11)
at Object.enqueue (webpack-internal:///./output.js:11790:13)
at eval (webpack-internal:///./output.js:11988:29)
in this pr : #1326
Basically, the failure on eternl made it an error that always happens in one of the commits from the beginning, which allow me to trace the error.
Basically, the test,
keep the first utxo -attempt to expend the outxo
That means sometimes the chosen utxo wasn't the one we performed, this was solved by passing to the second stage of the script the has of the transaction we expect to consume and look for it.
Currently this make the test to bypass this error but broke the assertions.
I also got in this kind of error in Schnorr
but it seems that the change solved it for this test.
We have some sort of non-determinism in the balancer (?) that leads to errors, but only sometimes.
Let's use this issue to collect failing logs that hopefully can help us pin down the issue eventually.
Grouped by type of error:
submit call failed. Error from Ogmios: [{"valueNotConserved...
log1.txt commit, PR
Tests affected:
Evaluation with additional UTxOs with native scripts
Could not find unspent output locked at script address
log2.txt commit PR
Test affected:
ReferenceScripts
(ClientHttpError There was a problem making the request: request failed)
Happens on
develop
, looks like all tests are affected (very low chance)(Right unit) doesn't satisfy predicate
log3.txt PR
Test affected:
ownStakePubKeyHash: failed to convert to base address
Fixed in https://github.com/Plutonomicon/cardano-transaction-lib/commit/37d9d41e3b8377dbbe726540e8c4495c766a44c6
Error: Error: (TxOutRefWrongType
wallet missing collateral
in E2EThis is normal. Please set up the collateral manually in
npm run e2e-browser
and save the settings withnpm run e2e-pack-settings
immediately after (do not re-run the test suite in between, it will overwrite the settings)missingRequiredRedeemers (gero, E2E, Schnorr example)
e2e-cip-49-gero-log.txt