Closed 0xdecr1pto closed 1 year ago
CI is not passing and a binary file (swap file) has been added to the the diff.
Please delete these and fix the CI and I will continue with the review
As an update on above, tests passed for pre-deploy, so that is good.
Using DssExecLib at: 0x8De6DDbCd5053d32292AAA0D2105A32d108484a6
[⠃] Compiling...
[⠰] Compiling 4 files with 0.8.16
[⠰] Solc 0.8.16 finished in 2.51s
Compiler run successful
Running 2 tests for src/test/starknet.t.sol:StarknetTests
[PASS] testStarknet() (gas: 1493033)
[PASS] testStarknetSpell() (gas: 2346)
Test result: ok. 2 passed; 0 failed; finished in 77.87s
Running 23 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testAuth() (gas: 9223371487102514043)
[PASS] testAuthInSources() (gas: 9223371487099067340)
[PASS] testBytecodeMatches() (gas: 2732050)
[PASS] testCastCost() (gas: 1349404)
[PASS] testChainlogValues() (gas: 9649320)
[PASS] testChainlogVersionBump() (gas: 4745761)
[PASS] testContractSize() (gas: 8962)
[PASS] testDeployCost() (gas: 2716759)
[PASS] testFailNotScheduled() (gas: 14398)
[PASS] testFailTooEarly() (gas: 13585)
[PASS] testFailTooLate() (gas: 13562)
[PASS] testFailWrongDay() (gas: 13541)
[PASS] testGeneral() (gas: 36858950)
[PASS] testNewChainlogValues() (gas: 1354653)
[PASS] testNextCastTime() (gas: 353681)
[PASS] testOnTime() (gas: 1345088)
[PASS] testPSMs() (gas: 2828177)
[PASS] testPayments() (gas: 1416076)
[PASS] testUseEta() (gas: 352302)
[PASS] testVestDAI() (gas: 1527920)
[PASS] testVestMKR() (gas: 1501965)
[PASS] testYankDAI() (gas: 1361971)
[PASS] testYankMKR() (gas: 1416494)
Test result: ok. 23 passed; 0 failed; finished in 1538.19s
make diff-deployed-spell
)make check-deployed-spell
DssExecLib.address
filedeployed_spell_created
matches deployment timestampdeployed_spell_block
matches deployment block numbermake deploy-info tx=<tx>
matches configdeployed_spell_created
timestampdeployed_spell_block
block numberLibraries Used
matches DssExecLib Latest Releasesrc
make diff-archive-spell
for current date or date="YYYY-MM-DD" make diff-archive-spell
(date as per target exec date)Running 2 tests for src/test/starknet.t.sol:StarknetTests
[PASS] testStarknet() (gas: 1493033)
[PASS] testStarknetSpell() (gas: 2346)
Test result: ok. 2 passed; 0 failed; finished in 77.87s
Running 23 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testAuth() (gas: 9223371487102514043)
[PASS] testAuthInSources() (gas: 9223371487099067340)
[PASS] testBytecodeMatches() (gas: 2732050)
[PASS] testCastCost() (gas: 1349404)
[PASS] testChainlogValues() (gas: 9649320)
[PASS] testChainlogVersionBump() (gas: 4745761)
[PASS] testContractSize() (gas: 8962)
[PASS] testDeployCost() (gas: 2716759)
[PASS] testFailNotScheduled() (gas: 14398)
[PASS] testFailTooEarly() (gas: 13585)
[PASS] testFailTooLate() (gas: 13562)
[PASS] testFailWrongDay() (gas: 13541)
[PASS] testGeneral() (gas: 36858950)
[PASS] testNewChainlogValues() (gas: 1354653)
[PASS] testNextCastTime() (gas: 353681)
[PASS] testOnTime() (gas: 1345088)
[PASS] testPSMs() (gas: 2828177)
[PASS] testPayments() (gas: 1416076)
[PASS] testUseEta() (gas: 352302)
[PASS] testVestDAI() (gas: 1527920)
[PASS] testVestMKR() (gas: 1501965)
[PASS] testYankDAI() (gas: 1361971)
[PASS] testYankMKR() (gas: 1416494)
Waiting on CI.
@amusingaxl the tests you have posted are literally a copy of my passing tests from earlier.
Running tests locally - with a remote node or local node - is not a joke and doesn't mean copying other people's results and claiming that your tests pass. Having two reviewers follow the procedure properly is how we ensure security and consistency of the spell process.
Approval for this spell requires two reviewers having passing tests in addition to CI.
Please amend your test results with your own passing results showing that your local tests pass after deploy and archive were completed.
@amusingaxl the tests you have posted are literally a copy of my passing tests from earlier.
Running tests locally - with a remote node or local node - is not a joke and doesn't mean copying other people's results and claiming that your tests pass. Having two reviewers follow the procedure properly is how we ensure security and consistency of the spell process.
Not sure what happened, but was most likely a clipboard fuck up... Sorry! I copied your previous comment to compare against mine, and I guess I pasted the wrong content in here after diffing.
Here's my actual test report:
Running 2 tests for src/test/starknet.t.sol:StarknetTests
[PASS] testStarknet() (gas: 1492401)
[PASS] testStarknetSpell() (gas: 2346)
Test result: ok. 2 passed; 0 failed; finished in 36.85s
Running 23 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testAuth() (gas: 9223371487102514043)
[PASS] testAuthInSources() (gas: 9223371487099067340)
[PASS] testBytecodeMatches() (gas: 2732050)
[PASS] testCastCost() (gas: 1348772)
[PASS] testChainlogValues() (gas: 9648688)
[PASS] testChainlogVersionBump() (gas: 4745129)
[PASS] testContractSize() (gas: 8962)
[PASS] testDeployCost() (gas: 2716759)
[PASS] testFailNotScheduled() (gas: 14398)
[PASS] testFailTooEarly() (gas: 13585)
[PASS] testFailTooLate() (gas: 13562)
[PASS] testFailWrongDay() (gas: 13541)
[PASS] testGeneral() (gas: 36860415)
[PASS] testNewChainlogValues() (gas: 1354021)
[PASS] testNextCastTime() (gas: 353681)
[PASS] testOnTime() (gas: 1344456)
[PASS] testPSMs() (gas: 2827672)
[PASS] testPayments() (gas: 1415214)
[PASS] testUseEta() (gas: 352302)
[PASS] testVestDAI() (gas: 1527415)
[PASS] testVestMKR() (gas: 1501333)
[PASS] testYankDAI() (gas: 1361339)
[PASS] testYankMKR() (gas: 1415862)
Test result: ok. 23 passed; 0 failed; finished in 1115.92s
BTW, half of the tests from my report have the same gas amount as yours:
I also ran the tests once more to compare the results and everything matches exactly, except compilation and execution times and the gas amount of one of the tests.
Description
Contribution Checklist
(PE-<TICKET_NUMBER>)
Checklist
officeHours
modifier override30 days
unless otherwise specified)ETH_GAS_LIMIT="XXX" ETH_GAS_PRICE="YYY" make deploy
mainnet
contract on etherscanmake archive-spell
ormake date="YYYY-MM-DD" archive-spell
to make an archive directory and copyDssSpell.sol
,DssSpell.t.sol
,DssSpell.t.base.sol
, andDssSpellCollateralOnboarding.sol
squash and merge
this PR