Skip to content
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

ci: automate chain upgrades on k8s deployments #4477

Merged
merged 1 commit into from
May 30, 2024

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented May 24, 2024

Describe your changes

These changes record the scripted migration approach that was used for releasing Testnet 76 (#4402). These scripts aren't yet tied into CI workflows, but that's fine: I've been using this scripted flow to deploy chain upgrades, and I want to do that several more times before enshrined it as final in CI. Also includes some foundation for E2E testing of migration flows targeting the cluster.

Issue ticket number and link

Related to testing ask in #4323, although there's more work in progress leveraging these scripts, and thus I want these to land in main.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    Testing-only, no application logic changes.

@conorsch conorsch force-pushed the upgrade-testing-deployment branch from 76f7175 to 318b577 Compare May 24, 2024 23:45
@conorsch conorsch changed the title Upgrade testing deployment WIP: migration automation scripts May 24, 2024
@conorsch conorsch changed the title WIP: migration automation scripts ci: migration automation scripts May 24, 2024
@cratelyn cratelyn added A-CI/CD Relates to continuous integration & deployment of Penumbra C-enhancement Category: an enhancement to the codebase A-upgrades Area: Relates to chain upgrades labels May 28, 2024
@cratelyn cratelyn added this to the Sprint 7 milestone May 28, 2024
Here's long-needed automation for deploying chain upgrades on Penumbra
testnets deployed to k8s. Ideally we'd use an operator pattern to manage
the lifecycle, but we're trying to move quickly, so bash it'll be for
now.

Also included are some lower thresholds for the devnet environment,
since it's frequently used for this kind of testing. Might make more
sense to create a dedicated "upgrade-testing" environment, but again,
prioritizing speed and reliability, so we can circle back on fleshing
things out once we hit our deadlines.

Tacked on some help scripts, such as "enable-maintenance-mode"
and "perform-point-release", which are helpful for managing devnets.
debugging devnets.
@conorsch conorsch force-pushed the upgrade-testing-deployment branch from 318b577 to 3c71548 Compare May 29, 2024 20:23
@conorsch conorsch changed the title ci: migration automation scripts ci: automate chain upgrades on k8s deployments May 29, 2024
@conorsch conorsch requested a review from cratelyn May 29, 2024 20:29
@conorsch conorsch marked this pull request as ready for review May 29, 2024 20:29
@conorsch conorsch merged commit 6dc03da into main May 30, 2024
13 checks passed
@conorsch conorsch deleted the upgrade-testing-deployment branch May 30, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI/CD Relates to continuous integration & deployment of Penumbra A-upgrades Area: Relates to chain upgrades C-enhancement Category: an enhancement to the codebase
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants