-
Notifications
You must be signed in to change notification settings - Fork 411
test(cketh): adversarial end-to-end coverage of sweeper fee funding #11097
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
Open
mbjorkqvist
wants to merge
131
commits into
master
Choose a base branch
from
mathias/DEFI-2933-hardening
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 127 commits
Commits
Show all changes
131 commits
Select commit
Hold shift + click to select a range
55afdad
feat(cketh): burn ckETH from the minter's own fee subaccount
mbjorkqvist 0f1b01c
feat(cketh): sweeper fee-funding task, with an end-to-end test
mbjorkqvist 5b31c7d
Automatically fixing code for linting and formatting issues
72402b9
fix(cketh): sequence the first funding check after the key fetch
mbjorkqvist 07c09a7
fix(cketh): seed the fee account before the minter can race the test
mbjorkqvist 5ab0b58
Empty commit to trigger CI_ALL_BAZEL_TARGETS
mbjorkqvist 8a9c0df
fix(cketh): refuse to fund beyond the deposit-backed ETH balance
mbjorkqvist 705f381
test(cketh): give the live harness a real deposit and a server that o…
mbjorkqvist 6408d7b
fix(cketh): give the live funding test a timeout its waits fit in
mbjorkqvist ff31ec4
test(cketh): fund the fee account where no funding check can race it
mbjorkqvist 8c1b7e8
fix(cketh): reduce the balance read at the funding call site
mbjorkqvist c04a281
test(cketh): keep the fixture from executing rounds before the test does
mbjorkqvist 1086a3f
refactor(cketh): burn for the funding at hand, and nothing else
mbjorkqvist 8a278cf
test(cketh): drop the PocketIC hard-TTL workaround
mbjorkqvist 6f9abce
refactor(cketh): read the funding bounds where they are derived
mbjorkqvist 67b2f06
refactor(cketh): derive the outstanding funding from the pipeline
mbjorkqvist 94a7b54
test(cketh): tidy the funding tests as reviewed
mbjorkqvist 835ca9c
refactor(cketh): ask the state for the sweeper address
mbjorkqvist af7d4e7
test(cketh): settle whatever is not log scraping, whatever it is
mbjorkqvist 80ad156
Empty commit to trigger CI_ALL_BAZEL_TARGETS
mbjorkqvist 233b0b3
feat(cketh): sweeper funding observability and the prepaid-gas gate
mbjorkqvist dbcd58a
docs(cketh): state that the prepaid-gas check is not an allowance
mbjorkqvist 41585de
test(cketh): assert the sweeper balance observation only on a good read
mbjorkqvist e611a29
test(cketh): pin that an upgrade forgets the sweeper balance observation
mbjorkqvist 2c2dbdf
test(cketh): answer the install-time read where an observation is needed
mbjorkqvist 25637d0
feat(cketh): count funding transactions that fail on chain
mbjorkqvist 3a3ae44
refactor(cketh): report the burn surplus as what it now is
mbjorkqvist 8a71490
refactor(cketh): report the funding the pipeline is holding
mbjorkqvist 7a048b0
refactor(cketh): read the sweeper address off the state in the dashboard
mbjorkqvist 92dff67
Empty commit to trigger CI_ALL_BAZEL_TARGETS
mbjorkqvist 9eecdea
test(cketh): adversarial end-to-end coverage of sweeper fee funding
mbjorkqvist 5b6209e
Empty commit to trigger CI_ALL_BAZEL_TARGETS
mbjorkqvist 027c85f
test(cketh): wait for the funding the minter has burned for
mbjorkqvist e1b5a8d
test(cketh): take the no-burn baseline before re-arming the timers
mbjorkqvist 8ae7da3
test(cketh): expect the status a failed funding actually reports
mbjorkqvist 8b29237
test(cketh): say what a failed funding leaves behind
mbjorkqvist 15a0be5
test(cketh): buy the sweeper-funding timer tick instead of waiting it…
mbjorkqvist be47efc
refactor(cketh): decide funding from a tracked balance bound
mbjorkqvist b593ca8
test(cketh): drop the outcall settling an install no longer schedules
mbjorkqvist e632abb
docs(cketh): describe prepaid gas as a bound, not an observation
mbjorkqvist f7d18e3
test(cketh): take the funding baseline before the minter can burn
mbjorkqvist c23c867
Merge branch 'mathias/DEFI-2933-funding-task' into mathias/DEFI-2933-…
mbjorkqvist ffd872e
refactor(cketh): gate sweep gas on the bound, not a cached reading
mbjorkqvist 8a11ed6
feat(cketh): report prepaid sweep gas as a lower bound
mbjorkqvist 721c8ec
feat(cketh): show the prepaid-gas bound on the dashboard
mbjorkqvist 5e156b2
Merge branch 'mathias/DEFI-2933-observability' into mathias/DEFI-2933…
mbjorkqvist e7fca27
test(cketh): buy the hardening tests' timer ticks and fund for real
mbjorkqvist e62f002
test(cketh): drop the mock method the funding task no longer calls
mbjorkqvist c13f20e
Merge #11086 into #11094
mbjorkqvist 07f45a4
Merge #11094 into #11097
mbjorkqvist 5be9dd2
Merge master into the sweeper fee-funding task
mbjorkqvist defe152
Merge #11086 into #11094
mbjorkqvist 4f30b24
Merge #11094 into #11097
mbjorkqvist 822fc56
Merge master into the sweeper fee-funding task
mbjorkqvist a1aeed1
build(cketh): drop the unused tokio dependency from the test utils
mbjorkqvist a93782c
feat(cketh): check the sweeper's funding hourly instead of daily
mbjorkqvist 0c3c22e
refactor(cketh): ask what a funding needs before what blocks it
mbjorkqvist 9b9eaf8
test(cketh): set the certified time before the harness goes live
mbjorkqvist 6ee79fe
docs(cketh): say why burning from an own subaccount needs no approval
mbjorkqvist eb2d2a8
Merge the funding-task review fixes into the observability branch
mbjorkqvist 241228f
chore(cketh): record the post-upgrade replay cost of funding events
mbjorkqvist 8afd8b0
Merge the funding-task review fixes into the observability branch
mbjorkqvist 8c87451
Merge the funding-task review fixes into the hardening branch
mbjorkqvist 6cc41aa
test(cketh): give the hardening tests their empty fee account back
mbjorkqvist 94ef87f
refactor(cketh): keep the daily funding interval, and say less
mbjorkqvist d2415a9
Merge the daily interval and the comment trims into the observability…
mbjorkqvist 7c7a211
Merge the daily interval and the comment trims into the hardening branch
mbjorkqvist 8c1fc70
docs(cketh): trim the empty-fee-account doc back to a line
mbjorkqvist 33d020a
test(cketh): drop the harness's unused block-mining helper
mbjorkqvist cd0f2b9
Merge the dead-helper removal into the observability branch
mbjorkqvist 11cf5ea
Merge the dead-helper removal into the hardening branch
mbjorkqvist 704b743
fix(cketh): state which way a low balance bound can err
mbjorkqvist 1a5e8cb
Merge the balance-bound and deadline fixes into the observability branch
mbjorkqvist d59f641
Merge the balance-bound and deadline fixes into the hardening branch
mbjorkqvist e503eaf
test(cketh): cover the failure branch of a finalized funding
mbjorkqvist 77f71d1
Merge the failure-branch coverage into the hardening branch
mbjorkqvist 8feb306
test(cketh): prove a failed funding pays gas and stays unreimbursed
mbjorkqvist 46a1397
test(cketh): pin the failed-funding counter on the success path too
mbjorkqvist 0bb415d
Merge the success-path counter assertion into the hardening branch
mbjorkqvist 6dc6f41
test(cketh): deposit through the real helper contract
mbjorkqvist 8b2c923
Merge master into the sweeper fee-funding task
mbjorkqvist b0d72a9
chore(cketh): regenerate the canbench results after the master merge
mbjorkqvist e9d8b1a
Merge the real deposit flow and master into the observability branch
mbjorkqvist e91ffbc
Merge the real deposit flow and master into the hardening branch
mbjorkqvist 11e96f2
test(cketh): give the hardening target the deposit helper too
mbjorkqvist 057cad0
refactor(cketh): let the planner read the balance bound itself
mbjorkqvist a7346b6
test(cketh): build the funding harness on the shared live fixture
mbjorkqvist 4253abf
Merge the shared-fixture harness into the observability branch
mbjorkqvist 8a03137
Merge the shared-fixture harness into the hardening branch
mbjorkqvist 30ea0e9
test(cketh): one live harness for both features
mbjorkqvist 3c9fd05
test(cketh): one live harness instead of two
mbjorkqvist b5ea2f7
Merge the single live harness into the observability branch
mbjorkqvist f4849a3
Merge the single live harness into the hardening branch
mbjorkqvist 9e941fe
Merge master into the sweeper fee-funding task
mbjorkqvist 3d559aa
Merge master and the single live harness into the observability branch
mbjorkqvist c3c1d98
Merge master and the single live harness into the hardening branch
mbjorkqvist cb9fdf3
docs(cketh): fix two comments my own edits left misplaced
mbjorkqvist 9258736
Merge the comment fixes into the observability branch
mbjorkqvist d58051b
Merge the comment fixes into the hardening branch
mbjorkqvist 2dc391e
refactor(cketh): clean up the live harness
mbjorkqvist a07f68f
Merge the live-harness cleanup into the observability branch
mbjorkqvist 5e174c2
Merge the live-harness cleanup into the hardening branch
mbjorkqvist d12d891
Merge the live-harness cleanup into the hardening branch
mbjorkqvist 4555d09
docs(cketh): say what the balance guard actually catches
mbjorkqvist 8fecad2
test(cketh): read the minter's metrics instead of its dashboard
mbjorkqvist 057df0e
docs(cketh): the harness no longer reads the dashboard
mbjorkqvist f021ecc
Merge the doc fix into the observability branch
mbjorkqvist a9dffc2
Merge the doc fix into the hardening branch
mbjorkqvist 1890161
Merge the doc fix into the hardening branch
mbjorkqvist e373c7f
Empty commit to trigger removal of CI_ALL_BAZEL_TARGETS
mbjorkqvist 8147103
Merge master into the sweeper fee-funding task
mbjorkqvist 9549b9e
Merge master into the observability branch
mbjorkqvist 7f82c72
Merge master into the hardening branch
mbjorkqvist 06bc1e1
Merge master into the observability branch
mbjorkqvist 6e608d2
refactor(cketh): leave the prepaid-gas gate to the sweeping side
mbjorkqvist f9ffa30
refactor(cketh): address the observability review
mbjorkqvist 354b8c1
docs(cketh): name the failure case in the burn-ahead help text
mbjorkqvist b44fa36
Merge the observability branch into the hardening branch
mbjorkqvist c67bf9d
Merge the observability branch into the hardening branch
mbjorkqvist 70267aa
docs(cketh): drop the comments this PR added where its neighbours hav…
mbjorkqvist 665bb8d
Merge the comment cleanup into the hardening branch
mbjorkqvist b3e4b45
Merge master into the observability branch
mbjorkqvist 955344a
Merge the observability branch into the hardening branch
mbjorkqvist db5c877
Regenerate the minter's canbench baseline after the master merge
mbjorkqvist d2968f1
Merge the canbench baseline update into the hardening branch
mbjorkqvist 3f87e1b
Merge master into the hardening branch
mbjorkqvist e81343c
docs(cketh): say why the code at the sweeper makes the transfer fail
mbjorkqvist 334a51e
docs(cketh): say which code makes the transfer fail, not just any
mbjorkqvist 83a8dba
test(cketh): wait on the finalization event, not a change in the spen…
mbjorkqvist a1ff903
test(cketh): match the finalization to the funding's burn index
mbjorkqvist 9475afb
Merge master into the hardening branch
mbjorkqvist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.