You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit af2c821
Browse filesBrowse the repository at this point in the historyBrowse files
Brings overlay-v2-shared up to date with master. The previous master
merge (b90d48e, stellar#5428) was recorded with master's tip 100cc38 missing
from its parents, so this merge used 100cc38 as its base (temporary
graft of b90d48e, removed afterwards).
Notable master changes brought in:
- Protocol 30: CURRENT_LEDGER_PROTOCOL_VERSION follows
MAX_SUPPORTED_PROTOCOL_VERSION; CAP-0084 and CAP-0087 ungated, p29 and
p30 Soroban hosts (stellar#5472, stellar#5478, stellar#5484, stellar#5483).
- Millisecond-resolution close times at protocol 30 (stellar#5423):
ConsensusTime/ApplyTime types, STELLAR_VALUE_SIGNED_MS and
STELLAR_VALUE_EMPTY_TX_SET_MS.
- Tx set validity hardening (stellar#5481), lower max message size in protocol
29 (stellar#733), sub-second ledger edge-case fixes.
- Simplified ledger view hierarchy (stellar#5461); the overlay-only-mode
sequence number skip now lives in TransactionFrame::checkValid.
- Banned accounts deprecated (CAP-0077 is active).
- Apply-path performance work (stellar#5402, stellar#5411, stellar#5414, stellar#5415, stellar#5418, stellar#5421,
stellar#5436, stellar#5286), apply-load tx set construction mode (stellar#5448), --check-lcm
(stellar#5435), v29.0.0 release merge.
Conflict resolution:
- Files overlay-v2-shared deleted and master modified (the C++ overlay,
TransactionQueue, TransactionQueueTests, UpgradesTests, private/Horizon/RPC
workflows): kept deleted. Master's changes to them are C++ overlay
peer/flow-control logic, tx queue admission and tests for those.
- Herder: kept the Rust-overlay submission path (recvTransaction returns
TxSubmitStatus) and dropped the deprecated `force` parameter as master did.
triggerNextLedger keeps the prepared/built tx set path from the Rust
mempool, now with ConsensusTime close times and master's apply-time
close-time offset. The early tx set preparation path (prepareTxSet,
buildTxSet, setupTriggerNextLedger) takes ConsensusTime. Kept master's
mNominatedTxSetOverride test hook (applied before the tx set is cached in
the Rust overlay) and the herder.txset.build timer (now timing
buildTxSet). Dropped the banned-accounts setup and tx queue maintenance.
- AppConnector: dropped both ov2's maybeUpdateImmutableLedgerView and
master's C++-overlay getOverlayThreadSnapshot.
- LoadGenerator: master's CachedTestAccountPtr with ov2's TxSubmitStatus.
- Tests: kept ov2's removal of tests that need the C++ overlay, standalone
mode or the tx queue (standalone, manualclose, flooding, tx queue limits,
far-future slot cleanup, herderExternalizesValuesWithProtocol, MAX_SAC_TPS,
custom token, soroswap and noisy binary search apply-load tests). Added
master's ms close time HerderTests and the non-canonical empty tx set test
on ov2's Rust-overlay topologies. The tx set size test checks against
overlay-v2's own tx set allowance. The sub-second
getUpperBoundCloseTimeOffset test checks the offset directly, since there
is no C++ tx queue admission. Tests that used CheckValidLedgerViewWrapper
now use getLCLView().
- Cargo.lock: master's lockfile plus the overlay crate's packages,
regenerated by cargo; semver-compatible duplicates take the newer
version.
- Build: Makefile.am keeps the Rust overlay rules and adds tracy
import-chrome; ci-build.sh keeps ASAN off and takes master's -g1.
- Needed to compile: PendingEnvelopes.cpp includes LedgerManager.h
(master got it through the C++ OverlayManager.h); ov2's early-nomination
and checkpoint-slot tests use ConsensusTime/ApplyTimeOffset; OverlayIPC
tests take ledger views from the LedgerManager.
git commit -qam "Bump OVERLAY_PROTOCOL_MIN_VERSION to $MIN" \
72
+
-m "Pubnet is on protocol $PROTOCOL, and no release supporting it has an overlay version below $MIN."
73
+
git push -f origin "$BRANCH"
74
+
75
+
BODY="$RUNNER_TEMP/body.md"
76
+
{
77
+
echo "Pubnet is on protocol $PROTOCOL, and no release supporting it has an overlay version below $MIN, so this raises \`OVERLAY_PROTOCOL_MIN_VERSION\` to $MIN. Opened by the \`${{ github.workflow }}\` workflow."
78
+
echo
79
+
echo "**Reviewer:** before merging, verify that pubnet is on protocol $PROTOCOL and that every release supporting it, including any not tagged in this repo, has \`OVERLAY_PROTOCOL_VERSION\` of at least $MIN. Nodes below $MIN will be disconnected."
80
+
echo
81
+
echo '```'
82
+
cat "$RUNNER_TEMP/check.txt"
83
+
echo '```'
84
+
} > "$BODY"
85
+
if [ -z "$OPEN_PR" ]
86
+
then
87
+
gh pr create --base "$BASE" --head "$BRANCH" \
88
+
--title "Bump OVERLAY_PROTOCOL_MIN_VERSION to $MIN" --body-file "$BODY"
89
+
else
90
+
gh pr edit "$OPEN_PR" \
91
+
--title "Bump OVERLAY_PROTOCOL_MIN_VERSION to $MIN" --body-file "$BODY"
# --reach-ecosystems=cargo,pypi explicitly lists the ecosystems that get full Tier 1 reachability analysis. This repo's Coana-supported ecosystems are cargo (Cargo.toml) and pypi (scripts/pyproject.toml). The explicit list also excludes Coana's phantom NUGET detection: the repo has Builds/VisualStudio/stellar-core.sln (no actual C# code), which Coana otherwise mis-detects as a .NET project and aborts the scan demanding `dotnet`. Listing only cargo,pypi sidesteps that.
6
+
#
7
+
# >>> DEVELOPERS: if this repo adds a NEW Coana-supported ecosystem (e.g. an >>> npm package.json, a go.mod, a Gemfile), you MUST add that ecosystem to >>> this --reach-ecosystems list to get full Tier 1 reachability for it. >>> Supported ecosystem names: npm, pypi, cargo, golang, maven, gem, nuget. >>> Ecosystems NOT listed here still receive Tier 2 (precomputed) >>> reachability from Socket's backend automatically — but Tier 1 (the more >>> precise, your-code-aware analysis) only runs for the ecosystems listed.
8
+
#
9
+
# Schedule: Sun 12:24 UTC weekly. Use workflow_dispatch to run on demand.
# Stream the scan output through tee so the run log captures it AND
73
+
# we can grep it for Tier-2-fallback markers; capture the scan's
74
+
# exit code via ${PIPESTATUS[0]} (tee always exits 0). If the scan
75
+
# succeeded but logged a Tier 2 fallback, emit a ::warning::
76
+
# annotation that GitHub Actions renders as a yellow run-level
77
+
# warning without failing the job.
78
+
set +e
79
+
socket scan create --reach \
80
+
--org=stellar \
81
+
--no-interactive \
82
+
--reach-continue-on-no-source-files \
83
+
--reach-continue-on-analysis-errors \
84
+
--reach-continue-on-install-errors \
85
+
--reach-continue-on-missing-lock-files \
86
+
--reach-ecosystems=cargo,pypi \
87
+
. 2>&1 | tee /tmp/scan.log
88
+
rc=${PIPESTATUS[0]}
89
+
if [ $rc -eq 0 ] && grep -qE "Reachability falls back to Tier 2|fallback to the results from the pre-computed|Reachability falls back to precomputed" /tmp/scan.log; then
90
+
echo "::warning::Socket scan completed with Tier 2 fallbacks - some vulnerabilities used precomputed reachability instead of full Tier 1"
0 commit comments