Migration plan: Firebase Functions v2

 

Step

Details

Status

Time

Rollback steps

 

Step

Details

Status

Time

Rollback steps

1

Install production version on test instance

  1. Install production version on some test instance so it can be verified later.

  2. Create a test event

done

Mar 24, 2023

-

2

Deploy new function

  1. Run npm run deploy-firebase

    1. Firebase CLI will ask if you accept costs of min 1 instance running, reply “Yes” (the default)

    2. Firebase CLI will ask if you want to delete the old function, reply “No” (the default)

DONE

Mar 26, 2023

  1. Revert the last commit on master

  2. Run npm run deploy-firebase

3

Verify if everything works

  1. Check if app is working correctly on the production version installed in step #1.Done

  2. Try installing app on some fresh instance. Done

Done

Mar 26, 2023

-

4

Adjust Execution with Error Alert

Execution with error alert threshold changed to 0 (Any error on backend should trigger alert now)

Done

Mar 26, 2023

 

5

Remove the old function

  1. Remove the old function (app) manually through Firebase Console UI

done

Mar 31, 2023

-

 

Migration done: 15:05 Sunday, March 26, 2023, Coordinated Universal Time (UTC)

Downtime: Approx - 1min

Post-migration note:

I had one small issue on the way - I have to add Secret Manager Secret Accessor Role to 206074477623-compute@developer.gserviceaccount.com