Skip to content

Commit 7cfee51

Browse files
committed
Fix conflicts
2 parents b9660bf + 8a7c6b0 commit 7cfee51

File tree

130 files changed

+8006
-1637
lines changed

Some content is hidden

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

130 files changed

+8006
-1637
lines changed

.github/actions/build-clio/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
using: composite
1515
steps:
1616
- name: Get number of processors
17-
uses: XRPLF/actions/.github/actions/get-nproc@046b1620f6bfd6cd0985dc82c3df02786801fe0a
17+
uses: XRPLF/actions/get-nproc@cf0433aa74563aead044a1e395610c96d65a37cf
1818
id: nproc
1919
with:
2020
subtract: ${{ inputs.nproc_subtract }}

.github/actions/build-docker-image/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ runs:
5050
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
5151
with:
5252
cache-image: false
53-
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
53+
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
5454

55-
- uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5.9.0
55+
- uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
5656
id: meta
5757
with:
5858
images: ${{ inputs.images }}

.github/actions/cmake/action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ inputs:
3737
description: Whether to generate Debian package
3838
required: true
3939
default: "false"
40+
version:
41+
description: Version of the clio_server binary
42+
required: false
43+
default: ""
4044

4145
runs:
4246
using: composite
@@ -57,6 +61,19 @@ runs:
5761
STATIC: "${{ inputs.static == 'true' && 'ON' || 'OFF' }}"
5862
TIME_TRACE: "${{ inputs.time_trace == 'true' && 'ON' || 'OFF' }}"
5963
PACKAGE: "${{ inputs.package == 'true' && 'ON' || 'OFF' }}"
64+
# GitHub creates a merge commit for a PR
65+
# https://www.kenmuse.com/blog/the-many-shas-of-a-github-pull-request/
66+
#
67+
# We:
68+
# - explicitly provide branch name
69+
# - use `github.head_ref` to get the SHA of last commit in the PR branch
70+
#
71+
# This way it works both for PRs and pushes to branches.
72+
GITHUB_BRANCH_NAME: "${{ github.head_ref || github.ref_name }}"
73+
GITHUB_HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
74+
#
75+
# If tag is being pushed, or it's a nightly release, we use that version.
76+
FORCE_CLIO_VERSION: ${{ inputs.version }}
6077
run: |
6178
cmake \
6279
-B "${BUILD_DIR}" \

.github/actions/code-coverage/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
-j8 --exclude-throw-branches
2525
2626
- name: Archive coverage report
27-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
27+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
2828
with:
2929
name: coverage-report.xml
3030
path: build/coverage_report.xml

.github/actions/conan/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ inputs:
2121
runs:
2222
using: composite
2323
steps:
24-
- name: Create build directory
25-
shell: bash
26-
run: mkdir -p "${{ inputs.build_dir }}"
27-
2824
- name: Run conan
2925
shell: bash
3026
env:

.github/scripts/conan/generate_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
LINUX_OS = ["heavy", "heavy-arm64"]
66
LINUX_CONTAINERS = [
7-
'{ "image": "ghcr.io/xrplf/clio-ci:067449c3f8ae6755ea84752ea2962b589fe56c8f" }'
7+
'{ "image": "ghcr.io/xrplf/clio-ci:14342e087ceb8b593027198bf9ef06a43833c696" }'
88
]
99
LINUX_COMPILERS = ["gcc", "clang"]
1010

.github/scripts/conan/init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ mkdir -p "$PROFILES_DIR"
4040

4141
if [[ "$(uname)" == "Darwin" ]]; then
4242
create_profile_with_sanitizers "apple-clang" "$APPLE_CLANG_PROFILE"
43-
echo "include(apple-clang)" > "$PROFILES_DIR/default"
43+
echo "include(apple-clang)" >"$PROFILES_DIR/default"
4444
else
4545
create_profile_with_sanitizers "clang" "$CLANG_PROFILE"
4646
create_profile_with_sanitizers "gcc" "$GCC_PROFILE"
47-
echo "include(gcc)" > "$PROFILES_DIR/default"
47+
echo "include(gcc)" >"$PROFILES_DIR/default"
4848
fi
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
TEMP_DIR=$(mktemp -d)
6+
trap "rm -rf $TEMP_DIR" EXIT
7+
8+
echo "Using temporary CONAN_HOME: $TEMP_DIR"
9+
10+
# We use a temporary Conan home to avoid polluting the user's existing Conan
11+
# configuration and to not use local cache (which leads to non-reproducible lockfiles).
12+
export CONAN_HOME="$TEMP_DIR"
13+
14+
# Ensure that the xrplf remote is the first to be consulted, so any recipes we
15+
# patched are used. We also add it there to not created huge diff when the
16+
# official Conan Center Index is updated.
17+
conan remote add --force --index 0 xrplf https://conan.ripplex.io
18+
19+
# Delete any existing lockfile.
20+
rm -f conan.lock
21+
22+
# Create a new lockfile that is compatible with macOS.
23+
# It should also work on Linux.
24+
conan lock create . \
25+
--profile:all=.github/scripts/conan/apple-clang-17.profile

.github/scripts/execute-tests-under-sanitizer.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fi
2222
TEST_BINARY=$1
2323

2424
if [[ ! -f "$TEST_BINARY" ]]; then
25-
echo "Test binary not found: $TEST_BINARY"
26-
exit 1
25+
echo "Test binary not found: $TEST_BINARY"
26+
exit 1
2727
fi
2828

2929
TESTS=$($TEST_BINARY --gtest_list_tests | awk '/^ / {print suite $1} !/^ / {suite=$1}')
@@ -35,12 +35,12 @@ export TSAN_OPTIONS="die_after_fork=0"
3535
export MallocNanoZone='0' # for MacOSX
3636

3737
for TEST in $TESTS; do
38-
OUTPUT_FILE="$OUTPUT_DIR/${TEST//\//_}.log"
39-
$TEST_BINARY --gtest_filter="$TEST" > "$OUTPUT_FILE" 2>&1
40-
41-
if [ $? -ne 0 ]; then
42-
echo "'$TEST' failed a sanitizer check."
43-
else
44-
rm "$OUTPUT_FILE"
45-
fi
38+
OUTPUT_FILE="$OUTPUT_DIR/${TEST//\//_}.log"
39+
$TEST_BINARY --gtest_filter="$TEST" >"$OUTPUT_FILE" 2>&1
40+
41+
if [ $? -ne 0 ]; then
42+
echo "'$TEST' failed a sanitizer check."
43+
else
44+
rm "$OUTPUT_FILE"
45+
fi
4646
done

.github/scripts/prepare-release-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ for artifact_name in $(ls); do
2020
rm "${artifact_name}/${BINARY_NAME}"
2121
rm -r "${artifact_name}"
2222

23-
sha256sum "./${artifact_name}.zip" > "./${artifact_name}.zip.sha256sum"
23+
sha256sum "./${artifact_name}.zip" >"./${artifact_name}.zip.sha256sum"
2424
done

0 commit comments

Comments
 (0)