mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7.7 KiB
7.7 KiB
Checklist for making a release:
Requirements
- GitHub account with access to solidity, solc-js, solc-bin, homebrew-ethereum, solidity-blog and solidity-portal repositories.
- DockerHub account with push rights to the
solcimage. - Lauchpad (Ubuntu One) account with a membership in the "Ethereum" team and
a gnupg key for your email in the
ethereum.orgdomain (has to be version 1, gpg2 won't work). - npm Registry account added as a collaborator for the
solcpackage. - Access to the solidity_lang Twitter account.
- Reddit account that is at least 10 days old with a minimum of 20 comment karma (
/r/ethereumrequirements).
Blog Post
- Create a post on solidity-blog in the
Releasescategory and explain some of the new features or concepts. - Create a post on solidity-blog in the
Security Alertscategory in case of important bug(s).
Documentation check
- Run
make linkcheckfrom withindocs/and fix any broken links it finds. Ignore false positives caused byhrefanchors and dummy links not meant to work.
Changelog
- Make sure that all merged PRs that should have changelog entries do have them.
- Sort the changelog entries alphabetically and correct any errors you notice. Commit it.
- Update the changelog to include a release date.
- Run
scripts/update_bugs_by_version.pyto regeneratebugs_by_version.jsonfrom the changelog andbugs.json. Make sure that the resultingbugs_by_version.jsonhas a new, empty entry for the new version. - Commit changes, create a pull request and wait for the tests. Then merge it.
- Copy the changelog into the release blog post.
Create the Release
- Create a release on GitHub.
Set the target to the
developbranch and the tag to the new version, e.g.v0.8.5. Include the following warning:**The release is still in progress and the binaries may not yet be available from all sources.**. Don't publish it yet - click theSave draftbutton instead. - Thank voluntary contributors in the GitHub release notes (use
git shortlog --summary --email v0.5.3..origin/develop). - Check that all tests on the latest commit in
developare green. - Click the
Publish releasebutton on the release page, creating the tag. - Wait for the CI runs on the tag itself.
Upload Release Artifacts and Publish Binaries
- Switch to the tag that archives have to be created for.
- Create the
prerelease.txtfile: (echo -n > prerelease.txt). - Run
scripts/create_source_tarball.shwhile being on the tag to create the source tarball. This will create the tarball in a directory calledupload. - Take the tarball from the upload directory (its name should be
solidity_x.x.x.tar.gz, otherwiseprerelease.txtwas missing in the step before) and upload the source tarball to the release page. - Take the
github-binaries.tartarball fromc_release_binariesrun of the tagged commit in circle-ci and add all binaries from it to the release page. Make sure it contains four binaries:solc-windows.exe,solc-macos,solc-static-linuxandsoljson.js. - Take the
solc-bin-binaries.tartarball fromc_release_binariesrun of the tagged commit in circle-ci and add all binaries from it to solc-bin. - Run
./update --reuse-hashesinsolc-binand verify that the script has updatedlist.js,list.txtandlist.jsonfiles correctly and that symlinks to the new release have been added insolc-bin/wasm/andsolc-bin/emscripten-wasm32/. - Create a pull request in solc-bin and merge.
Homebrew and MacOS
- Update the version and the hash (
sha256sum solidity_$VERSION.tar.gz) in thesolidityformula in Homebrew core repository. - Update the version and the hash (
sha256sum solidity_$VERSION.tar.gz) in our customsolidityHomebrew formula.
Docker
- Run
./scripts/docker_deploy_manual.sh v$VERSION.
PPA
- Create
.release_ppa_authat the root of your local Solidity checkout and setLAUNCHPAD_EMAILandLAUNCHPAD_KEYIDto your key's email and key id. - Double-check that the
DISTRIBUTIONSlist inscripts/release_ppa.shandscripts/deps-ppa/static-z3.shcontains the most recent versions of Ubuntu. - Make sure the
~ethereum/cpp-build-depsPPA repository containslibz3-static-dev buildsfor all current versions of Ubuntu. If not, runscripts/deps-ppa/static-z3.shand wait for the builds to succeed before continuing. - Run
scripts/release_ppa.sh v$VERSIONto create the PPA release. - Wait for the
~ethereum/ethereum-staticPPA build to be finished and published for all platforms. SERIOUSLY: DO NOT PROCEED EARLIER!!! After the static builds are published, copy the static package to the~ethereum/ethereumPPA for the destination seriesTrusty,XenialandBionicwhile selectingCopy existing binaries.
Release solc-js
- Wait until solc-bin was properly deployed. You can test this via remix - a test run through remix is advisable anyway.
- Increment the version number, create a pull request for that, merge it after tests succeeded.
- Run
npm run build:tarballin the updatedsolc-jsrepository to createsolc-<version>.tgz. Inspect the tarball to ensure that it contains an up to date compiler binary. - Run
npm run publish:tarballto publish the newly created tarball. - Create a tag using
git tag --annotate v$VERSIONand push it withgit push --tags.
Post-release
- Make sure the documentation for the new release has been published successfully. Go to the documentation status page at ReadTheDocs and verify that the new version is listed, works and is marked as default.
- Remove "still in progress" warning from the release notes.
- Publish the blog posts.
- Create a commit to increase the version number on
developinCMakeLists.txtand add a new skeleton changelog entry. - Announce on Twitter, including links to the release and the blog post.
Use
#xpat the end of the tweet to automatically cross post the announcement to Fosstodon. - Share the announcement on Reddit in
/r/ethdev, cross-posted to/r/ethereum. - Share the announcement the Solidity forum in the
Announcementscategory. - Update the release information section on soliditylang.org.
- Lean back, wait for bug reports and repeat from step 1 :)