Skip to content

Commit

Permalink
Merge branch 'feature/dynamic-protocol-state' of https://github.com/o…
Browse files Browse the repository at this point in the history
…nflow/flow-go into yurii/instance-params-refactoring
  • Loading branch information
durkmurder committed Dec 8, 2023
2 parents b831282 + 7fdc7fb commit 4099164
Show file tree
Hide file tree
Showing 521 changed files with 144,409 additions and 8,776 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
go-version: "1.20"
- name: Checkout repo
uses: actions/checkout@v2
- name: Build relic
run: make crypto_setup_gopath
# Provide Google Service Account credentials to Github Action, allowing interaction with the Google Container Registry
# Logging in as github-actions@dl-flow.iam.gserviceaccount.com
- id: auth
Expand Down
40 changes: 12 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build relic
run: make crypto_setup_gopath
- name: Install C formatter
run: sudo apt-get install -y clang-format
- name: Run C formatter and sanitizer for ./crypto
run: make -C crypto c-format && make -C crypto c-sanitize
- name: Run go generate
run: go generate
working-directory: ${{ matrix.dir }}
Expand All @@ -51,10 +53,11 @@ jobs:
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.54
args: -v --build-tags relic
args: -v
working-directory: ${{ matrix.dir }}
# https://github.com/golangci/golangci-lint-action/issues/244
skip-cache: true


tidy:
name: Tidy
Expand All @@ -72,18 +75,6 @@ jobs:
- name: code sanity check
run: make code-sanity-check

shell-check:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@203a3fd018dfe73f8ae7e3aa8da2c149a5f41c33
with:
scandir: './crypto'
ignore: 'relic'

create-dynamic-test-matrix:
name: Create Dynamic Test Matrix
runs-on: ubuntu-latest
Expand Down Expand Up @@ -144,20 +135,17 @@ jobs:
matrix:
include:
- name: crypto
make1: -C crypto setup
make2: unittest
setup: noop
retries: 1
race: 1
runner: ubuntu-latest
- name: insecure
make1: install-tools
make2: test
setup: install-tools
retries: 5
race: 0
runner: buildjet-4vcpu-ubuntu-2204
- name: integration
make1: install-tools
make2: test
setup: install-tools
retries: 5
race: 0
runner: buildjet-4vcpu-ubuntu-2204
Expand All @@ -171,16 +159,16 @@ jobs:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Setup tests (${{ matrix.name }})
run: make ${{ matrix.make1 }}
run: make ${{ matrix.setup }}
- name: Run tests (${{ matrix.name }})
env:
RACE_DETECTOR: ${{ matrix.race }}
uses: nick-fields/retry@v2
with:
timeout_minutes: 35
max_attempts: ${{ matrix.retries }}
# run `make2` target inside each module's root
command: VERBOSE=1 make -C ${{ matrix.name }} ${{ matrix.make2 }}
# run test target inside each module's root
command: VERBOSE=1 make -C ${{ matrix.name }} test
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand All @@ -202,8 +190,6 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build relic
run: make crypto_setup_gopath
- name: Docker build
run: make docker-build-flow docker-build-flow-corrupt
- name: Save Docker images
Expand Down Expand Up @@ -294,8 +280,6 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build relic
run: make crypto_setup_gopath
- name: Load cached Docker images
uses: actions/cache@v3
with:
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/flaky-test-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,15 @@ jobs:
matrix:
include:
- name: crypto
make1: -C crypto setup
make2: unittest
setup: noop
race: 1
test_category: unit-crypto
- name: insecure
make1: install-tools
make2: test
setup: install-tools
race: 0
test_category: unit-insecure
- name: integration
make1: install-tools
make2: test
setup: install-tools
race: 0
test_category: unit-integration
runs-on: ubuntu-latest
Expand All @@ -106,11 +103,11 @@ jobs:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Setup tests (${{ matrix.name }})
run: make ${{ matrix.make1 }}
run: make ${{ matrix.setup }}
- name: Run tests (${{ matrix.name }})
env:
RACE_DETECTOR: ${{ matrix.race }}
run: make -es -C ${{ matrix.name }} ${{ matrix.make2 }} > test-output
run: make -es -C ${{ matrix.name }} test > test-output
timeout-minutes: 100
continue-on-error: true
- name: Process test results (${{ matrix.name }})
Expand Down Expand Up @@ -167,8 +164,6 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build relic
run: make crypto_setup_gopath
- name: Docker build
run: make docker-build-flow docker-build-flow-corrupt
- name: Run tests
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
# to accurately get the version tag
fetch-depth: 0
ref: ${{ inputs.tag }}
- name: Build relic
run: make crypto_setup_gopath
- name: Build and upload boot-tools
run: |
make tool-bootstrap tool-transit
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
/cmd/util/util
/cmd/bootstrap/bootstrap

# crypto relic folder
crypto/relic/

# Test binary, build with `go test -c`
*.test
Expand Down
Loading

0 comments on commit 4099164

Please sign in to comment.