Zebra/.github
teor be5cfad07f
change(state): Prepare for in-place database format upgrades, but don't make any format changes yet (#7031)
* Move format upgrades to their own module and enum

* Launch a format change thread if needed, and shut it down during shutdown

* Add some TODOs and remove a redundant timer

* Regularly check for panics in the state upgrade task

* Only run example upgrade once, change version field names

* Increment database format to 25.0.2: add format change task

* Log the running and initial disk database format versions on startup

* Add initial disk and running state versions to cached state images in CI

* Fix missing imports

* Fix typo in logs workflow command

* Add a force_save_to_disk argument to the CI workflow

* Move use_internet_connection into zebrad_config()

* fastmod can_spawn_zebrad_for_rpc can_spawn_zebrad_for_test_type zebra*

* Add a spawn_zebrad_without_rpc() function

* Remove unused copy_state() test code

* Assert that upgrades and downgrades happen with the correct versions

* Add a kill_and_return_output() method for tests

* Add a test for new_state_format() versions (no upgrades or downgrades)

* Add use_internet_connection to can_spawn_zebrad_for_test_type()

* Fix workflow parameter passing

* Check that reopening a new database doesn't upgrade (or downgrade) the format

* Allow ephemeral to be set to false even if we don't have a cached state

* Add a test type that will accept any kind of state

* When re-using a directory, configure the state test config with that path

* Actually mark newly created databases with their format versions

* Wait for the state to be opened before testing the format

* Run state format tests on mainnet and testnet configs (no network access)

* run multiple reopens in tests

* Test upgrades run correctly

* Test that version downgrades work as expected (best effort)

* Add a TODO for testing partial updates

* Fix missing test arguments

* clippy if chain

* Fix typo

* another typo

* Pass a database instance to the format upgrade task

* Fix a timing issue in the tests

* Fix version matching in CI

* Use correct env var reference

* Use correct github env file

* Wait for the database to be written before killing Zebra

* Use correct workflow syntax

* Version changes aren't always upgrades

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-07-13 21:36:15 +00:00
..
ISSUE_TEMPLATE change(release): Split release checklist into a ticket and PR template (#7088) 2023-06-28 09:46:59 +00:00
PULL_REQUEST_TEMPLATE change(release): Document the release level for RPC and command-line changes (#7196) 2023-07-11 21:04:53 +00:00
workflows change(state): Prepare for in-place database format upgrades, but don't make any format changes yet (#7031) 2023-07-13 21:36:15 +00:00
CODEOWNERS change(rename): Update missed tower-batch-control renames (#7011) 2023-06-20 22:36:00 +00:00
dependabot.yml change(devops): Reduce number of dependabot PRs (#7156) 2023-07-10 01:27:14 +00:00
mergify.yml change(merge): Require 2 reviews for PRs with an extra-reviews label (#7158) 2023-07-11 09:34:15 +10:00
pull_request_template.md updates pull request template (#5988) 2023-01-18 02:23:19 +00:00
release-drafter.yml change(merge): Require 2 reviews for PRs with an extra-reviews label (#7158) 2023-07-11 09:34:15 +10:00
zbot.yml Create zbot.yml 2020-06-13 06:15:20 -04:00