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

[Epic] Automatic schema updates in a deployment #2145

Open
1 of 4 tasks
fridex opened this issue Nov 11, 2021 · 8 comments
Open
1 of 4 tasks

[Epic] Automatic schema updates in a deployment #2145

fridex opened this issue Nov 11, 2021 · 8 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence. sig/devsecops Categorizes an issue or PR as relevant to SIG DevSecOps. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@fridex
Copy link
Contributor

fridex commented Nov 11, 2021

Is your feature request related to a problem? Please describe.

If there are schema changes, new components are updated and they all run code that expects new schema. Once the release is done, one needs to manually trigger the schema update procedure in the deployment so that the database schema matches code run in components.

The manual schema update is prone to errors and we can easily forgot to run the update.

Describe the solution you'd like

Create a mechanism that runs schema update on each release, as necessary. This can be a simple job that is run on each new release and makes sure the database schema is updated.

Describe alternatives you've considered

Keep this as a manual procedure, but that is prone to errors.

Additional context

As of now, we have schema updates in workflow-helpers.

It would be great if the update procedure would report any issues so a rollback can be done (also on components level so the system keeps operational).

Acceptance criteria

Goal

  • Automate the schema update flow.
@fridex fridex added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 11, 2021
@sesheta sesheta added the needs-triage Indicates an issue or PR lacks a `triage/...` label and requires one. label Nov 11, 2021
@fridex
Copy link
Contributor Author

fridex commented Nov 11, 2021

/triage accepted
/priority backlog

CC @codificat if this needs better labeling.

@sesheta sesheta added triage/accepted Indicates an issue or PR is ready to be actively worked on. priority/backlog Higher priority than priority/awaiting-more-evidence. and removed needs-triage Indicates an issue or PR lacks a `triage/...` label and requires one. labels Nov 11, 2021
@codificat
Copy link
Member

if this needs better labeling

it is perfect, thanks!

Having said that, let me add:
/sig devops
while I review some updates to the SIGs...

@sesheta sesheta added sig/devsecops Categorizes an issue or PR as relevant to SIG DevSecOps. and removed sig/devops labels Jan 19, 2022
@sesheta
Copy link
Member

sesheta commented Apr 19, 2022

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@sesheta sesheta added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 19, 2022
@sesheta
Copy link
Member

sesheta commented May 19, 2022

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

@sesheta sesheta added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 19, 2022
@codificat
Copy link
Member

/remove-lifecycle rotten

@sesheta sesheta removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label May 20, 2022
@harshad16 harshad16 changed the title Automatic schema updates in a deployment [Epic] Automatic schema updates in a deployment Jun 2, 2022
@sesheta
Copy link
Member

sesheta commented Sep 1, 2022

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@sesheta sesheta added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 1, 2022
@harshad16 harshad16 moved this to Epics in SIG-DevSecOps Sep 22, 2022
@codificat codificat moved this to 🆕 New in Planning Board Sep 24, 2022
@codificat codificat moved this from 🆕 New to 🔖 Next in Planning Board Sep 26, 2022
@sesheta
Copy link
Member

sesheta commented Oct 1, 2022

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

@sesheta sesheta added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 1, 2022
@harshad16
Copy link
Member

/remove-lifecycle rotten
/lifecycle frozen

@sesheta sesheta added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Oct 4, 2022
@harshad16 harshad16 moved this from 🔖 Next to 📋 Backlog in Planning Board Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence. sig/devsecops Categorizes an issue or PR as relevant to SIG DevSecOps. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Status: 📋 Backlog
Status: 🗺 Epics
Development

No branches or pull requests

4 participants