Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update documentation for how to perform rollbacks (#3878)
Staci Mullins9460b14a0dc9
diff --git a/documentation/api/guides/deploy.md b/documentation/api/guides/deploy.mdindex 52a690bc4..2a9a711dc 100644--- a/documentation/api/guides/deploy.md+++ b/documentation/api/guides/deploy.md@@ -21,10 +21,11 @@ For more information on how deployments work, please see the [general deploymentand verify the SHA is the same as the value you deployed.1. Review and Approve the automatically-generated changelog pull request in therepository.-1. In the event of errors or problems, repeat the deployment process using the- latest stable version of the application. You can find the release version- number in the [changelogs](/changelogs/index), and then the tag to pass to- the action is the version number prefixed with "rel-", for example- "rel-2023.07.03.17.52.00".+1. In the event of errors or problems, rollback the application by running the+ appropriate deployment workflow from the WordPress/openverse-infrastructure+ repository using the tag of the latest stable version. You can find the+ release version number in the [changelogs](/changelogs/index), and then the+ tag to pass to the workflow is the version number prefixed with "rel-", for+ example "rel-2023.07.03.17.52.00".1. If anything else goes wrong or service is disrupted, consider this aProduction Incident and notify the team.diff --git a/documentation/catalog/guides/deploy.md b/documentation/catalog/guides/deploy.mdindex 57aeac56e..2971fce8c 100644--- a/documentation/catalog/guides/deploy.md+++ b/documentation/catalog/guides/deploy.md@@ -44,10 +44,11 @@ the app is built and tagged, deploy production:repository.1. Push up a PR to the infrastructure repository with the Terraform changes youpushed (the version bump for the relevant module).-1. In the event of errors or problems, repeat the deployment process using the- latest stable version of the application. You can find the release version- number in the [changelogs](/changelogs/index), and then the tag to pass to- the action is the version number prefixed with "rel-", for example- "rel-2023.07.03.17.52.00".+1. In the event of errors or problems, rollback the application by running the+ appropriate deployment workflow from the WordPress/openverse-infrastructure+ repository using the tag of the latest stable version. You can find the+ release version number in the [changelogs](/changelogs/index), and then the+ tag to pass to the action is the version number prefixed with "rel-", for+ example "rel-2023.07.03.17.52.00".1. If anything else goes wrong or service is disrupted, consider this aProduction Incident and notify the team.diff --git a/documentation/frontend/guides/deploy.md b/documentation/frontend/guides/deploy.mdindex 43e34fef0..2f6711544 100644--- a/documentation/frontend/guides/deploy.md+++ b/documentation/frontend/guides/deploy.md@@ -21,10 +21,11 @@ For more information on how deployments work, please see the [general deploymentverify the SHA is the same as the value you deployed.1. Review and Approve the automatically-generated changelog pull request in therepository.-1. In the event of errors or problems, repeat the deployment process using the- latest stable version of the application. You can find the release version- number in the [changelogs](/changelogs/index), and then the tag to pass to- the action is the version number prefixed with "rel-", for example+1. rollback the application by running the appropriate deployment workflow from+ the WordPress/openverse-infrastructure repository using the tag of the latest+ stable version. You can find the release version number in the+ [changelogs](/changelogs/index), and then the tag to pass to the action is+ the version number prefixed with "rel-", for example"rel-2023.07.03.17.52.00".1. Add any new analytics events to Plausible:diff --git a/documentation/general/deployment.md b/documentation/general/deployment.mdindex e781ba541..f9570dfc3 100644--- a/documentation/general/deployment.md+++ b/documentation/general/deployment.md@@ -148,11 +148,14 @@ release for an application. Publishing a release automatically tags the latestdocker image for the application and opens a PR to add the changelog to the[documentation site's changelog directory](https://docs.openverse.org/changelogs/index.html).This needs to be manually approved and merged by maintainers. The person who-triggers the release app workflow is pinged in the PR description to help with-the visibility of the PR.+publishes the release is pinged in the PR description to help with the+visibility of the PR.For the API and frontend, publishing the release also triggers an automated-production deployment. For the catalog and ingestion server, however,+production deployment using the+[release app workflow](https://github.com/WordPress/openverse/blob/main/.github/workflows/release-app.yml),+which itself triggers the appropriate _deploy_ app workflow in the+infrastructure repository. For the catalog and ingestion server, however,maintainers must manually deploy the changes to production using the Terraformdeployment process.@@ -163,8 +166,11 @@ realise that the deployed code is not behaving as we expected. In these cases itmay be necessary to force an environment to be deployed to a specific version,usually the previous version of the application.-The same staging and production deployment workflows are used directly to-rollback any environment for any service. Only members of the+The same staging and production deployment workflows in the+WordPress/openverse-infrastructure repository are used directly to rollback any+environment for any service. **Do not attempt to perform a rollback using the+release-app workflow in the monorepo, or by creating a new release; this will+result in the creation of duplicate tags.** Only members of the@WordPress/openverse-maintainers GitHub team are able to dispatch the workflowsto completion. Anyone else who tries to dispatch them will have the workflowautomatically fail.@@ -201,12 +207,12 @@ it. Please see thethis yourself (i.e., if you do not have the ability to make changes to ourTerraform configuration)-2. Deploy the code that depends on the new or updated variable by dispatching- the appropriate deployment workflow for the application and environment that- was updated.+2. Deploy the code that depends on the new or updated variable by publishing the+ release for the application and environment that was updated.- If the application only needs to be re-deployed to the already- running-version, dispatch the workflow with the version present at the- version endpoint for the application. See the "version endpoint" in the+ running-version, dispatch the appropriate deployment workflow in the+ WordPress/openverse-infrastructure repository with the application's+ current version. See the "version endpoint" in the[real-time deployment information](#real-time-deployment-information)tables above to determine the currently running version.diff --git a/documentation/ingestion_server/guides/deploy.md b/documentation/ingestion_server/guides/deploy.mdindex 86a30b361..6e7b69c9f 100644--- a/documentation/ingestion_server/guides/deploy.md+++ b/documentation/ingestion_server/guides/deploy.md@@ -33,10 +33,11 @@1. Push up a PR to the infrastructure repository with the Terraform changes youpushed (the version bump for the relevant module). Be sure to restore thevalue of `data_refresh_cleared` back to `false`.-1. In the event of errors or problems, repeat the deployment process using the- latest stable version of the application. You can find the release version- number in the [changelogs](/changelogs/index), and then the tag to pass to- the action is the version number prefixed with "rel-", for example- "rel-2023.07.03.17.52.00".+1. In the event of errors or problems, rollback the application by running the+ appropriate deployment workflow from the WordPress/openverse-infrastructure+ repository using the tag of the latest stable version. You can find the+ release version number in the [changelogs](/changelogs/index), and then the+ tag to pass to the action is the version number prefixed with "rel-", for+ example "rel-2023.07.03.17.52.00".1. If anything else goes wrong or service is disrupted, consider this aProduction Incident and notify the team.