Skip to content

Commit ea28546

Browse files
authored
Merge pull request #74 from informalsystems/main
Update v0.38.x branch to current status of main
2 parents ec93723 + c8f55fe commit ea28546

24 files changed

+1989
-559
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ on:
99
schedule:
1010
- cron: '38 20 * * *'
1111
push:
12-
branches: [ "main", "v0.37.x", "v0.34.x" ]
12+
branches: [ "main", "v0.38.x", "v0.37.x", "v0.34.x" ]
1313
# Publish semver tags as releases.
1414
tags: [ 'v*.*.*' ]
1515
pull_request:
16-
branches: [ "main", "v0.37.x", "v0.34.x" ]
16+
branches: [ "main", "v0.38.x", "v0.37.x", "v0.34.x" ]
1717

1818
env:
1919
# Use docker.io for Docker Hub if empty

.github/workflows/e2e-tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Automated Tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- v0.38.x
7+
- v0.37.x
8+
- v0.34.x
9+
pull_request:
10+
branches:
11+
- main
12+
- v0.38.x
13+
- v0.37.x
14+
- v0.34.x
15+
jobs:
16+
Automated_Tests:
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20+
- uses: actions/checkout@v4
21+
- name: Make test
22+
run: make test-docker

.mergify.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ defaults:
55
- "{{ author }}"
66

77
pull_request_rules:
8+
- name: Backport patches to the v0.38.x branch
9+
conditions:
10+
- base=main
11+
- label=A:backport/v0.38.x
12+
actions:
13+
backport:
14+
branches:
15+
- v0.38.x
816
- name: Backport patches to the v0.37.x branch
917
conditions:
1018
- base=main

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20-alpine
1+
FROM golang:1.21-alpine
22

33
ENV PACKAGES curl make git libc-dev bash gcc linux-headers
44
RUN apk add --no-cache $PACKAGES

Dockerfile-test

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# import simd from ibc-go
2+
FROM ghcr.io/cosmos/simapp:0.50.0-rc.1 AS simapp-builder
3+
4+
FROM golang:1.21-alpine as cometmock-builder
5+
6+
ENV PACKAGES curl make git libc-dev bash gcc linux-headers
7+
RUN apk add --no-cache $PACKAGES
8+
9+
ENV CGO_ENABLED=0
10+
ENV GOOS=linux
11+
ENV GOFLAGS="-buildvcs=false"
12+
13+
# cache gomodules for cometmock
14+
ADD ./go.mod /go.mod
15+
ADD ./go.sum /go.sum
16+
RUN go mod download
17+
18+
# Add CometMock and install it
19+
ADD . /CometMock
20+
WORKDIR /CometMock
21+
RUN go build -o /usr/local/bin/cometmock ./cometmock
22+
23+
RUN apk update
24+
RUN apk add --no-cache which iputils procps-ng tmux net-tools htop jq gcompat
25+
26+
COPY --from=simapp-builder /usr/bin/simd /usr/local/bin/simd

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
install:
2-
go install ./cometmock
2+
go install ./cometmock
3+
4+
test-locally:
5+
go test -timeout 600s ./e2e-tests -test.v
6+
7+
test-docker:
8+
# Build the Docker image
9+
docker build -f Dockerfile-test -t cometmock-test .
10+
11+
# Start a container and execute the test command inside
12+
docker rm cometmock-test-instance || true
13+
docker run --name cometmock-test-instance --workdir /CometMock cometmock-test go test -timeout 600s ./e2e-tests -test.v

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ controlling which validators sign blocks,
1313

1414
On a technical level, CometMock communicates with applications via ABCI through GRPC or TSP (Tendermint Socket Protocol) calls. It calls BeginBlock, DeliverTx, EndBlock and Commit like CometBFT does during normal execution.
1515

16-
Currently, CometMock maintains releases compatible with CometBFT v0.37 and v0.34, see branches [v0.34.x](https://github.com/informalsystems/CometMock/tree/v0.34.x) and [v0.37.x](https://github.com/informalsystems/CometMock/tree/v0.37.x). It offers *many* of the RPC endpoints offered by Comet (see https://docs.cometbft.com/v0.34/rpc/ and https://docs.cometbft.com/v0.37/rpc/ for the respective version of the interface),
16+
Currently, CometMock maintains releases compatible with CometBFT v0.38, v0.37 and v0.34, see branches [v0.34.x](https://github.com/informalsystems/CometMock/tree/v0.34.x), [v0.37.x](https://github.com/informalsystems/CometMock/tree/v0.37.x) and [v0.38.x](https://github.com/informalsystems/CometMock/tree/v0.38.x). It offers *many* of the RPC endpoints offered by Comet (see https://docs.cometbft.com/v0.34/rpc/, https://docs.cometbft.com/v0.37/rpc/ and https://docs.cometbft.com/v0.38/rpc/ for the respective version of the interface),
1717
in particular it supports the subset used by Gorelayer (https://github.com/cosmos/relayer/).
1818
See the endpoints offered here: [https://github.com/informalsystems/CometMock/cometmock/rpc_server/routes.go#L30C2-L53](https://github.com/informalsystems/CometMock/blob/main/cometmock/rpc_server/routes.go)
1919

0 commit comments

Comments
 (0)