Skip to content

Commit

Permalink
Communication Initial Implementation (#2234)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Trajan0x <trajan0x@users.noreply.github.com>
Co-authored-by: aureliusbtc <82057759+aureliusbtc@users.noreply.github.com>
Co-authored-by: χ² <88190723+ChiTimesChi@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
5 people authored Mar 27, 2024
1 parent 728a738 commit ca1ec3a
Show file tree
Hide file tree
Showing 430 changed files with 81,208 additions and 2,657 deletions.
8 changes: 8 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ flags:
paths:
- agents/
carryforward: true
committee:
paths:
- committee/
carryforward: true
sin-executor:
paths:
- sin-executor/
carryforward: true
screener-api:
paths:
- contrib/screener-api/
Expand Down
21 changes: 3 additions & 18 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ jobs:
fetch-depth: 1
submodules: 'recursive'

- name: Cache Docker images.
uses: ScribeMD/docker-cache@0.3.6
with:
key: docker-test-${{ runner.os }}-${{ matrix.package }}

- name: Go modules cache
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -408,11 +403,6 @@ jobs:
fetch-depth: 1
submodules: 'recursive'

- name: Cache Docker images.
uses: ScribeMD/docker-cache@0.3.6
with:
key: docker-generate-${{ runner.os }}-${{ matrix.package }}

- name: Setup NodeJS
uses: ./.github/actions/setup-nodejs

Expand Down Expand Up @@ -530,29 +520,24 @@ jobs:
fetch-depth: 1
submodules: 'recursive'

- name: Cache Docker images.
uses: ScribeMD/docker-cache@0.3.6
with:
key: docker-generate-${{ runner.os }}-${{ matrix.package }}

- name: Setup NodeJS
uses: ./.github/actions/setup-nodejs

# Foundry is required for flattening
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
if: ${{ contains(matrix.package, 'agents') || contains(matrix.package, 'services/rfq') }}
if: ${{ contains(matrix.package, 'agents') || contains(matrix.package, 'services/rfq') || contains(matrix.package, 'sin-executor') || contains(matrix.package, 'committee') }}
with:
version: nightly

- name: Install Node Dependencies
run: yarn install --immutable
if: ${{ contains(matrix.package, 'agents') || contains(matrix.package, 'services/rfq') }}
if: ${{ contains(matrix.package, 'agents') || contains(matrix.package, 'services/rfq') || contains(matrix.package, 'sin-executor') || contains(matrix.package, 'committee') }}

# Generate flattened files
- name: Run flattener
run: npx lerna exec npm run build:go
if: ${{ contains(matrix.package, 'agents') || contains(matrix.package, 'services/rfq') }}
if: ${{ contains(matrix.package, 'agents') || contains(matrix.package, 'services/rfq') || contains(matrix.package, 'sin-executor') || contains(matrix.package, 'committee') }}

# Setup Go
- uses: actions/setup-go@v4
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/goreleaser-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: debug
run: go version

- name: debug2
run: goreleaser -v

- name: Run GoReleaser (Release)
if: steps.branch-name.outputs.is_default == 'true'
run: goreleaser --timeout 900m --clean --debug -f ${{matrix.package}}/.goreleaser.yml
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ on:
- 'packages/contracts-core/**'
- 'packages/contracts-rfq/**'
- '.github/workflows/solidity.yml'
- 'packages/contracts-communication'
- 'packages/solidity-devops/**'
push:
paths:
- 'packages/contracts-core/**'
- 'packages/contracts-rfq/**'
- 'packages/contracts-communication'
- 'packages/solidity-devops/**'
- '.github/workflows/solidity.yml'

Expand All @@ -37,6 +39,7 @@ jobs:
contracts-core: 'packages/contracts-core/**'
contracts-rfq: 'packages/contracts-rfq/**'
solidity-devops: 'packages/solidity-devops/**'
contracts-communication: 'packages/contracts-communication/**'
- id: length
run: |
export FILTER_LENGTH=$(echo $FILTERED_PATHS | jq '. | length')
Expand Down Expand Up @@ -80,6 +83,7 @@ jobs:
{
"contracts-core": "${{ secrets.VERCEL_CONTRACT_DOCS_PROJECT_ID}}",
"contracts-rfq": "${{ secrets.VERCEL_CONTRACT_RFQ_DOCS_PROJECT_ID }}",
"contracts-communication": "${{ secrets.VERCEL_COMMUNICATION_DOCS_PROJECT_ID }}",
"solidity-devops": "${{ secrets.VERCEL_DEVOPS_DOCS_PROJECT_ID }}"
}
END
Expand Down Expand Up @@ -164,8 +168,11 @@ jobs:
- name: Build Contracts
if: ${{ matrix.package != 'solidity-devops' }}
# TODO: unforunately, as of now concurrency needs to be 1 since if multiple instances of forge try to install the same version
# of solc at the same time, we get "text file busy" errors. See https://github.com/synapsecns/sanguine/actions/runs/8457116792/job/23168392860?pr=2234
# for an example.
run: |
npx lerna exec npm run build:slither
npx lerna exec npm run build:slither --concurrency=1
- name: Run Slither
if: ${{ matrix.package != 'solidity-devops' }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@ fastcache.tmp*
# ignore all go built files in local dirs
main
.devnet/

3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ run:
- grpc/client/rest/*
- bundle/*
- generated/*
- tracely/*
timeout: 15m
skip-files:
- '.*\\.abigen\\.go$'
Expand Down Expand Up @@ -99,6 +100,8 @@ linters:
- spancheck
# simply annoying
- perfsprint
# malfunctions on embedded structs
- typecheck
fast: false

issues:
Expand Down
Loading

0 comments on commit ca1ec3a

Please sign in to comment.