Skip to content

Commit a19cbb1

Browse files
committed
Merge branch 'main' into 20371-hash-virtual-leaves-as-valid-block-items
# Conflicts: # hedera-state-validator/src/main/java/com/hedera/statevalidation/validators/merkledb/ValidateLeafIndexHalfDiskHashMap.java
2 parents b92c286 + 0aff89d commit a19cbb1

File tree

115 files changed

+4328
-847
lines changed

Some content is hidden

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

115 files changed

+4328
-847
lines changed

.github/workflows/support/scripts/loki-logs.sh

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/support/scripts/nightly.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
5+
# ANSI Colors
6+
#
7+
readonly RED=$'\e[31m'
8+
readonly GREEN=$'\e[32m'
9+
readonly RESET=$'\e[0m'
10+
11+
# Logging
12+
#
13+
log() { printf '%b[%s]%b %s\n' "$2" "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" "$RESET" "$1"; }
14+
die() { log "$*" "$RED"; exit "${2:-1}"; }
15+
16+
# Usage
17+
#
18+
Usage() {
19+
cat <<EOF
20+
Usage: $0 <build-tag> <version-service>
21+
22+
Environment variables required:
23+
USERNAME Jenkins user
24+
PASSWORD Jenkins token
25+
SERVER Jenkins base URL (https://jenkins.example.com)
26+
EOF
27+
}
28+
29+
# Preflight Checks
30+
#
31+
[[ $# -eq 2 ]] || Usage
32+
[[ -v USERNAME && -n ${USERNAME} ]] || die "USERNAME not set" 2
33+
[[ -v PASSWORD && -n ${PASSWORD} ]] || die "PASSWORD not set" 2
34+
[[ -v SERVER && -n ${SERVER} ]] || die "SERVER not set" 2
35+
36+
readonly BUILD_TAG=${1}
37+
readonly VERSION_SERVICE=${2}
38+
readonly USERPASSWORD="${USERNAME}:${PASSWORD}"
39+
40+
command -v curl >/dev/null || die "❌ curl is not installed"
41+
command -v mktemp >/dev/null || die "❌ mktemp is not available"
42+
43+
# Jenkins CSRF crumbs
44+
#
45+
COOKIEJAR="$(mktemp -t cookies.XXXXXXXXX)"
46+
trap 'rm -f "${COOKIEJAR}"' EXIT INT TERM HUP
47+
48+
CRUMB=$(curl --no-progress-meter -f -u "${USERPASSWORD}" --cookie-jar "${COOKIEJAR}" \
49+
"${SERVER}/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,%22:%22,//crumb)") \
50+
|| die "❌ Error: Failed to fetch Jenkins crumb" 3
51+
52+
# Start Jenkins Job
53+
#
54+
curl --no-progress-meter -f -X POST -u "$USERPASSWORD" --cookie "$COOKIEJAR" \
55+
-H "${CRUMB:?Missing CRUMB header}" \
56+
-F "BUILD_TAG=${BUILD_TAG}" \
57+
-F "VERSION_SERVICE=${VERSION_SERVICE}" \
58+
"${SERVER}/job/nightly/job/sdct/buildWithParameters" \
59+
|| die "❌ Error: Canonical Test failed to start for [${BUILD_TAG}] [${VERSION_SERVICE}]" 4
60+
61+
log "✅ Canonical test started for [${BUILD_TAG}] [${VERSION_SERVICE}]" "$GREEN"
62+
63+
exit 0

.github/workflows/zxcron-promote-build-candidate.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,14 @@ jobs:
166166
"ref": "${{ needs.promote-build-candidate.outputs.build-candidate-tag }}"
167167
}'
168168

169-
- name: "Trigger ZXF: [CITR] Single Day Longevity Test (SDLT)"
169+
- name: "Trigger ZXF: [CITR] Single Day Canonical Test (SDCT)"
170170
uses: step-security/workflow-dispatch@b4c1dc0afa074d0b4f0e653d3b80d4b2798599aa # v1.2.7
171171
with:
172-
workflow: .github/workflows/zxf-single-day-longevity-test.yaml
172+
workflow: .github/workflows/zxf-single-day-canonical-test.yaml
173173
repo: hiero-ledger/hiero-consensus-node # ensure we are executing in the hiero-ledger org
174174
ref: main # ensure we are always using the workflow definition from the main branch
175175
token: ${{ secrets.GH_ACCESS_TOKEN }}
176176
inputs: '{
177-
"ref": "${{ needs.promote-build-candidate.outputs.build-candidate-tag }}",
178177
"build-tag": "${{ needs.promote-build-candidate.outputs.build-candidate-tag }}"
179178
}'
180179

0 commit comments

Comments
 (0)