Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ostracon binary and docs #282

Merged
merged 10 commits into from
Jul 6, 2021
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ about: Create a report to help us squash bugs!
Please fill in as much of the template below as you can.

Be ready for followup questions, and please respond in a timely
manner. We might ask you to provide additional logs and data (tendermint & app).
manner. We might ask you to provide additional logs and data (ostracon & app).
-->

**Tendermint version** (use `tendermint version` or `git rev-parse --verify HEAD` if installed from source):
**Ostracon version** (use `ostracon version` or `git rev-parse --verify HEAD` if installed from source):


**ABCI app** (name for built-in, URL for self-written if it's publicly available):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
goarch: ["arm", "amd64"]
goarch: ["amd64"] # ["arm", "amd64"]
timeout-minutes: 5
steps:
- uses: actions/setup-go@v2
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build & Push
# Build & Push rebuilds the tendermint docker image on every push to master and creation of tags
# Build & Push rebuilds the ostracon docker image on every push to master and creation of tags
# and pushes the image to https://hub.docker.com/r/interchainio/simapp/tags
on:
pull_request:
push:
branches:
- master
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Prepare
id: prep
run: |
DOCKER_IMAGE=tendermint/tendermint
DOCKER_IMAGE=ostracon/ostracon
torao marked this conversation as resolved.
Show resolved Hide resolved
VERSION=noop
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
Expand All @@ -42,18 +42,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Login to DockerHub
# if: ${{ github.event_name != 'pull_request' }}
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
file: ./DOCKER/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64 # linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
76 changes: 0 additions & 76 deletions .github/workflows/e2e-nightly-34x.yml

This file was deleted.

73 changes: 0 additions & 73 deletions .github/workflows/e2e-nightly-master.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/e2e-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Runs randomly generated E2E testnets nightly
# on the main release branch

name: e2e-nightly-main
on:
workflow_dispatch: # allow running workflow manually, in theory
schedule:
- cron: '0 2 * * *'

jobs:
e2e-nightly-test:
# Run parallel jobs for the listed testnet groups (must match the
# ./build/generator -g flag)
strategy:
fail-fast: false
matrix:
group: ['00', '01', '02', '03']
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/setup-go@v2
with:
go-version: '^1.15.4'

- uses: actions/checkout@v2
with:
ref: 'main'

- name: Build
working-directory: test/e2e
# Run make jobs in parallel, since we can't run steps in parallel.
run: make -j2 docker generator runner

- name: Generate testnets
working-directory: test/e2e
# When changing -g, also change the matrix groups above
run: ./build/generator -g 4 -d networks/nightly

- name: Run testnets in group ${{ matrix.group }}
working-directory: test/e2e
run: ./run-multiple.sh networks/nightly/*-group${{ matrix.group }}-*.toml

# e2e-nightly-fail:
# needs: e2e-nightly-test
# if: ${{ failure() }}
# runs-on: ubuntu-latest
# steps:
# - name: Notify Slack on failure
# uses: rtCamp/action-slack-notify@e9db0ef
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_CHANNEL: ostracon-internal
# SLACK_USERNAME: Nightly E2E Tests
# SLACK_ICON_EMOJI: ':skull:'
# SLACK_COLOR: danger
# SLACK_MESSAGE: Nightly E2E tests failed on main
# SLACK_FOOTER: ''

# e2e-nightly-success: # may turn this off once they seem to pass consistently
# needs: e2e-nightly-test
# if: ${{ success() }}
# runs-on: ubuntu-latest
# steps:
# - name: Notify Slack on success
# uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_CHANNEL: ostracon-internal
# SLACK_USERNAME: Nightly E2E Tests
# SLACK_ICON_EMOJI: ':white_check_mark:'
# SLACK_COLOR: good
# SLACK_MESSAGE: Nightly E2E tests passed on main
# SLACK_FOOTER: ''
20 changes: 10 additions & 10 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
push:
branches:
- master
- main
- release/**

jobs:
Expand All @@ -30,12 +30,12 @@ jobs:
run: make -j2 docker runner
if: "env.GIT_DIFF != ''"

- name: Run CI testnet
working-directory: test/e2e
run: ./build/runner -f networks/ci.toml
if: "env.GIT_DIFF != ''"

- name: Emit logs on failure
if: ${{ failure() }}
working-directory: test/e2e
run: ./build/runner -f networks/ci.toml logs
# - name: Run CI testnet
# working-directory: test/e2e
# run: ./build/runner -f networks/ci.toml
# if: "env.GIT_DIFF != ''"
#
# - name: Emit logs on failure
# if: ${{ failure() }}
# working-directory: test/e2e
# run: ./build/runner -f networks/ci.toml logs
30 changes: 15 additions & 15 deletions .github/workflows/fuzz-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ jobs:
outputs:
crashers-count: ${{ steps.set-crashers-count.outputs.count }}

fuzz-nightly-fail:
needs: fuzz-nightly-test
if: ${{ needs.fuzz-nightly-test.outputs.crashers-count != 0 }}
runs-on: ubuntu-latest
steps:
- name: Notify Slack if any crashers
uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: tendermint-internal
SLACK_USERNAME: Nightly Fuzz Tests
SLACK_ICON_EMOJI: ':firecracker:'
SLACK_COLOR: danger
SLACK_MESSAGE: Crashers found in Nightly Fuzz tests
SLACK_FOOTER: ''
# fuzz-nightly-fail:
# needs: fuzz-nightly-test
# if: ${{ needs.fuzz-nightly-test.outputs.crashers-count != 0 }}
# runs-on: ubuntu-latest
# steps:
# - name: Notify Slack if any crashers
# uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_CHANNEL: ostracon-internal
# SLACK_USERNAME: Nightly Fuzz Tests
# SLACK_ICON_EMOJI: ':firecracker:'
# SLACK_COLOR: danger
# SLACK_MESSAGE: Crashers found in Nightly Fuzz tests
# SLACK_FOOTER: ''
24 changes: 12 additions & 12 deletions .github/workflows/linkchecker.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#name: Check Markdown links
#on:
# schedule:
# - cron: '* */24 * * *'
#jobs:
# markdown-link-check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - uses: gaurav-nelson/github-action-markdown-link-check@1.0.7
# with:
# folder-path: "docs"
name: Check Markdown links
on:
schedule:
- cron: '* */24 * * *'
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.7
with:
folder-path: "docs"
Loading