Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/sf-draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Draft release

on:
pull_request:
branches:
- "release/*"
paths:
- "CHANGELOG.sf.md"

permissions:
contents: write
pull-requests: write

concurrency:
group: draft-release-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
draft-release:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Detect release PR
id: detect
uses: streamingfast/actions/sfreleaser/detect@v1

- name: Prepare release
if: steps.detect.outputs.is_release_pr
uses: streamingfast/actions/sfreleaser/prepare@v1
with:
version: ${{ steps.detect.outputs.version }}
42 changes: 42 additions & 0 deletions .github/workflows/sf-publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish release

on:
pull_request:
types:
- closed
branches:
- "release/*"
paths:
- "CHANGELOG.sf.md"

permissions:
actions: write
contents: write

concurrency:
group: publish-release-${{ github.event.pull_request.number }}
cancel-in-progress: false

jobs:
publish:
if: github.event.pull_request.merged && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: 0

- name: Detect release PR
id: detect
uses: streamingfast/actions/sfreleaser/detect@v1
with:
before: ${{ github.event.pull_request.merge_commit_sha }}^1

- name: Publish release
if: steps.detect.outputs.is_release_pr
uses: streamingfast/actions/sfreleaser/publish@v1
with:
version: ${{ steps.detect.outputs.version }}
build-workflow: sf-release.yml
23 changes: 7 additions & 16 deletions .github/workflows/sf-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,20 +175,11 @@ jobs:
# silences the buildx warning.
docker cp $(docker create --platform=linux/amd64 ${{ steps.image.outputs.ID }}):/usr/local/bin/op-reth ./op-reth_linux_amd64

- name: Extract Changelog
id: changelog
# The release itself (notes, pre-release flag) is drafted by sf-draft-release.yml and published
# by sf-publish-release.yml (`kind: application` in .sfreleaser), this only adds the binary to
# it. It fails when the release does not exist so there is a single way to release.
- name: Upload assets to the release
env:
GH_TOKEN: ${{ github.token }}
run: |
curl -L https://github.com/streamingfast/sfreleaser/releases/download/v0.12.1/sfreleaser_linux_x86_64.tar.gz | tar -xz
chmod +x sfreleaser

./sfreleaser changelog extract-section \
github://token:${{ github.token }}@${{ github.repository }}/$GITHUB_SHA/CHANGELOG.sf.md \
--github-output="changelog:$GITHUB_OUTPUT"

- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changelog }}
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') || contains(github.ref, 'alpha') }}
files: |
./op-reth_linux_amd64
gh release upload "${GITHUB_REF#refs/tags/}" ./op-reth_linux_amd64 --clobber --repo "${{ github.repository }}"
1 change: 1 addition & 0 deletions .sfreleaser
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
global:
language: rust
kind: application
variant: chain
release:
changelog-path: CHANGELOG.sf.md
20 changes: 20 additions & 0 deletions CHANGELOG.sf.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@ The `sf-release.yml` workflow publishes the top-most version section here as the
GitHub release notes (via `sfreleaser changelog extract-section`), so keep the
most recent release at the top.

## op-reth-v2.9.0-fh3.1-1

Picks up the Firehose staged-sync finality fix from `streamingfast/reth`.

### Changed

* Reth now comes from `streamingfast/reth` `op-reth-v2.9.0-fh3.1-1`, pinned by commit. Nothing else
changes: upstream op-reth stays at `v2.9.0`.
* Releases are now drafted and published from `CHANGELOG.sf.md` by `sf-draft-release.yml` and
`sf-publish-release.yml` (`sfreleaser` with `kind: application`). `sf-release.yml` now only
uploads the `op-reth` binary to that release instead of creating it.

### Fixed

* Blocks replayed by staged sync (the pipeline Execution stage) now advertise the node's finalized
head as the Firehose LIB, or the block itself when it is at or below the finalized block. Before,
every replayed block advertised itself as final. On OP Stack the pipeline backfills up to the
unsafe head, so a reader more than 32 blocks behind reported unsafe, reorgable blocks as final
(streamingfast/reth#112, port of streamingfast/reth#110).

## op-reth-v2.9.0-fh3.1

Bumps the SF op-reth fork to upstream `op-reth/v2.9.0` (50 upstream commits on top of
Expand Down
Loading
Loading