Skip to content

Commit

Permalink
Cosmos / CosmWasm agents (hyperlane-xyz#2865)
Browse files Browse the repository at this point in the history
### Description

<!--
What's included in this PR?
-->

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->

---------

Co-authored-by: Mattie Conover <[email protected]>
Co-authored-by: hashableric <[email protected]>
Co-authored-by: byeongsu-hong <[email protected]>
Co-authored-by: Daniel Savu <[email protected]>
Co-authored-by: Nam Chu Hoai <[email protected]>
Co-authored-by: Yorke Rhodes <[email protected]>
  • Loading branch information
7 people authored Nov 23, 2023
1 parent 203df39 commit ece2be5
Show file tree
Hide file tree
Showing 93 changed files with 7,536 additions and 1,329 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/agent-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:

jobs:
prepare:
runs-on: ubuntu-latest
runs-on: larger-runner
outputs:
tag_date: ${{ steps.taggen.outputs.TAG_DATE }}
tag_sha: ${{ steps.taggen.outputs.TAG_SHA }}
Expand All @@ -33,7 +33,7 @@ jobs:
matrix:
include:
- TARGET: x86_64-unknown-linux-gnu
OS: ubuntu-latest
OS: larger-runner
- TARGET: x86_64-apple-darwin
OS: macos-latest
- TARGET: aarch64-apple-darwin
Expand All @@ -45,7 +45,7 @@ jobs:
- name: checkout
uses: actions/checkout@v3
- name: ubuntu setup
if: ${{ matrix.OS == 'ubuntu-latest' }}
if: ${{ matrix.OS == 'larger-runner' }}
run: |
sudo apt-get update -qq
sudo apt-get install -qq crossbuild-essential-arm64 crossbuild-essential-armhf
Expand All @@ -70,7 +70,7 @@ jobs:
run: cargo build --release --target ${{ matrix.TARGET }} --bin relayer --bin scraper --bin validator
working-directory: ./rust
- name: make executable
if: ${{ matrix.OS == 'ubuntu-latest' || matrix.OS == 'macos-latest' }}
if: ${{ matrix.OS == 'larger-runner' || matrix.OS == 'macos-latest' }}
run: chmod ug+x,-w relayer scraper validator
working-directory: rust/target/${{ matrix.TARGET }}/release
- name: upload binaries
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [main]
pull_request:
branches: '*'
workflow_dispatch:

concurrency:
Expand All @@ -21,7 +20,7 @@ defaults:

jobs:
e2e:
runs-on: ubuntu-latest
runs-on: larger-runner
steps:
- uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -68,7 +67,9 @@ jobs:
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
- name: build test
run: cargo build --release --bin run-locally
- name: run test
- name: run CosmWasm test
run: RUST_BACKTRACE=1 cargo test --package run-locally --bin run-locally -- cosmos::test --nocapture
- name: run test (excluding CosmWasm)
run: ./target/release/run-locally
env:
E2E_CI_MODE: 'true'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mergify.yml.bak
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
jobs:
automerge:

runs-on: ubuntu-latest
runs-on: larger-runner

steps:
- name: automerge
Expand All @@ -38,7 +38,7 @@ jobs:

# in rust.yml
complete:
runs-on: ubuntu-latest
runs-on: larger-runner
needs: [build, test, lint]

steps:
Expand All @@ -52,7 +52,7 @@ jobs:

# in solidity.yml
complete:
runs-on: ubuntu-latest
runs-on: larger-runner
needs: [install, lint, test]

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/monorepo-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
cancel-in-progress: true
jobs:
check-env:
runs-on: ubuntu-latest
runs-on: larger-runner
# assign output from step to job output
outputs:
gcloud-service-key: ${{ steps.gcloud-service-key.outputs.defined }}
Expand All @@ -27,7 +27,7 @@ jobs:
run: echo "::set-output name=defined::true"

build-and-push-to-gcr:
runs-on: ubuntu-latest
runs-on: larger-runner

# uses check-env to determine if secrets.GCLOUD_SERVICE_KEY is defined
needs: [check-env]
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

jobs:
yarn-install:
runs-on: ubuntu-latest
runs-on: larger-runner
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -39,7 +39,7 @@ jobs:
fi
yarn-build:
runs-on: ubuntu-latest
runs-on: larger-runner
needs: [yarn-install]
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
run: yarn build

lint-prettier:
runs-on: ubuntu-latest
runs-on: larger-runner
needs: [yarn-install]
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
fi
test:
runs-on: ubuntu-latest
runs-on: larger-runner
needs: [yarn-build]
steps:
- uses: actions/checkout@v3
Expand All @@ -117,7 +117,7 @@ jobs:
run: yarn test

test-cli:
runs-on: ubuntu-latest
runs-on: larger-runner
needs: [yarn-build]
steps:
- uses: actions/checkout@v3
Expand All @@ -136,7 +136,7 @@ jobs:
run: ./typescript/cli/ci-test.sh

test-env:
runs-on: ubuntu-latest
runs-on: larger-runner
needs: [yarn-build]
strategy:
matrix:
Expand All @@ -157,7 +157,7 @@ jobs:
run: cd typescript/infra && ./fork.sh ${{ matrix.environment }} ${{ matrix.module }}

coverage:
runs-on: ubuntu-latest
runs-on: larger-runner
needs: [yarn-build]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: write
pull-requests: write
name: Release
runs-on: ubuntu-latest
runs-on: larger-runner
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
cancel-in-progress: true
jobs:
check-env:
runs-on: ubuntu-latest
runs-on: larger-runner
# assign output from step to job output
outputs:
gcloud-service-key: ${{ steps.gcloud-service-key.outputs.defined }}
Expand All @@ -26,7 +26,7 @@ jobs:
run: echo "::set-output name=defined::true"

build-and-push-to-gcr:
runs-on: ubuntu-latest
runs-on: larger-runner

# uses check-env to determine if secrets.GCLOUD_SERVICE_KEY is defined
needs: [check-env]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-skipped.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ env:

jobs:
test-rs:
runs-on: ubuntu-latest
runs-on: larger-runner

steps:
- run: 'echo "No test required" '

lint-rs:
runs-on: ubuntu-latest
runs-on: larger-runner

steps:
- run: 'echo "No lint required" '
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defaults:

jobs:
test-rs:
runs-on: ubuntu-latest
runs-on: larger-runner

steps:
- uses: actions/checkout@v3
Expand All @@ -51,7 +51,7 @@ jobs:
run: cargo test

lint-rs:
runs-on: ubuntu-latest
runs-on: larger-runner

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
slither:
runs-on: ubuntu-latest
runs-on: larger-runner

steps:
- uses: actions/checkout@v3
Expand Down
Loading

0 comments on commit ece2be5

Please sign in to comment.