Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(migrations): Added migration tests basic frame & PoC (#418)
* Debugging proposal versioning * Fixed to legacy types * Fixed query return type * Added impl check * Added extended registry * `gofumpt -ed` * Added current def * Added shorter voting period by default * Fixed to a tad shorter voting period * Added clean env image load * Fixed paths & permissions * `gofumpt -ed` * Bump `ginkgo@latest` & improvements * unstash changes * Merge with protobuf changes * Cleaning up * Debugging reboot with new image * Debugging * Debugging * Added baseapp module migration order * Removed buf breaking wf temporarily * Skipped capability from version map * Skipped distribution module directly to v2 * Skipped staking module directly to v3 * Added `min_commission_rates` to genesis & improvements * Fixed traverse * Added switch to fresh genesis * Switched to pre-halt * Added subspace persist * Removed interactive * Upgrade works, debugging status ping * Added larger time window for catching up after upgrade * Fixed time window * Added much larger time window * Some changes for syncing * Fixed multiline prepended cli output * Fixed declaration * Add protobuf migration * Backwards compatibility for gas estimate print * Bump digits EOF inclusive * Switched to caught up validator * Added deep equality extra cases * Fixed key mismatch * Fixed assertion * Add some changes for resource migrations * Added distinct steps prints * Cleanup * Update build.yml * Create mainnet-latest.env * Rename build file * Update docker-compose.yml * small renamings * Additional broken changes to workflow * Checkpoint * Refactor for Proto v2 * Removed unused definition * Removed extra * Added pre upgrade step & compose improvements * Fixed carry * Removed bloat * Removed bloat * Added external pull * Debugging on latest * Debugging * Added latest binary for config generation * Fixed dir * Debugging * Removed operator key defs * Removed trips * Added update, deactivate , resource cases & improvements * Added temporary key copies * Restructured with temporary steps * Added image load * Fixed step * Fixed cwd * Fixed cwd * Added env * Restored permissions * Switched to full dir * Switched to multibase char rather than bytes & improvements * Fixed resource file mismatch * Fixed carry * Added alternate base58 payload * Added assertion method * Added post & improvements on pre * Triggering fresh run * Debugging * Added temp wait * Fixed versioning * Added status ping on catching up & improvements * Fixed versioning * Fixed literals & improvements on versioning * Fixed literals * Fixed versioning * Switched to legacy query * Added module version map match & v1 proto keeper, msg server * Added distinction * Fixed deps * Synced across migration handlers & improvements on scenario handling * Added nolint rules to scaffolds * Removed extra genesis record, will be needed to start afresh * Removed deprecated part * Switched to login * Trying out bind volumes as operator keys * Debugging * Removed bound volumes, since nodes are not syncing * Finish Indy-style migration * Make it buildable after merging with develop * Added unified payload - sign input logic * Temp takedown of buf breaking changes linter * Fixed error handling & improvements * Temporarily disable unit upgrade tests * Debugging * Added new temporary test setup * Run the first scenario * Move upgrade unit tests into a separate stage * Fix linter issues * Add setup and cleanup scripts * Exptract steps into bash scripts * Fix permissions * Premissions fix * refactor test migrator and add tests for checksum and protobuf * Makes linter happy * Cleanup * Fix build * Debugging * Add JUnit report for Upgrade step * Make protobuf and checksum tests work * Separate unit and integration upgrade test * Upgrade test suits * Fix namespaces * Minor fixes * Extract proto related migrations into it's own files * Commit for sync * Fix merge issues * Fixes * Commit for sync * Sync * Misc * Make IndyStyle migration works * Merge with latest changes * Makes linter happy * Reviewing migrations * Fix bug * Fix merge conflicts * Fix iterator issue * Run test pipelines * Clean up * Review checksumm migration * Restore build tags * Extract simple migration helpers * Implement version id migration * Unstash * Run it on pipelines * Fix tests running on pipelines * Fix cleanup * Fix test reporting * Remove redundant files * Add generic dataset implementation * Cleanup * Cleanup * Add uuid migration * Add resource version links migration * Fix build * Add unit tests for UUID (#456) * Move version setting to SetResource method * Make UUID tests for migration * Add tests for VersionId and create AddNewVersionMethod * Clenup Co-authored-by: Alexandr Kolesov <kolesov.alex.s@gmail.com> * Fix version links migration * Restore version links migration * Cleanup * Vresion map fix attempt * Cleanup * Simplify unit test workflow * Add more migration handlers * Update test.yml * Try disabling version map fix * Uncomment integration tests * Reorganize file structure * Restore vm fix, fix linter * Add resource links test (#457) Add tests for resource links * Add uuid migration for resource id * Commit for sync * add checksum to datasets * Add diddoc pre update * Fix migration unit tests * Merge with latest version * Fix tests for post checks * Makes linter happy * Fix pipelines * Fix resource unit tests * Better test structure * Fix loader * Debugging post did update * For the previous commit * Fix signature verification bug * Add did deactionvation * Fix update and deactivate cases * DIDDoc queries update * Update tx_create_diddoc.go * Update tx_deactivate_diddoc.go * Update tx_update_diddoc.go * Update query_diddoc.go * Rename create-resource * Update go.mod * Update migration_did_protobuf.go * Add resource default alternative url migration * Enable default alternative url migration + add test for it, fix build * Added resource creation after upgrade * Fix tests * Rename create-resource to create for tests * Move resource creation before queries * Fix resource tests * Move directory structure * Fix tests after directory migration * Temporary disable markdown linting * Remove unused constants * Implement all versions deactivation * Fix linter issues * Fix broken link Co-authored-by: Andrew Nikitin <andrew.nikitin@cheqd.io> Co-authored-by: Alexandr Kolesov <kolesov.alex.s@gmail.com> Co-authored-by: Ankur Banerjee <ankurdotb@users.noreply.github.com>
- Loading branch information