Skip to content

Commit bb6f65b

Browse files
committed
Merge branch 'master' into leo/fix-bootstrap-logging
2 parents dfba331 + 53d2093 commit bb6f65b

File tree

1,114 files changed

+35019
-12898
lines changed

Some content is hidden

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

1,114 files changed

+35019
-12898
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Do not copy the user's project git directory into the container
2+
# it's not needed to build the project, and causes issues when working within git worktrees
3+
.git/
4+
15
integration/localnet/bootstrap/
26
integration/localnet/profiler/
37
integration/localnet/data/

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ jobs:
239239
timeout-minutes: 1
240240
continue-on-error: true
241241
with:
242-
file: ./coverage.txt
242+
files: ./coverage.txt
243243
flags: unittests
244244
name: codecov-umbrella
245245
token: ${{ secrets.CODECOV_TOKEN }}
@@ -285,7 +285,7 @@ jobs:
285285
timeout-minutes: 1
286286
continue-on-error: true
287287
with:
288-
file: ./coverage.txt
288+
files: ./coverage.txt
289289
flags: unittests
290290
name: codecov-umbrella
291291
token: ${{ secrets.CODECOV_TOKEN }}
@@ -321,6 +321,8 @@ jobs:
321321
username: ${{ vars.DOCKERHUB_USERNAME }}
322322
password: ${{ secrets.DOCKERHUB_TOKEN }}
323323
if: ${{ (github.event_name == 'merge_group' || (github.event.pull_request && (github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR'))) }}
324+
# this docker auth is exclusively for higher rate limits. continue unauthenticated if it fails
325+
continue-on-error: true
324326

325327

326328
- name: Docker build
@@ -389,7 +391,7 @@ jobs:
389391
timeout-minutes: 1
390392
continue-on-error: true
391393
with:
392-
file: ./coverage.txt
394+
files: ./coverage.txt
393395
flags: unittests
394396
name: codecov-umbrella
395397
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/stale.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v9
10+
- uses: actions/stale@v10
1111
with:
1212
days-before-issue-stale: 90
1313
days-before-issue-close: 7
1414
exempt-issue-labels: 'Preserve,Idea'
15+
exempt-pr-labels: 'Preserve'
1516
stale-issue-label: 'Stale'
1617
stale-issue-message: >
1718
This issue has been automatically marked as stale because it has not had

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/cmd/consensus/consensus
44
/cmd/execution/execution
55
/cmd/verification/verification
6-
/cmd/testclient/testclient
76
/cmd/util/util
87
/cmd/bootstrap/bootstrap
98

.golangci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,22 @@ run:
33

44
linters-settings:
55
goimports:
6+
# enforced by linter
67
# put imports beginning with prefix after 3rd-party packages;
78
# it's a comma-separated list of prefixes
89
local-prefixes: github.com/onflow/flow-go/
910

11+
# used to generate canonical import ordering
12+
# not enforced by linter
13+
gci:
14+
sections:
15+
- standard # 1. standard library
16+
- default # 2. external packages
17+
- prefix(github.com/onflow/) # 3. org packages
18+
- prefix(github.com/onflow/flow-go/) # 4. project packages
19+
skip-generated: true
20+
custom-order: true
21+
1022
gosec:
1123
# To select a subset of rules to run.
1224
# Available rules: https://github.com/securego/gosec#available-rules

.mockery.yaml

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
dir: "{{.InterfaceDir}}/mock"
2+
outpkg: "mock"
3+
filename: "{{.InterfaceName | snakecase}}.go"
4+
mockname: "{{.InterfaceName}}"
5+
6+
all: True
7+
with-expecter: False
8+
include-auto-generated: False
9+
disable-func-mocks: True
10+
fail-on-missing: True
11+
12+
# Suppress warnings
13+
issue-845-fix: True
14+
disable-version-string: True
15+
resolve-type-alias: False
16+
17+
packages:
18+
github.com/onflow/flow-go/access:
19+
github.com/onflow/flow-go/access/validator:
20+
github.com/onflow/flow-go/cmd/util/ledger/reporters:
21+
github.com/onflow/flow-go/consensus/hotstuff:
22+
config:
23+
dir: "consensus/hotstuff/mocks"
24+
outpkg: "mocks"
25+
github.com/onflow/flow-go/engine/access/ingestion/tx_error_messages:
26+
github.com/onflow/flow-go/engine/access/rest/common/models:
27+
github.com/onflow/flow-go/engine/access/rest/websockets:
28+
github.com/onflow/flow-go/engine/access/rest/websockets/data_providers:
29+
github.com/onflow/flow-go/engine/access/rpc/backend/accounts/provider:
30+
github.com/onflow/flow-go/engine/access/rpc/backend/events/provider:
31+
github.com/onflow/flow-go/engine/access/rpc/backend/node_communicator:
32+
github.com/onflow/flow-go/engine/access/rpc/backend/transactions/error_messages:
33+
github.com/onflow/flow-go/engine/access/rpc/backend/transactions/provider:
34+
github.com/onflow/flow-go/engine/access/rpc/backend/transactions/retrier:
35+
github.com/onflow/flow-go/engine/access/rpc/connection:
36+
github.com/onflow/flow-go/engine/access/state_stream:
37+
github.com/onflow/flow-go/engine/access/subscription:
38+
github.com/onflow/flow-go/engine/access/subscription/tracker:
39+
github.com/onflow/flow-go/engine/access/wrapper:
40+
config:
41+
dir: "engine/access/mock"
42+
github.com/onflow/flow-go/engine/collection:
43+
github.com/onflow/flow-go/engine/collection/epochmgr:
44+
github.com/onflow/flow-go/engine/collection/rpc:
45+
github.com/onflow/flow-go/engine/common/follower:
46+
interfaces:
47+
complianceCore:
48+
config:
49+
exported: true
50+
mockname: "{{.InterfaceName | firstUpper}}"
51+
github.com/onflow/flow-go/engine/common/follower/cache:
52+
github.com/onflow/flow-go/engine/consensus:
53+
github.com/onflow/flow-go/engine/consensus/approvals:
54+
github.com/onflow/flow-go/engine/execution:
55+
github.com/onflow/flow-go/engine/execution/computation:
56+
github.com/onflow/flow-go/engine/execution/computation/computer:
57+
github.com/onflow/flow-go/engine/execution/computation/query:
58+
github.com/onflow/flow-go/engine/execution/ingestion/uploader:
59+
github.com/onflow/flow-go/engine/execution/provider:
60+
github.com/onflow/flow-go/engine/execution/state:
61+
github.com/onflow/flow-go/engine/protocol:
62+
github.com/onflow/flow-go/engine/verification/fetcher:
63+
github.com/onflow/flow-go/fvm:
64+
github.com/onflow/flow-go/fvm/environment:
65+
github.com/onflow/flow-go/fvm/storage/snapshot:
66+
github.com/onflow/flow-go/insecure:
67+
github.com/onflow/flow-go/ledger:
68+
github.com/onflow/flow-go/model/fingerprint:
69+
github.com/onflow/flow-go/module:
70+
github.com/onflow/flow-go/module/component:
71+
github.com/onflow/flow-go/module/execution:
72+
github.com/onflow/flow-go/module/executiondatasync/execution_data:
73+
github.com/onflow/flow-go/module/executiondatasync/optimistic_sync:
74+
config:
75+
all: False
76+
interfaces:
77+
Core:
78+
github.com/onflow/flow-go/module/executiondatasync/tracker:
79+
github.com/onflow/flow-go/module/forest:
80+
github.com/onflow/flow-go/module/mempool:
81+
github.com/onflow/flow-go/module/mempool/consensus/mock_interfaces:
82+
config:
83+
dir: "module/mempool/consensus/mock"
84+
github.com/onflow/flow-go/module/state_synchronization:
85+
github.com/onflow/flow-go/module/state_synchronization/requester:
86+
github.com/onflow/flow-go/network:
87+
github.com/onflow/flow-go/network/alsp:
88+
github.com/onflow/flow-go/network/p2p:
89+
github.com/onflow/flow-go/state/cluster:
90+
github.com/onflow/flow-go/state/protocol:
91+
github.com/onflow/flow-go/state/protocol/events:
92+
github.com/onflow/flow-go/state/protocol/protocol_state:
93+
github.com/onflow/flow-go/state/protocol/protocol_state/mock_interfaces:
94+
config:
95+
dir: "state/protocol/protocol_state/mock"
96+
github.com/onflow/flow-go/state/protocol/protocol_state/epochs:
97+
github.com/onflow/flow-go/state/protocol/protocol_state/epochs/mock_interfaces:
98+
config:
99+
dir: "state/protocol/protocol_state/epochs/mock"
100+
github.com/onflow/flow-go/storage:
101+
102+
# external libraries
103+
github.com/onflow/flow-go-sdk/access:
104+
config:
105+
dir: "integration/benchmark/mock"
106+
interfaces:
107+
Client:
108+
109+
github.com/onflow/crypto:
110+
config:
111+
dir: "module/mock"
112+
interfaces:
113+
PublicKey:

AGENTS.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,21 @@ This file provides guidance to AI Agents when working with code in this reposito
5151
5252
### Code Quality and Generation
5353
- `make lint` - Run linter (includes tidy and custom checks)
54-
- `make lint -e LINT_PATH=./path/to/lint/...` - Run linter for a specific module
54+
- `make fix-new` - Run linter for files changed since master
5555
- `make fix-lint` - Automatically fix linting issues
56+
- `make fix-lint-new` - Automatically fix linting issues for files changed since master
57+
- `make fix-imports` - Automatically fix imports
58+
- `make fix-imports-new` - Automatically fix imports for files changed since master
59+
- `make vet` - Run go vet
60+
- `make vet-new` - Run go vet for files changed since master
5661
- `make generate` - Run all code generators (proto, mocks, fvm wrappers)
5762
- `make generate-mocks` - Generate mocks for unit tests
5863
- `make generate-proto` - Generate protobuf stubs
5964
- `make tidy` - Run go mod tidy
6065
66+
`lint`, `vet`, `fix-lint`, and `fix-imports` support passing `LINT_PATH`, which sets the path used by golangci-lint
67+
- `make lint -e LINT_PATH=./path/to/lint/...` - Run linter for a specific module
68+
6169
### Dependency Management
6270
- `make install-tools` - Install all required development tools
6371
- `make install-mock-generators` - Install mock generation tools

0 commit comments

Comments
 (0)