-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring v0.38.x to the up-to-date status of main (#93)
* Update README.md * Refactor: remove isConnected * Add test for Abci query * Enable tags only for semver and default branch (#82) * Add fine-grained control of time (#88) * Start implementing auto-include-tx flag * Split testnet initialization and run * Add script to restart testnet from beginning * Start implementing auto-include-tx flag * Delete backup directory before taking backup * Uncomment killing processes with app binary * Rewrite TxQueue * Fix fire events method * Implement tx filtering and rechecks * Start implementing basic test for Tx effect * Ensure the script is not blocking * Rename Dockerfile-test to Dockerfile.test * Add Contains method * Remove initial setup from Dockerfile * Remove sleep and add -p 1 * Use big.Int for community pool size * Use testnet restart in tests instead of a new setup each time * Add cometmock args to be taken by startup script * Pull time handling into TimeHandler class * Fix CheckTx and time * Add test cases for AutoTx and block production * Add time control to README * Fix auto-tx flag * Add test for starting timestamp * Add test for starting time=system time
- Loading branch information
1 parent
0572bf7
commit 6017496
Showing
18 changed files
with
1,213 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# import simd from ibc-go | ||
FROM ghcr.io/cosmos/simapp:0.50.0-rc.1 AS simapp-builder | ||
|
||
FROM golang:1.21-alpine as cometmock-builder | ||
|
||
ENV PACKAGES curl make git libc-dev bash gcc linux-headers | ||
RUN apk add --no-cache $PACKAGES | ||
|
||
ENV CGO_ENABLED=0 | ||
ENV GOOS=linux | ||
ENV GOFLAGS="-buildvcs=false" | ||
|
||
# cache gomodules for cometmock | ||
ADD ./go.mod /go.mod | ||
ADD ./go.sum /go.sum | ||
RUN go mod download | ||
|
||
# Add CometMock and install it | ||
ADD . /CometMock | ||
WORKDIR /CometMock | ||
RUN go build -o /usr/local/bin/cometmock ./cometmock | ||
|
||
RUN apk update | ||
RUN apk add --no-cache which iputils procps-ng tmux net-tools htop jq gcompat | ||
|
||
FROM golang:1.21-alpine as test-env | ||
|
||
ENV PACKAGES curl make git libc-dev bash gcc linux-headers | ||
RUN apk add --no-cache $PACKAGES | ||
RUN apk update | ||
RUN apk add --no-cache which iputils procps-ng tmux net-tools htop jq gcompat | ||
|
||
ENV CGO_ENABLED=0 | ||
ENV GOOS=linux | ||
ENV GOFLAGS="-buildvcs=false" | ||
|
||
ADD ./go.mod /go.mod | ||
ADD ./go.sum /go.sum | ||
RUN go mod download | ||
|
||
ADD ./e2e-tests /CometMock/e2e-tests | ||
|
||
COPY --from=simapp-builder /usr/bin/simd /usr/local/bin/simd | ||
|
||
WORKDIR /CometMock/e2e-tests | ||
RUN /CometMock/e2e-tests/local-testnet-singlechain-setup.sh simd "" | ||
|
||
COPY --from=cometmock-builder /usr/local/bin/cometmock /usr/local/bin/cometmock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.