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

4.14.1 Release checklist #4044

Closed
70 tasks done
compulim opened this issue Sep 2, 2021 · 0 comments
Closed
70 tasks done

4.14.1 Release checklist #4044

compulim opened this issue Sep 2, 2021 · 0 comments
Assignees
Labels
release Release checklist

Comments

@compulim
Copy link
Contributor

compulim commented Sep 2, 2021

Checklist

Build

  1. Bump MockBot to Bot Framework SDK release 4.14.1
  2. Bump botframework-directlinejs to 0.14.1
    • No newer version
  3. Bump to 4.14.1
    • Update CHANGELOG.md to mark specific changes in 4.14.1
    • Run npm version --no-git-tag-version 4.14.1
    • Merged into master, the PR number is Bump to 4.14.1 for release #4045
    • Commit is 1b842df
    • Do not merge any other unrelated changes after this PR. Any other PR merged, will need to be re-tested
  4. Run daily pipeline manually, set "generate release version number" to true
    • (This will not push to NPM or CDN)
    • Pipeline name is BotFramework-WebChat-daily
    • The build number is 267509 and commit is 1b842df
  5. Wait for WebChat-release-testing pipeline to complete
    • Pipeline name is Push-Release-Testing-to-GitHub-Pages
    • The release ID is 2777
  6. Add manual tests to WebChat-release-testing as needed

Test

The test should run against the build artifacts from Azure Pipelines.

  1. Manual testing on major browsers using webchat-release-testing
    • Before starting testing, update all the browser version to latest
    • Chrome 93.0.4577.63
    • Edge 92.0.902.84
    • Firefox 91.0.2
    • IE11 (IE Mode under Windows 11 22000.168)
    • macOS Safari 14.1.1 (16611.2.7.1.4)
    • iOS Safari 14.7.1
    • Android Chrome 92.0.4515.159
  2. Test specific fixes related to 4.14.1 and previous releases
    • Test Markdown on IE11

Release

  1. Verify on WebChat-release-testing
  2. Make sure you are on main or qfe branch, run git status to check
  3. git pull
  4. Verify /package.json, /package-lock.json, and CHANGELOG.md has a version of 4.14.1
  5. git log
    • Verify the latest commit is 1b842df
  6. git tag v4.14.1
  7. git push -u upstream v4.14.1
    • You do not need to kick off a build again, use the previous build
  8. Create a new GitHub release, copy entries from CHANGELOG.md
    • Subresource Integrity can be generated by
      • From local: cat webchat.js | openssl dgst -sha384 -binary | openssl base64 -A
      • From CDN: curl -H 'Accept-Encoding: gzip' https://cdn.botframework.com/botframework-webchat/4.14.1/webchat.js | gunzip - | openssl dgst -sha384 -binary | openssl base64 -A
    • Attach assets including 3 JS files, stats.json and 5 tarballs
      • You can copy the artifacts from webchat-release-testing/drops
      • Tarballs download from npmjs
        curl -LO https://registry.npmjs.org/botframework-directlinespeech-sdk/-/botframework-directlinespeech-sdk-4.14.1.tgz
        curl -LO https://registry.npmjs.org/botframework-webchat/-/botframework-webchat-4.14.1.tgz
        curl -LO https://registry.npmjs.org/botframework-webchat-core/-/botframework-webchat-core-4.14.1.tgz
        curl -LO https://registry.npmjs.org/botframework-webchat-api/-/botframework-webchat-api-4.14.1.tgz
        curl -LO https://registry.npmjs.org/botframework-webchat-component/-/botframework-webchat-component-4.14.1.tgz
        
  9. Kick off release to NPM
    • Release name is [[PROD]]Push-WebChat-to-npmjs
    • The build number is 267509 release number is 35 and commit is 1b842df
    • Verify package content then click Resume
    • Retain the release indefinitely
  10. Kick off release to CDN (cutoff at 2PM PST, Mon-Thu only)
    1. Prepare the email for approval
    • Release name is [[PROD]]Push-WebChat-to-Prod-CDN-with-approval
    • The build number is 267509, release number is 40 and commit is 1b842df
    • Script build number is 131156 (this is fixed)
    1. Send reminder email to approvers
    • Retain the build indefinitely

Post-release verification - complete within 30 minutes after release to NPM

  • Test using webchat-release-testing
    1. Clone https://github.com/corinagum/WebChat-release-testing/
    2. 01.create-react-app
      1. Nuke 01.create-react-app/node_modules
      2. npm install
      3. npm install [email protected] (just install the bundle package)
      4. npm run build
    3. Others
      • Using script tags from https://github.com/microsoft/BotFramework-WebChat/releases/tag/v4.14.1, with subresource integrity
        <script
          crossorigin="anonymous"
          integrity_no="sha384-uJWBe8iPb6wN8/AaLQ0UKjgYEtWY9uIVgpkAID5kUNo2sV9hYmFbTDQXeRXyq7bl"
          src="../drops/webchat.js"
        ></script>
        
        <script
          crossorigin="anonymous"
          integrity_no="sha384-R4Eevwf75H8RQkTqCaFNpvO0V9nq+heLX30jLGKNrAICynjuHUbMo7D2usohGsRu"
          src="../drops/webchat-es5.js"
        ></script>
        
        <script
          crossorigin="anonymous"
          integrity_no="sha384-Xyp6O3TOCrP+PVhd15I1Ehs8QTga7zqc/KYj6Idr9MbR10/SX5p6pSBhTAvAT/Sd"
          src="../drops/webchat-minimal.js"
        ></script>
        
    4. npx serve (at repo root)
    5. Go to http://localhost:5000/ to test, including IE11

Notification to interested parties


Post-release checklist

These are chores that we should do before starting the cycle to reduce ripple effects if we do it in mid-cycle.

Tips:

  • Clean your repo before start
  • Remove node_modules from all folder
    • git clean -fdx
  • Never delete package-lock.json
  • If you mess it up, tableflip and redo
  • In component/package.json
    • Remove reference to botframework-webchat-core by hand-modifying package.json
    • Then, npm install (symlinks will be broken afterward)
    • Then, add those references back by hand-modifying package.json
    • This also applies for other packages with similar dependencies/symlinks
    • To build afterward, do tableflip to rebuild those symlinks

Applies to all releases

This list should be copied to versions in the future.

The PR is https://github.com/microsoft/BotFramework-WebChat/pull/XXX

Applies to major/minor releases

Bump all dependencies to latest version

On each package.json under root and /packages/:

  • All NPM packages (@babel/*, jest, lerna, typescript, webpack, etc) in PR #XXX
    • Don't bump the following packages
      • react, react-dom, redux, redux-saga, @types/react
      • rxjs@5 on playground
      • microsoft-cognitiveservices-speech-sdk
        • We will bump it in a separate PR
      • adaptivecards
        • We will bump it in a separate PR
      • expect@25 under test/harness
        • The newer version requires Node.js (graceful-fs)
  • Run npm audit fix to make sure everything is fixed
  • Test under IE11 to make sure all dependencies are working
  • List steps to verify bumping microsoft-cognitiveservices-speech-sdk

Obstacles to bump npm

As of writing, [email protected] (bundled by node@16) has issue on running postinstall script.

Also, [email protected] is peer-depends on @angular/common, which npm@7 will automatically install missing peer dependencies. Track the issue here.

We need at least both issues to be fixed before we can jump to npm@7.

Bump Docker image

The Docker image can be found at root docker-compose.yml and Dockerfile*.

  • Docker container for headless Chrome (#XXX)
    • They recently moved from 3.14.159-xxx tag scheme to a more sensible 87.0 tag scheme
    • Tags can be found at https://hub.docker.com/r/selenium/node-chrome/tags
    • Preferably in separate PR because screenshots change can be large occasionally
    • Run tests locally, as the screenshots can be slightly different
@compulim compulim added the release Release checklist label Sep 2, 2021
@compulim compulim self-assigned this Sep 2, 2021
@compulim compulim mentioned this issue Sep 2, 2021
11 tasks
@compulim compulim closed this as completed Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Release checklist
Projects
None yet
Development

No branches or pull requests

1 participant