-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MorpheusVM: The Choice is Yours (#258)
* first commit * update workflows * move to basevm * remove all reference to lite * move cmd * update scripts run.sh * go mod tidy * replace lint * restrict running of unit tests * add badges * fix genesis * fix balance issue * fix controller * fix rpc * cli compiles * e2e compiles * integration compiles * lint passed * fix milli * remove unnecessary tests * integration passing for base * fix vmID * e2e passing * add stop.sh * add basevm load test * fix load test * fix main README * Separate Shared Components (#260) * experimenting with CLI * move more cli commands over * port storage * more progress * fix prompt chain * rewrite tokenvm action * tokenvm chain * make chain shared * abstract watch * rewrite key operations * add support for prometheus * introduce sendAndWait * abstract submitDummy * remove old submit dummy * progress on cli spam * generic spam implemented * general spam * remove unused errors * close db earlier * start cleanup of basevm * cleaning up base * basevm actions passing * making progress with cleanup * fix chain for basevm * cleanup spam * remove unnecessary errors * fix lint in base and hypersk * fix license spacing * remove gosec from spam * fix license header application * add license to right files in token-cli * upload logo for basevm * Rename to `SimpleVM` (#266) * rename to simple * migrate from basevm to simplevm * add basic README * start demo work * get fields into README * fill in rest of README * update avalanchego dep (#268) * MorpheusVM: the last renaming of `basevm` (#270) * update workflows * move files * update all references * update addresses * update README
- Loading branch information
1 parent
8bc2f78
commit 37df80a
Showing
108 changed files
with
9,058 additions
and
1,656 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 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,40 @@ | ||
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved. | ||
# See the file LICENSE for licensing terms. | ||
|
||
name: MorpheusVM Load Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [labeled,synchronize,reopened] | ||
|
||
jobs: | ||
morpheusvm-load-tests: | ||
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run load') }} | ||
strategy: | ||
matrix: | ||
level: [v1, v2, v3] # v4 is not supported | ||
runs-on: | ||
labels: ubuntu-20.04-32 | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
check-latest: true | ||
cache: true | ||
cache-dependency-path: | | ||
go.sum | ||
examples/morpheusvm/go.sum | ||
- name: Run load tests | ||
working-directory: ./examples/morpheusvm | ||
shell: bash | ||
run: GOAMD64=${{ matrix.level }} scripts/tests.load.sh | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true |
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,69 @@ | ||
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved. | ||
# See the file LICENSE for licensing terms. | ||
|
||
name: MorpheusVM Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "*" | ||
pull_request: | ||
types: [labeled,synchronize,reopened] | ||
|
||
jobs: | ||
morpheusvm-release: | ||
# We build with 20.04 to maintain max compatibility: https://github.com/golang/go/issues/57328 | ||
runs-on: ubuntu-20.04-32 | ||
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags/v') || contains(github.event.pull_request.labels.*.name, 'run release') }} | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
check-latest: true | ||
cache: true | ||
cache-dependency-path: | | ||
go.sum | ||
examples/morpheusvm/go.sum | ||
- name: Set up arm64 cross compiler | ||
run: | | ||
sudo apt-get -y update | ||
sudo apt-get -y install gcc-aarch64-linux-gnu | ||
- name: Checkout osxcross | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: tpoechtrager/osxcross | ||
path: osxcross | ||
- name: Build osxcross | ||
run: | | ||
sudo apt-get -y install clang llvm-dev libxml2-dev uuid-dev libssl-dev bash patch make tar xz-utils bzip2 gzip sed cpio libbz2-dev | ||
cd osxcross | ||
wget https://github.com/joseluisq/macosx-sdks/releases/download/12.3/$MACOS_SDK_FNAME -O tarballs/$MACOS_SDK_FNAME | ||
echo $MACOS_SDK_CHECKSUM tarballs/$MACOS_SDK_FNAME | sha256sum -c - | ||
UNATTENDED=1 ./build.sh | ||
echo $PWD/target/bin >> $GITHUB_PATH | ||
env: | ||
MACOS_SDK_FNAME: MacOSX12.3.sdk.tar.xz | ||
MACOS_SDK_CHECKSUM: 3abd261ceb483c44295a6623fdffe5d44fc4ac2c872526576ec5ab5ad0f6e26c | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release | ||
workdir: ./examples/morpheusvm/ | ||
env: | ||
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Archive Builds | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: ./examples/morpheusvm/dist | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true |
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,35 @@ | ||
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved. | ||
# See the file LICENSE for licensing terms. | ||
|
||
name: MorpheusVM Static Analysis | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
morpheusvm-lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
check-latest: true | ||
cache: true | ||
cache-dependency-path: | | ||
go.sum | ||
examples/morpheusvm/go.sum | ||
- name: Run static analysis tests | ||
working-directory: ./examples/morpheusvm | ||
shell: bash | ||
run: scripts/tests.lint.sh | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true |
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,39 @@ | ||
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved. | ||
# See the file LICENSE for licensing terms. | ||
|
||
name: MorpheusVM Sync Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [labeled,synchronize,reopened] | ||
|
||
jobs: | ||
morpheusvm-sync-tests: | ||
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run sync') }} | ||
runs-on: | ||
labels: ubuntu-20.04-32 | ||
timeout-minutes: 25 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
check-latest: true | ||
cache: true | ||
cache-dependency-path: | | ||
go.sum | ||
examples/morpheusvm/go.sum | ||
- name: Run sync tests | ||
working-directory: ./examples/morpheusvm | ||
shell: bash | ||
run: scripts/run.sh | ||
env: | ||
MODE: "full-test" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true |
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,58 @@ | ||
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved. | ||
# See the file LICENSE for licensing terms. | ||
|
||
name: MorpheusVM Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [labeled,synchronize,reopened] | ||
|
||
jobs: | ||
morpheusvm-unit-tests: | ||
if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'run unit') }} | ||
runs-on: | ||
labels: ubuntu-20.04-32 | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
check-latest: true | ||
cache: true | ||
cache-dependency-path: | | ||
go.sum | ||
examples/morpheusvm/go.sum | ||
- name: Run unit tests | ||
working-directory: ./examples/morpheusvm | ||
shell: bash | ||
run: scripts/tests.unit.sh | ||
- name: Run integration tests | ||
working-directory: ./examples/morpheusvm | ||
shell: bash | ||
run: scripts/tests.integration.sh | ||
- name: Archive code coverage results (text) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: code-coverage-out | ||
path: ./examples/morpheusvm/integration.coverage.out | ||
- name: Archive code coverage results (html) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: code-coverage-html | ||
path: ./examples/morpheusvm/integration.coverage.html | ||
- name: Run e2e tests | ||
working-directory: ./examples/morpheusvm | ||
shell: bash | ||
run: scripts/run.sh | ||
env: | ||
MODE: "test" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true |
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
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 |
---|---|---|
|
@@ -57,6 +57,7 @@ dist/ | |
*.pk | ||
tmp-storage-testing | ||
.token-cli* | ||
.morpheus-cli* | ||
*.html | ||
data/ | ||
osxcross/ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.