Repository navigation
Merge main into feature/full-history (2026-09-04) #979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
79d1ed1
add socket tier 1 reachability analysis
kanwalpreetd 41b2f0f
ci: registration stub for the bench-campaign dispatch workflow (#922)
marwen-abid c86b292
Optimize backfill (#854)
cjonas9 e3627ca
Bump P28 core package and image to 28.0.0-3494.a9b861321 (#927)
Shaptic 39080fb
Bump grpc to v1.79.3 and install stellar-core without Recommends (#928)
Shaptic cd243c5
ci: pin the GA stellar-core docker image for the v28.0.0 release
Shaptic 9758b75
CHANGELOG: cover the commits main gained after the release branch was…
Shaptic e29c911
Pin go-stellar-sdk v0.7.2 for the v28.0.0 release
Shaptic ca47579
Merge pull request #929 from stellar/release/v28.0.0
Shaptic 58cdd33
Add GetLedgerRaw to LedgerReader, use in getLatestLedger handler (#941)
cjonas9 93fb51d
socket-scan: address review comments
kanwalpreetd 1dc7b2d
Merge branch 'main' into main
kanwalpreetd e3e5a3c
Bump grpc, go-jose and opentelemetry to latest (#958)
Shaptic 273f19e
Point integration tests at stellar-core 28.0.1 stable (#957)
karthikiyer56 ba6b5f6
Merge branch 'main' into release/v28.0.1
karthikiyer56 9c13d41
Merge pull request #829 from kanwalpreetd/main
kanwalpreetd 7b2f73b
Merge branch 'main' into release/v28.0.1
karthikiyer56 1ec5abe
Merge pull request #966 from stellar/release/v28.0.1
karthikiyer56 993efe8
Merge origin/main into feature/full-history
karthikiyer56 a448bd8
docker: drop the stale 22.04 notes from both Dockerfiles
karthikiyer56 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| name: Bench campaign (EC2) | ||
| # Registration stub. GitHub only lists a workflow_dispatch workflow once a file | ||
| # exists at this path on the default branch; the real bench-campaign workflow | ||
| # lives on feature/full-history until that branch merges. | ||
| # The inputs mirror the real workflow's so the dispatch form renders the same | ||
| # fields either way. | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| phase: | ||
| description: 'Pacing phase (selects close_interval + the dataset profiles)' | ||
| required: true | ||
| type: choice | ||
| options: ['1', '2', '3'] | ||
| ingest: | ||
| description: 'Which ingest benchmarks to run' | ||
| required: false | ||
| type: choice | ||
| default: both | ||
| options: [both, cold, hot, none] | ||
| query: | ||
| description: 'Run the query suites after ingest' | ||
| required: false | ||
| type: choice | ||
| default: 'no' | ||
| options: ['no', 'yes'] | ||
| runs: | ||
| description: 'Repetitions per (dataset, chunk) cell' | ||
| required: false | ||
| type: string | ||
| default: '1' | ||
| workers: | ||
| description: 'bench-ingest cold --workers (empty = the per-machine default)' | ||
| required: false | ||
| type: string | ||
| default: '' | ||
| machine: | ||
| description: 'Box size: 2x = m6id.2xlarge, 8x = c6id.8xlarge' | ||
| required: false | ||
| type: choice | ||
| default: 2x | ||
| options: [2x, 8x] | ||
| ref: | ||
| description: 'stellar-rpc ref to benchmark (resolved on the box, not here)' | ||
| required: false | ||
| type: string | ||
| default: feature/full-history | ||
| hot_num_ledgers: | ||
| description: 'Cap the hot ingest at N ledgers (0 = the whole chunk); shortens a smoke run' | ||
| required: false | ||
| type: string | ||
| default: '0' | ||
| run_name: | ||
| description: 'Campaign name (empty = phase<N>-<machine>)' | ||
| required: false | ||
| type: string | ||
| default: '' | ||
| benchmarks_ref: | ||
| description: 'stellar-rpc-benchmarks ref the box runs the campaign from' | ||
| required: false | ||
| type: string | ||
| default: main | ||
|
|
||
| jobs: | ||
| stub: | ||
| name: Registration stub | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 1 | ||
| steps: | ||
| - run: | | ||
| echo "::error::this ref carries only the registration stub — re-run the dispatch with a branch that has the real bench-campaign workflow (feature/full-history)" | ||
| exit 1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| # Socket reachability scan for stellar-rpc. | ||
| # For general Socket reachability documentation, see https://docs.socket.dev/docs/full-application-reachability | ||
| # Multi-eco: Go (root go.mod) + Rust (Cargo workspace and/or sub-Cargos). | ||
| # | ||
| # Schedule: Sun 22:00 UTC weekly. Use workflow_dispatch to run on demand. | ||
| # | ||
| # ============================================================================ | ||
| # Socket scan — reading the job status. (The scan step below produces this: an | ||
| # exit code + an optional ::warning:: annotation, which GitHub Actions renders | ||
| # as the job's state.) | ||
| # ============================================================================ | ||
| # GREEN (exit 0, no warning): scan completed and every analyzed vulnerability | ||
| # got full Tier 1 reachability (precise, your-code-aware). Nothing to do. | ||
| # YELLOW (exit 0 + "::warning:: Socket scan completed with Tier 2 fallbacks"): | ||
| # scan completed, but Tier 1 could NOT be computed for some/all | ||
| # vulnerabilities, which fell back to Tier 2 (precomputed) reachability. | ||
| # You still get CVE detection + Tier 2 results, just reduced precision | ||
| # for the affected CVEs. The job is NOT failing. | ||
| # RED (non-zero exit): scan did not complete. Do not assume any part | ||
| # succeeded — could be reachability hard-failing, a missing language | ||
| # toolchain, the runner out of memory, a network/API error, or even the | ||
| # underlying CVE/SBOM detection failing. Check the logs and fix before | ||
| # relying on results. | ||
| # ============================================================================ | ||
|
|
||
| name: Socket reachability scan | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 22 * * 0' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| socket-scan: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| - run: rustup update | ||
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | ||
| with: | ||
| go-version-file: go.mod | ||
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | ||
| with: | ||
| node-version: "24.18.0" | ||
|
|
||
| - name: Install Socket CLI | ||
| run: npm install -g socket | ||
|
|
||
| - name: Run Socket reachability scan | ||
| env: | ||
| SOCKET_SECURITY_API_TOKEN: ${{ secrets.SOCKET_SECURITY_API_TOKEN }} | ||
| run: | | ||
| # Stream the scan output through tee so the run log captures it AND | ||
| # we can grep it for Tier-2-fallback markers; capture the scan's | ||
| # exit code via ${PIPESTATUS[0]} (tee always exits 0). If the scan | ||
| # succeeded but logged a Tier 2 fallback, emit a ::warning:: | ||
| # annotation that GitHub Actions renders as a yellow run-level | ||
| # warning without failing the job. | ||
| set +e | ||
| socket scan create --reach \ | ||
| --org=stellar \ | ||
| --no-interactive \ | ||
| --reach-continue-on-no-source-files \ | ||
| --reach-continue-on-analysis-errors \ | ||
| --reach-continue-on-install-errors \ | ||
| --reach-continue-on-missing-lock-files \ | ||
| . 2>&1 | tee /tmp/scan.log | ||
| rc=${PIPESTATUS[0]} | ||
| 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 | ||
| echo "::warning::Socket scan completed with Tier 2 fallbacks - some vulnerabilities used precomputed reachability instead of full Tier 1" | ||
| fi | ||
| exit $rc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.