Skip to content

Commit 7422726

Browse files
Merge remote-tracking branch 'origin/master' into fix-historical-feed-flood
Resolved transaction_streamer.go: kept both config options and adapted to new broadcaster API (BroadcastFeedMessages).
2 parents 431056a + 1420803 commit 7422726

File tree

338 files changed

+12788
-4823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+12788
-4823
lines changed

.github/actions/lint-go/action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: 'Lint Go Code'
3+
description: 'Runs both golangci-lint and custom linters on the Go codebase.'
4+
5+
runs:
6+
using: composite
7+
8+
steps:
9+
- name: GolangCI Lint
10+
uses: golangci/golangci-lint-action@v9
11+
with:
12+
version: v2.5
13+
14+
- name: Custom Lint
15+
shell: bash
16+
run: go run ./linters ./...

.github/workflows/_arbitrator.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v5
16+
uses: actions/checkout@v6
1717
with:
1818
submodules: recursive
1919

@@ -65,9 +65,9 @@ jobs:
6565
6666
- name: Upload rust test results
6767
if: always()
68-
uses: actions/upload-artifact@v4
68+
uses: actions/upload-artifact@v5
6969
with:
70-
name: rust-junit-reports
70+
name: junit-reports-rust
7171
path: ./arbitrator/target/nextest/ci/junit.xml
7272

7373
- name: Fail if rust tests failed

.github/workflows/_bold-legacy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,24 @@ jobs:
99
runs-on: arbitrator-ci
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v5
12+
uses: actions/checkout@v6
1313
with:
1414
submodules: recursive
1515

1616

1717
- name: Setup CI
1818
uses: ./.github/actions/ci-setup
1919

20+
- name: Build
21+
run: make -j8 build test-go-deps
22+
2023
- name: run challenge tests
2124
run: >-
2225
${{ github.workspace }}/.github/workflows/gotestsum.sh --tags legacychallengetest
2326
--run TestChallenge --timeout 60m --cover
2427
2528
- name: Archive detailed run log
26-
uses: actions/upload-artifact@v4
29+
uses: actions/upload-artifact@v5
2730
with:
2831
name: full.log
2932
path: full.log

.github/workflows/_codecov.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
workflow_call:
55
secrets:
66
CODECOV_TOKEN:
7-
required: true
8-
description: Token to upload reports to Codecov.
7+
required: false
8+
description: Token to upload reports to Codecov. Required if `upload_report` is on.
99
inputs:
1010
post_comment:
1111
description: 'Set to true to post a test summary comment on the PR.'
@@ -30,20 +30,13 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v5
34-
35-
- name: Download Go JUnit reports
36-
uses: actions/download-artifact@v4
37-
with:
38-
name: go-junit-reports
39-
path: downloaded-reports/go
33+
uses: actions/checkout@v6
4034

41-
- name: Download Rust JUnit reports
42-
uses: actions/download-artifact@v4
43-
continue-on-error: true # Rust pipeline might have not been run
35+
- name: Download JUnit reports
36+
uses: actions/download-artifact@v6
4437
with:
45-
name: rust-junit-reports
46-
path: downloaded-reports/rust
38+
pattern: junit-reports-*
39+
path: downloaded-reports/
4740

4841
- name: Post test summary comment
4942
if: ${{ inputs.post_comment }}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: detect-file-changes
3+
4+
on:
5+
workflow_call:
6+
outputs:
7+
arbitrator_changed:
8+
description: 'True if Arbitrator or related files changed.'
9+
value: ${{ jobs.changes.outputs.arbitrator_changed }}
10+
bold_legacy_changed:
11+
description: 'True if Bold Legacy or related files changed.'
12+
value: ${{ jobs.changes.outputs.bold_legacy_changed }}
13+
14+
jobs:
15+
changes:
16+
name: Detect file changes
17+
runs-on: ubuntu-4
18+
outputs:
19+
arbitrator_changed: ${{ steps.changed.outputs.arbitrator_any_changed }}
20+
bold_legacy_changed: ${{ steps.changed.outputs.bold_legacy_any_changed }}
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v6
25+
with:
26+
submodules: recursive
27+
fetch-depth: 10 # Will cover most PRs
28+
persist-credentials: true # In case changed-files requires deeper depth
29+
30+
- name: Determine if Arbitrator or Bold Legacy changed
31+
id: changed
32+
uses: tj-actions/[email protected]
33+
with:
34+
files_yaml: |
35+
arbitrator:
36+
- 'arbitrator/**'
37+
- 'contracts/**'
38+
- 'Makefile'
39+
- '.github/workflows/_arbitrator.yml'
40+
bold_legacy:
41+
- 'bold/legacy/**'
42+
- '.github/workflows/_bold-legacy.yml'

.github/workflows/_fast.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: arbitrator-ci
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v5
12+
uses: actions/checkout@v6
1313
with:
1414
submodules: recursive
1515

@@ -22,11 +22,5 @@ jobs:
2222
- name: Build all lint dependencies
2323
run: make -j8 build-node-deps
2424

25-
- name: GolangCI Lint
26-
uses: golangci/golangci-lint-action@v8
27-
with:
28-
version: v2.5
29-
30-
- name: Custom Lint
31-
run: |
32-
go run ./linters ./...
25+
- name: Setup CI
26+
uses: ./.github/actions/lint-go

0 commit comments

Comments
 (0)