microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.6k stars 1.55k forks source link

4.15.7 Release checklist #4640

Closed compulim closed 1 year ago

compulim commented 1 year ago

Checklist

Build

  1. [x] ~Bump MockBot to latest Bot Framework SDK release~ (not needed for patch release)
  2. [x] ~Bump botframework-directlinejs to x.y.z~ (no newer version)
  3. [x] Bump to 4.15.7
    • [x] Update CHANGELOG.md to mark specific changes in 4.15.7
    • [x] Run npm version --no-git-tag-version 4.15.7
    • [x] Merged into main, the PR number is #4641
    • Commit is 5b1b942
    • Do not merge any other unrelated changes after this PR. Any other PR merged, will need to be re-tested
  4. [x] 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 340732 and commit is 5b1b942
  5. [x] Wait for WebChat-release-testing pipeline to complete
    • Pipeline name is Push-Release-Testing-to-GitHub-Pages
    • The release ID is 465
  6. [x] Check component governance and make sure there are no high/critical related to code under /packages/ folder
    • There could be some for projects under /samples/ folder, as they are pointing to previous version of Web Chat
  7. [x] Add manual tests to WebChat-release-testing as needed

Test

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

  1. [x] Manual testing on major browsers using webchat-release-testing
    • [x] Before starting testing, update all the browser version to latest
    • [x] Chrome 110.0.5481.100
    • [x] Edge 112.0.1683.0
    • [x] Firefox 109.0.1
    • [x] IE11 (Windows 11 22H2 22623.1245)
    • [x] macOS Safari 16.3 (18614.4.6.1.6)
    • [x] iOS Safari 16.3.1
    • [x] iPadOS Safari 16.3.1 (20D67)
    • [x] Android Chrome 109.0.5414.118
  2. [x] Test specific fixes related to 4.15.7 and previous releases
    • [x] Press ENTER with empty send box should read alert "Cannot send empty message"
    • [x] Click "Send" button with empty send box should read alert "Cannot send empty message"

Release

  1. [x] Make sure you are on main ~or qfe~ branch, run git status to check
  2. [x] git pull
  3. [x] Verify /package.json, /package-lock.json, and CHANGELOG.md has a version of 4.15.7
  4. [x] git log
    • Verify the latest commit is 5b1b942
  5. [x] git tag v4.15.7
  6. [x] git push -u upstream v4.15.7
    • You do not need to kick off a build again, use the previous build
  7. [x] Create a new GitHub release, copy entries from CHANGELOG.md
    • [x] Subresource Integrity can be generated by
      • From local: for file in $(ls *.js); do echo $file $(cat $file | openssl dgst -sha384 -binary | openssl base64 -A); done
      • From CDN: curl -H 'Accept-Encoding: gzip' https://cdn.botframework.com/botframework-webchat/4.15.7/webchat.js | gunzip - | openssl dgst -sha384 -binary | openssl base64 -A
    • [x] 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.15.7.tgz
        curl -LO https://registry.npmjs.org/botframework-webchat/-/botframework-webchat-4.15.7.tgz
        curl -LO https://registry.npmjs.org/botframework-webchat-core/-/botframework-webchat-core-4.15.7.tgz
        curl -LO https://registry.npmjs.org/botframework-webchat-api/-/botframework-webchat-api-4.15.7.tgz
        curl -LO https://registry.npmjs.org/botframework-webchat-component/-/botframework-webchat-component-4.15.7.tgz
  8. [x] Kick off release to NPM
    • Release name is [[PROD]]Push-WebChat-to-npmjs
    • The build number is 340732 release number is 45 and commit is 5b1b942
    • [x] Verify package content then click Resume
    • [x] Retain the release indefinitely
  9. [x] Kick off release to CDN (cutoff at 2PM PST, Mon-Thu only)
    1. [x] Prepare the message for approval
      • [x] ~If there are any breaking changes, explain in the email if it will affect any customers~
      • Release name is [[PROD]]Push-WebChat-to-Prod-CDN-with-approval
      • The build number is 340732, release number is 49 and commit is 5b1b942
      • Script build number is 320590 (this is fixed)
    2. [x] Send message to approvers
    3. [x] Retain the build indefinitely

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

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:

Applies to all releases

This list should be copied to versions in the future.

Applies to major/minor releases

Bump all dependencies to latest version

In PR #4647, we are bumping most dependencies to latest version.

After bumping, if a package broke compatibility, we should investigate:

  • Upgrade our code to use the latest package if possible, otherwise;
  • Add it to package.json/skipBump to prevent bumping deliberately:
    • Skipping bump incur unpredictable technical debts, say, security issue found in the unsupported version, causing us slow to react
    • Plausible reasons (non-exhaustive):
      • Package is not ES5;
      • Package is ESM and requires the whole dependency chain to be upgraded, however, it is technically impossible (unrelated to cost).

Bump Docker image

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

compulim commented 1 year ago

Completed. Release of 4.15.8 is #4738.