Skip to content

Commit 037fec2

Browse files
committed
Merge branch 'develop' into peer
2 parents 5288dc3 + e3ebc25 commit 037fec2

File tree

1,061 files changed

+17446
-7276
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,061 files changed

+17446
-7276
lines changed

.clang-format

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ DerivePointerAlignment: false
4444
DisableFormat: false
4545
ExperimentalAutoDetectBinPacking: false
4646
ForEachMacros: [ Q_FOREACH, BOOST_FOREACH ]
47+
IncludeBlocks: Regroup
4748
IncludeCategories:
4849
- Regex: '^<(test)/'
4950
Priority: 0
@@ -53,8 +54,12 @@ IncludeCategories:
5354
Priority: 2
5455
- Regex: '^<(boost)/'
5556
Priority: 3
56-
- Regex: '.*'
57+
- Regex: '^.*/'
5758
Priority: 4
59+
- Regex: '^.*\.h'
60+
Priority: 5
61+
- Regex: '.*'
62+
Priority: 6
5863
IncludeIsMainRegex: '$'
5964
IndentCaseLabels: true
6065
IndentFunctionDeclarationAfterType: false
@@ -89,3 +94,4 @@ SpacesInSquareBrackets: false
8994
Standard: Cpp11
9095
TabWidth: 8
9196
UseTab: Never
97+
QualifierAlignment: Right

.github/CODEOWNERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Allow anyone to review any change by default.
2+
*
3+
4+
# Require the rpc-reviewers team to review changes to the rpc code.
5+
include/libxrpl/protocol/ @xrplf/rpc-reviewers
6+
src/libxrpl/protocol/ @xrplf/rpc-reviewers
7+
src/xrpld/rpc/ @xrplf/rpc-reviewers
8+
src/xrpld/app/misc/ @xrplf/rpc-reviewers

.github/actions/dependencies/action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
run: |
1515
conan config set general.revisions_enabled=1
1616
conan export external/snappy snappy/1.1.10@
17-
conan export external/rocksdb rocksdb/6.29.5@
17+
conan export external/rocksdb rocksdb/9.7.3@
1818
conan export external/soci soci/4.0.3@
1919
conan export external/nudb nudb/2.0.8@
2020
- name: add Ripple Conan remote
@@ -55,7 +55,3 @@ runs:
5555
--options xrpld=True \
5656
--settings build_type=${{ inputs.configuration }} \
5757
..
58-
- name: upload dependencies to remote
59-
if: (steps.binaries.outputs.missing != '[]') && (steps.remote.outputs.outcome == 'success')
60-
shell: bash
61-
run: conan upload --remote ripple '*' --all --parallel --confirm

.github/workflows/clang-format.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: clang-format
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, reopened, synchronize, ready_for_review]
47

58
jobs:
69
check:
10+
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
711
runs-on: ubuntu-24.04
812
env:
913
CLANG_VERSION: 18
@@ -20,7 +24,7 @@ jobs:
2024
sudo apt-get update
2125
sudo apt-get install clang-format-${CLANG_VERSION}
2226
- name: Format first-party sources
23-
run: find include src -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.ipp' \) -exec clang-format-${CLANG_VERSION} -i {} +
27+
run: find include src tests -type f \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.ipp' \) -exec clang-format-${CLANG_VERSION} -i {} +
2428
- name: Check for differences
2529
id: assert
2630
run: |

.github/workflows/doxygen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: write
17-
container: rippleci/rippled-build-ubuntu:aaf5e3e
17+
container: ghcr.io/xrplf/rippled-build-ubuntu:aaf5e3e
1818
steps:
1919
- name: checkout
2020
uses: actions/checkout@v4

.github/workflows/levelization.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: levelization
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, reopened, synchronize, ready_for_review]
47

58
jobs:
69
check:
10+
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
711
runs-on: ubuntu-latest
812
env:
913
CLANG_VERSION: 10

.github/workflows/libxrpl.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ on:
88
paths:
99
- 'src/libxrpl/protocol/BuildInfo.cpp'
1010
- '.github/workflows/libxrpl.yml'
11+
types: [opened, reopened, synchronize, ready_for_review]
1112
concurrency:
1213
group: ${{ github.workflow }}-${{ github.ref }}
1314
cancel-in-progress: true
1415

1516
jobs:
1617
publish:
18+
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
1719
name: Publish libXRPL
1820
outputs:
1921
outcome: ${{ steps.upload.outputs.outcome }}
2022
version: ${{ steps.version.outputs.version }}
2123
channel: ${{ steps.channel.outputs.channel }}
2224
runs-on: [self-hosted, heavy]
23-
container: rippleci/rippled-build-ubuntu:aaf5e3e
25+
container: ghcr.io/xrplf/rippled-build-ubuntu:aaf5e3e
2426
steps:
2527
- name: Wait for essential checks to succeed
2628
uses: lewagon/wait-on-check-action@v1.3.4
@@ -85,4 +87,5 @@ jobs:
8587
run: |
8688
gh api --method POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
8789
/repos/xrplf/clio/dispatches -f "event_type=check_libxrpl" \
88-
-F "client_payload[version]=${{ needs.publish.outputs.version }}@${{ needs.publish.outputs.channel }}"
90+
-F "client_payload[version]=${{ needs.publish.outputs.version }}@${{ needs.publish.outputs.channel }}" \
91+
-F "client_payload[pr]=${{ github.event.pull_request.number }}"

.github/workflows/macos.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: macos
22
on:
33
pull_request:
4+
types: [opened, reopened, synchronize, ready_for_review]
45
push:
56
# If the branches list is ever changed, be sure to change it on all
67
# build/test jobs (nix, macos, windows, instrumentation)
@@ -18,6 +19,7 @@ concurrency:
1819
jobs:
1920

2021
test:
22+
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
2123
strategy:
2224
matrix:
2325
platform:
@@ -73,7 +75,6 @@ jobs:
7375
run : |
7476
conan profile new default --detect || true
7577
conan profile update settings.compiler.cppstd=20 default
76-
conan profile update 'conf.tools.build:cxxflags+=["-DBOOST_ASIO_DISABLE_CONCEPTS"]' default
7778
- name: build dependencies
7879
uses: ./.github/actions/dependencies
7980
env:
@@ -88,8 +89,9 @@ jobs:
8889
generator: ${{ matrix.generator }}
8990
configuration: ${{ matrix.configuration }}
9091
cmake-args: "-Dassert=TRUE -Dwerr=TRUE ${{ matrix.cmake-args }}"
91-
- name: test
92-
run: |
93-
n=$(nproc)
94-
echo "Using $n test jobs"
95-
${build_dir}/rippled --unittest --unittest-jobs $n
92+
# TODO: Temporary disabled tests
93+
# - name: test
94+
# run: |
95+
# n=$(nproc)
96+
# echo "Using $n test jobs"
97+
# ${build_dir}/rippled --unittest --unittest-jobs $n

.github/workflows/nix.yml

Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: nix
22
on:
33
pull_request:
4+
types: [opened, reopened, synchronize, ready_for_review]
45
push:
56
# If the branches list is ever changed, be sure to change it on all
67
# build/test jobs (nix, macos, windows)
@@ -39,6 +40,7 @@ concurrency:
3940

4041
jobs:
4142
dependencies:
43+
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
4244
strategy:
4345
fail-fast: false
4446
matrix:
@@ -62,7 +64,7 @@ jobs:
6264
cc: /usr/bin/clang-14
6365
cxx: /usr/bin/clang++-14
6466
runs-on: [self-hosted, heavy]
65-
container: rippleci/rippled-build-ubuntu:aaf5e3e
67+
container: ghcr.io/xrplf/rippled-build-ubuntu:aaf5e3e
6668
env:
6769
build_dir: .build
6870
steps:
@@ -124,7 +126,61 @@ jobs:
124126
- "-Dunity=ON"
125127
needs: dependencies
126128
runs-on: [self-hosted, heavy]
127-
container: rippleci/rippled-build-ubuntu:aaf5e3e
129+
container: ghcr.io/xrplf/rippled-build-ubuntu:aaf5e3e
130+
env:
131+
build_dir: .build
132+
steps:
133+
- name: upgrade conan
134+
run: |
135+
pip install --upgrade "conan<2"
136+
- name: download cache
137+
uses: actions/download-artifact@v4
138+
with:
139+
name: ${{ matrix.platform }}-${{ matrix.compiler }}-${{ matrix.configuration }}
140+
- name: extract cache
141+
run: |
142+
mkdir -p ~/.conan
143+
tar -xzf conan.tar -C ~/.conan
144+
- name: check environment
145+
run: |
146+
env | sort
147+
echo ${PATH} | tr ':' '\n'
148+
conan --version
149+
cmake --version
150+
- name: checkout
151+
uses: actions/checkout@v4
152+
- name: dependencies
153+
uses: ./.github/actions/dependencies
154+
env:
155+
CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
156+
with:
157+
configuration: ${{ matrix.configuration }}
158+
- name: build
159+
uses: ./.github/actions/build
160+
with:
161+
generator: Ninja
162+
configuration: ${{ matrix.configuration }}
163+
cmake-args: "-Dassert=TRUE -Dwerr=TRUE ${{ matrix.cmake-args }}"
164+
- name: test
165+
run: |
166+
${build_dir}/rippled --unittest --unittest-jobs $(nproc)
167+
168+
reference-fee-test:
169+
strategy:
170+
fail-fast: false
171+
matrix:
172+
platform:
173+
- linux
174+
compiler:
175+
- gcc
176+
configuration:
177+
- Debug
178+
cmake-args:
179+
- "-DUNIT_TEST_REFERENCE_FEE=200"
180+
- "-DUNIT_TEST_REFERENCE_FEE=1000"
181+
needs: dependencies
182+
runs-on: [self-hosted, heavy]
183+
container: ghcr.io/xrplf/rippled-build-ubuntu:aaf5e3e
128184
env:
129185
build_dir: .build
130186
steps:
@@ -175,7 +231,7 @@ jobs:
175231
- Debug
176232
needs: dependencies
177233
runs-on: [self-hosted, heavy]
178-
container: rippleci/rippled-build-ubuntu:aaf5e3e
234+
container: ghcr.io/xrplf/rippled-build-ubuntu:aaf5e3e
179235
env:
180236
build_dir: .build
181237
steps:
@@ -191,7 +247,7 @@ jobs:
191247
mkdir -p ~/.conan
192248
tar -xzf conan.tar -C ~/.conan
193249
- name: install gcovr
194-
run: pip install "gcovr>=7,<8"
250+
run: pip install "gcovr>=7,<9"
195251
- name: check environment
196252
run: |
197253
echo ${PATH} | tr ':' '\n'
@@ -249,7 +305,7 @@ jobs:
249305
conan:
250306
needs: dependencies
251307
runs-on: [self-hosted, heavy]
252-
container: rippleci/rippled-build-ubuntu:aaf5e3e
308+
container: ghcr.io/xrplf/rippled-build-ubuntu:aaf5e3e
253309
env:
254310
build_dir: .build
255311
configuration: Release
@@ -288,7 +344,7 @@ jobs:
288344
echo "reference=${reference}" >> "${GITHUB_ENV}"
289345
- name: build
290346
run: |
291-
cd examples/example
347+
cd tests/conan
292348
mkdir ${build_dir}
293349
cd ${build_dir}
294350
conan install .. --output-folder . \
@@ -304,6 +360,7 @@ jobs:
304360
# later
305361

306362
instrumentation-build:
363+
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
307364
env:
308365
CLANG_RELEASE: 16
309366
strategy:

.github/workflows/windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: windows
22

33
on:
44
pull_request:
5+
types: [opened, reopened, synchronize, ready_for_review]
56
push:
67
# If the branches list is ever changed, be sure to change it on all
78
# build/test jobs (nix, macos, windows, instrumentation)
@@ -21,6 +22,7 @@ concurrency:
2122
jobs:
2223

2324
test:
25+
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
2426
strategy:
2527
fail-fast: false
2628
matrix:

0 commit comments

Comments
 (0)