Skip to content

Commit 1091e3d

Browse files
authored
cleanup (#863)
1 parent dabeb8f commit 1091e3d

File tree

3 files changed

+46
-70
lines changed

3 files changed

+46
-70
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
labels: ${{ steps.meta.outputs.labels }}
6161

6262
build-all:
63+
name: Build Binaries
6364
runs-on: warp-ubuntu-latest-x64-16x
6465
steps:
6566
- name: Checkout
@@ -89,6 +90,7 @@ jobs:
8990
dist/mev-boost*.txt
9091
9192
release:
93+
name: Prepare Github Release
9294
needs: build-all
9395
runs-on: warp-ubuntu-latest-x64-16x
9496
steps:
@@ -120,4 +122,4 @@ jobs:
120122
with:
121123
args: release --config .goreleaser-release.yaml
122124
env:
123-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
125+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
![mev-boost](https://user-images.githubusercontent.com/116939/224986867-3d1916c6-3219-4d61-b1ce-213fc663070c.png)
22

3-
#
3+
---
44

55
[![Goreport status](https://goreportcard.com/badge/github.com/flashbots/mev-boost)](https://goreportcard.com/report/github.com/flashbots/mev-boost)
6-
[![Test status](https://github.com/flashbots/mev-boost/workflows/Tests/badge.svg?branch=develop)](https://github.com/flashbots/mev-boost/actions?query=workflow%3A%22Tests%22)
7-
[![Docker hub](https://badgen.net/docker/size/flashbots/mev-boost?icon=docker&label=image)](https://hub.docker.com/r/flashbots/mev-boost/tags)
6+
[![Test status](https://github.com/flashbots/mev-boost/actions/workflows/tests.yml/badge.svg?branch=develop)](https://github.com/flashbots/mev-boost/actions?query=workflow%3A%22Tests%22)
7+
[![Docker hub](https://img.shields.io/docker/image-size/flashbots/mev-boost
8+
)](https://hub.docker.com/r/flashbots/mev-boost/tags)
89

910
## What is MEV-Boost?
1011

@@ -40,19 +41,26 @@ See also:
4041

4142
# Table of Contents
4243

44+
- [Table of Contents](#table-of-contents)
4345
- [Background](#background)
4446
- [Installing](#installing)
4547
- [Binaries](#binaries)
4648
- [From source](#from-source)
49+
- [`go install`](#go-install)
50+
- [Clone and Build](#clone-and-build)
4751
- [From Docker image](#from-docker-image)
4852
- [Systemd configuration](#systemd-configuration)
4953
- [Usage](#usage)
54+
- [Note on usage documentation](#note-on-usage-documentation)
5055
- [Mainnet](#mainnet)
5156
- [Sepolia testnet](#sepolia-testnet)
5257
- [Holesky testnet](#holesky-testnet)
5358
- [Hoodi testnet](#hoodi-testnet)
5459
- [`test-cli`](#test-cli)
5560
- [mev-boost cli arguments](#mev-boost-cli-arguments)
61+
- [`-relays` vs `-relay`](#-relays-vs--relay)
62+
- [Setting a minimum bid value with `-min-bid`](#setting-a-minimum-bid-value-with--min-bid)
63+
- [Enabling metrics](#enabling-metrics)
5664
- [API](#api)
5765
- [Maintainers](#maintainers)
5866
- [Contributing](#contributing)

RELEASE.md

Lines changed: 32 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# Releasing a new version of mev-boost
22

3-
This is a guide on how to release a new version of mev-boost:
3+
This is a guide on how to release a new version of mev-boost.
44

5-
1. Best days to release a new version are Monday to Wednesday. Never release on a Friday.
6-
1. Release only with another person present (four eyes principle)
5+
The best days to release a new version are Monday to Wednesday. Never release on a Friday. Release preferred with another person present (four eyes principle).
6+
7+
Process:
78
1. Double-check the current build
8-
1. Prepare a release candidate (RC)
9-
1. Test the RC on testnets with the help of node operators
10-
1. Collect code signoffs
11-
1. Release
9+
2. Create a release candidate (RC)
10+
3. Test the RC on testnets
11+
4. Collect signoffs
12+
5. Create the full release + announcement
1213

13-
## Double-check the current status
14+
## Double-check the current build
1415

1516
First of all, check that the git repository is in the final state, and all the tests and checks are running fine
1617

@@ -23,83 +24,48 @@ go mod tidy
2324
git status # should be no changes
2425

2526
# Start mev-boost with relay check and -relays
26-
go run . -mainnet -relay-check -min-bid 0.12345 -debug -relays https://0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e3ad3b71d3499c54ad14d6c21b41a37ae@boost-relay.flashbots.net,https://0x8b5d2e73e2a3a55c6c87b8b6eb92e0149a125c852751db1422fa951e42a09b82c142c3ea98d0d9930b056a3bc9896b8f@bloxroute.max-profit.blxrbdn.com,https://0xb3ee7afcf27f1f1259ac1787876318c6584ee353097a50ed84f51a1f21a323b3736f271a895c7ce918c038e4265918be@relay.edennetwork.io,https://0xa1559ace749633b997cb3fdacffb890aeebdb0f5a3b6aaa7eeeaf1a38af0a8fe88b9e4b1f61f236d2e64d95733327a62@relay.ultrasound.money
27+
go run . -mainnet -relay-check -min-bid 0.12345 -debug -relays https://0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e3ad3b71d3499c54ad14d6c21b41a37ae@boost-relay.flashbots.net,https://0x8b5d2e73e2a3a55c6c87b8b6eb92e0149a125c852751db1422fa951e42a09b82c142c3ea98d0d9930b056a3bc9896b8f@bloxroute.max-profit.blxrbdn.com,https://0xa1559ace749633b997cb3fdacffb890aeebdb0f5a3b6aaa7eeeaf1a38af0a8fe88b9e4b1f61f236d2e64d95733327a62@relay.ultrasound.money
2728

2829
# Start mev-boost with relay check and multiple -relay flags
2930
go run . -mainnet -relay-check -debug -min-bid 0.12345 \
3031
-relay https://0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e3ad3b71d3499c54ad14d6c21b41a37ae@boost-relay.flashbots.net \
3132
-relay https://0x8b5d2e73e2a3a55c6c87b8b6eb92e0149a125c852751db1422fa951e42a09b82c142c3ea98d0d9930b056a3bc9896b8f@bloxroute.max-profit.blxrbdn.com \
32-
-relay https://0xb3ee7afcf27f1f1259ac1787876318c6584ee353097a50ed84f51a1f21a323b3736f271a895c7ce918c038e4265918be@relay.edennetwork.io \
3333
-relay https://0xa1559ace749633b997cb3fdacffb890aeebdb0f5a3b6aaa7eeeaf1a38af0a8fe88b9e4b1f61f236d2e64d95733327a62@relay.ultrasound.money
3434

3535
# Call the status endpoint
3636
curl localhost:18550/eth/v1/builder/status
3737
```
3838

39-
## Prepare a release candidate build and Docker image
39+
## Make a release
4040

41-
For example, creating a new release `v1.9`:
41+
Let's release `v1.9`:
4242

4343
1. Create a GitHub issue about the upcoming release ([example](https://github.com/flashbots/mev-boost/issues/524))
44-
2. Create a release branch: `release/v1.9` (note: use the target version as branch name, don't add the `-alpha` suffix)
45-
3. Tag an alpha version: `v1.9-alpha1`
46-
4. Test in testnets, iterate as needed, create more alpha versions if needed
47-
5. When tests are complete, create the final tag and release
48-
6.
44+
1. Tag a release candidate (RC), or alpha version: `v1.9-rc1`, and push the new tag to GitHub.
45+
- The [release CI](https://github.com/flashbots/mev-boost/actions) starts
46+
building the binaries and the Docker image (which is then pushed to [Docker Hub](https://hub.docker.com/r/flashbots/mev-boost/tags)).
47+
- Binaries can be downloaded from the release CI summary website.
48+
1. Test the RC in testnets. Iterate as needed, create more alpha versions / release candidates as needed.
49+
2. When tests are complete, create the release: tag, GitHub release, `stable` branch update.
4950

5051
```bash
51-
# create a new branch
52-
git checkout -b release/v1.9
53-
54-
# set and commit the correct version as described below, and create a signed tag
55-
vim config/vars.go
56-
git commit -am "v1.9-alpha1"
57-
git tag -s v1.9-alpha1 # without a tag, the Docker image would include the wrong version number
52+
# Create the RC tag
53+
git tag -s v1.9-rc1
5854

59-
# now push to Github (CI will build the Docker image: https://github.com/flashbots/mev-boost/actions)
60-
git push origin --tags
55+
# Push to Github, which kicks off the release CI
56+
git push origin tags/v1.9-rc1
6157

62-
# other parties can now test the release candidate from Docker like this:
58+
# When CI is done, the Docker image can be used
6359
docker pull flashbots/mev-boost:v1.9a1
64-
```
65-
66-
## Ask node operators to test this RC (on Sepolia or Holesky)
67-
68-
* Reach out to node operators to help test this release
69-
* Collect their sign-off for the release
70-
71-
## Collect code signoffs
7260

73-
* Reach out to the parties that have reviewed the PRs and ask for a sign-off on the release
74-
* For possible reviewers, take a look at [recent contributors](https://github.com/flashbots/mev-boost/graphs/contributors)
61+
# Once testing is done, tag the full release
62+
git tag -s v1.9
63+
git tag -s v1.9.0
7564

76-
## Release only with 4 eyes
65+
# Push to Github, which kicks off the release CI
66+
git push origin tags/v1.9 tags/v1.9.0
7767

78-
* Always have two people preparing and publishing the final release
79-
80-
## Tagging a version and pushing the release
81-
82-
To create a new version (with tag), follow all these steps! They are necessary to have the correct build version inside, and work with `go install`.
83-
84-
* In the release branch
85-
* Update [`Version`](/config/vars.go) to final version to `v1.9`, and commit
86-
* Create final tags, both semver and pep440:
87-
* `git tag -s v1.9`
88-
* `git tag -s v1.9.0`
89-
* Update the `stable` branch:
90-
* `git checkout stable`
91-
* `git merge tags/v1.9 --ff-only` (ff-only is important, otherwise git doesn't know the stable branch is based off the v1.9 tag!)
92-
* Update the `develop` branch:
93-
* `git checkout develop`
94-
* `git merge tags/v1.9 --ff-only`
95-
* Update `Version` in `config/vars.go` to next patch with `dev` suffix (e.g. `v1.10-dev`) and commit to `develop` branch
96-
* Now push the `develop` and `stable` branches, as well as the tag: `git push origin develop stable --tags`
97-
98-
Now check the GitHub CI actions for release activity: https://github.com/flashbots/mev-boost/actions
99-
* CI builds and pushes the Docker image, and prepares a new draft release in https://github.com/flashbots/mev-boost/releases
100-
* Open it and prepare the release:
101-
* generate the description
102-
* review
103-
* add signoffs and testing
104-
* add usage (`mev-boost -help`)
105-
* publish
68+
# Finally, update the stable branch
69+
git checkout stable
70+
git merge tags/v1.9 --ff-only
71+
```

0 commit comments

Comments
 (0)