Skip to content
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

lighthorizon: Sync with upstream master branch #4404

Merged
merged 114 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
995905d
services/ticker: ingest assets optimizations (#4218)
stfung77 Feb 8, 2022
78f4336
Add CHANGELOG entry for Horizon 2.14.0 release (#4208) (#4220)
2opremio Feb 9, 2022
2cce28d
Make sure we test reingestion for all possible operations (#4231)
2opremio Feb 17, 2022
b7fde58
services/horizon: Allow captive core to run with sqlite database (#4092)
Feb 17, 2022
d2521af
services/horizon: Release DB connection in /paths when no longer need…
bartekn Feb 18, 2022
f427028
services/horizon: Exclude trades with >10% rounding slippage from tra…
Feb 21, 2022
906e5bd
all: staticcheck fixes (#4239)
leighmcculloch Feb 23, 2022
2bb9ab2
Migrate Horizon integration tests to GitHub Actions (#4242)
2opremio Feb 23, 2022
e125e7b
Fix StreamAllLiquidityPools and StreamAllOffers (#4236)
tamirms Feb 24, 2022
6e8b4e5
update changelog for 2.15.0
Feb 23, 2022
8f9a595
all: run builds and tests with go1.18rc1 (#4143)
leighmcculloch Feb 24, 2022
13ea996
all: cache go module downloads and other build and test artifacts (#3…
leighmcculloch Feb 25, 2022
ee782b6
Fix typo in changelog
Feb 28, 2022
a2dab49
Merge branch 'release-horizon-v2.15.0'
Feb 28, 2022
fee9199
Merge pull request #4249 from stellar/merge-horizon-2.15.0
Feb 28, 2022
498a3b3
services/horizon: Add LedgerHashStore to Captive-Core config (#4251)
bartekn Mar 1, 2022
64d93b8
all: migrate the rest of the CircleCI jobs to GitHub Actions (#4250)
2opremio Mar 2, 2022
3bfe748
horizon: Fix GitHub action problem with verify-range push in master (…
2opremio Mar 2, 2022
d833c02
all: fix ci ref_protected check for caching (#4254)
leighmcculloch Mar 2, 2022
6788832
Add note to the changelog about write iops
Mar 4, 2022
e29c780
Adding changelog entry for 4251
Mar 4, 2022
d892615
Merge branch 'master' into release-horizon-v2.15.1
Mar 4, 2022
697ab03
Merge pull request #4258 from stellar/release-horizon-v2.15.1
Mar 4, 2022
b6a65b7
Switch over from CircleCI to GitHub A tions (#4256)
2opremio Mar 9, 2022
d8713d6
all: [GitHub actions] Reset the module and build cache in master/prot…
2opremio Mar 11, 2022
512e11a
Forgot to add sudo in #4266 (#4270)
2opremio Mar 12, 2022
9b3cb40
all: More go-setup github action fixes (#4274)
2opremio Mar 14, 2022
3d935af
xdr: add instructions for generating xdr (#4280)
leighmcculloch Mar 15, 2022
e5837ff
services/ticker: cache tomls during scraping (#4286)
leighmcculloch Mar 16, 2022
225b4ba
services/ticker: use log fields during asset ingestion (#4288)
leighmcculloch Mar 16, 2022
b45b1ba
services/ticker: reduce size of toml cache in memory (#4289)
leighmcculloch Mar 16, 2022
079fe75
historyarchive: add --skip-optional flag (#3906)
graydon Mar 18, 2022
fc8b9c8
all: Add Protocol 19 XDR and update StrKey to support Signed Payloads…
Shaptic Mar 18, 2022
b4d7327
Replace keybase with publicnode in the stellar core config (#4291)
satyamz Mar 21, 2022
81c7eec
Fix captive core tests to write to /tmp, instead of polluting the rep…
Mar 21, 2022
105173d
all: remove go1.16 add go1.18 (#4284)
leighmcculloch Mar 21, 2022
7df8601
Rename methods and functions in submission system (#4298)
2opremio Mar 21, 2022
5580e6e
Merge pull request #4299 from stellar/master
2opremio Mar 21, 2022
e2a78e0
PR feedback (#4300)
Mar 22, 2022
af1aaa0
Support new account fields for protocol-19. (#4294)
erika-sdf Mar 23, 2022
f6eca07
xdr, keypair: Add helpers to create CAP-40 decorated signatures (#4302)
Shaptic Mar 23, 2022
b6605cf
services/horizon: Update txsub queue to account for new CAP-21 precon…
2opremio Mar 24, 2022
67f991f
Uncomment StateVerifier test that generates account v3 extensions now…
erika-sdf Mar 24, 2022
649016c
txnbuild: Add support for new CAP-21 preconditions. (#4303)
Shaptic Mar 25, 2022
9fdd7ff
services/horizon: Support new CAP-21 transaction conditions (#4297)
Mar 25, 2022
6d0f666
txnbuild: Complete rename, avoid using XDR types in `TransactionParam…
Shaptic Mar 25, 2022
da091b1
all: Update Protocol 19 XDR to the latest (#4308)
Shaptic Mar 26, 2022
463d2b9
services/horizon: Add a rate limit for path finding requests. (#4310)
tamirms Mar 28, 2022
489c091
clients/horizonclient: fix multi-parameter url for claimable balance …
iateadonut Mar 28, 2022
abd5fb7
all: Fix Horizon integration tests (#4292)
2opremio Apr 1, 2022
4bdb8f3
horizon: Fix integration tests (#4314)
2opremio Apr 4, 2022
f943540
Merge pull request #4315 from stellar/master
2opremio Apr 4, 2022
b5ca7f4
horizon: Set up protocol 19 integration tests infrastructure (#4312)
2opremio Apr 4, 2022
1377c84
updated CHANGELOG with tickets for release v2.16.0
sreuland Apr 4, 2022
159ebff
all: Change outdated CircleCI build badge (#4324)
2opremio Apr 6, 2022
45b6f52
horizon: Test new protocol 19 account fields (#4322)
2opremio Apr 6, 2022
486c02f
all: update staticcheck to 2022.1 (#4326)
leighmcculloch Apr 8, 2022
f009dcb
#4305: Add integration test for extra signers using tx preconditions
sreuland Apr 11, 2022
c2e3a23
Merge branch 'release-horizon-v2.16.0' into release_2.16.0_notes
sreuland Apr 11, 2022
cc8f56d
Merge pull request #4330 from sreuland/release_2.16.0_notes
sreuland Apr 11, 2022
9a2f098
all: remove go.list and related docs (#4328)
MishraShivendra Apr 12, 2022
b9ee067
horizon: Add transaction submission test for Protocol 19 (#4327)
2opremio Apr 12, 2022
f22bc32
#4305: added integration tests for remaining preconditions
sreuland Apr 12, 2022
690705b
Horizon v2.16.1 CHANGELOG (#4333)
bartekn Apr 13, 2022
7cd3256
Merge pull request #4332 from sreuland/p19_precondition_tests
sreuland Apr 13, 2022
c2b0266
Merge remote-tracking branch 'upstream/release-horizon-v2.16.1' into …
sreuland Apr 13, 2022
3072ec4
Horizon v2.16.1 CHANGELOG (#4333) (#4336)
bartekn Apr 13, 2022
d5332a2
Revert "Pin go versions temporarily" (#4338)
bartekn Apr 13, 2022
55ab073
services/horizon: Use `bigint` over `timestamp` to accommodate large …
Shaptic Apr 14, 2022
8be872a
xdr: Update xdrgen (#4341)
Apr 15, 2022
4dd082b
services/horizon: Change `min_account_sequence_age` column from `bigi…
Shaptic Apr 15, 2022
24e64d8
Align casing with the rest of the codebase
Shaptic Apr 19, 2022
13f957a
Add changelog details and prep v10.0.0 SDK release
Shaptic Apr 19, 2022
911b0e1
Merge branch 'master' into horizon-protocol-19
Shaptic Apr 19, 2022
9f968df
Merge stellar/horizon-protocol-19 into master (#4340)
Shaptic Apr 19, 2022
fd4ae14
services/horizon: Bump stellar-core to v19.0.0rc1 for Horizon tests (…
Shaptic Apr 19, 2022
b4d5609
services/horizon: expose supported protocol version on root endpoint …
leighmcculloch Apr 20, 2022
18ab1d8
horizon: Small transaction submission refactoring (#4344)
2opremio Apr 21, 2022
ec61581
services/horizon: Pass through nil ExtraSigners to avoid nil pointer …
Shaptic Apr 21, 2022
8125679
doc: rename license file (#4350)
leighmcculloch Apr 22, 2022
229fb05
all: upgrade dep github.com/valyala/fasthttp (#4351)
leighmcculloch Apr 22, 2022
e8214f9
Promote Horizon changelog to a proper 2.17 rc
Shaptic Apr 28, 2022
c775e3c
services/horizon: Promote Stellar Core to v19.0.0 stable. (#4353)
Shaptic Apr 28, 2022
586a6a8
services/horizon/integration: Precondition edge cases and V18->19 upg…
Shaptic Apr 28, 2022
4a4eea8
xdr: Synchronizes monorepo XDR with Stellar Core (#4355)
Shaptic Apr 28, 2022
c9d3b4a
Add string conversion of new error code, txMALFORMED
Shaptic Apr 28, 2022
453586e
services/horizon: Properly allow nullable Protocol 19 account fields …
Shaptic Apr 29, 2022
d40d8fc
xdr, services/horizon: Merge Horizon v2.17.0rc1 back into master (#43…
Shaptic Apr 29, 2022
bb2eca3
services/friendbot: include txhash in logs (#4359)
leighmcculloch Apr 29, 2022
df25775
services/horizon: Improve transaction precondition `omitempty` behavi…
Shaptic Apr 29, 2022
d732775
tools/horizon-cmp: Improve panic error message (#4365)
Shaptic May 2, 2022
a384ff6
services/horizon: Merge stable v2.17.0 back into master: (#4363)
Shaptic May 2, 2022
bcbfa04
xdrgen: remove gemfile and rakefile to just use docker for the xdrgen…
May 3, 2022
32c7530
Conservatively limit the number of DB connections of integration test…
2opremio May 5, 2022
0253dce
internal/integrations: db_test should drop test db instances when fin…
sreuland May 9, 2022
429ecee
GHA: Bump Core version to v19.0.1 in Horizon workflows. (#4378)
Shaptic May 10, 2022
5c2be91
horizon: build docker image with --no-cache flag
jacekn May 11, 2022
14ebb04
services/horizon, clients/horizonclient: Allow filtering ingested tra…
sreuland May 12, 2022
6425818
Use cache by default, allow optional docker flags
jacekn May 12, 2022
80c35b1
Merge branch 'master' into cache
jacekn May 12, 2022
c58b073
Push stellar/ledger-state-diff images from Github actions (#4380)
tamirms May 12, 2022
c743549
Merge branch 'master' into cache
Shaptic May 12, 2022
3d6dedd
Merge pull request #4379 from jacekn/cache
jacekn May 16, 2022
7605a74
services/horizon: Fixes copy-paste typo in `--help` text (#4383)
Shaptic May 17, 2022
5fa5149
tools/alb-replay: Add new features to alb-replay (#4384)
2opremio May 19, 2022
156db13
services/horizon: Optimize claimable balances query to limit records …
Shaptic May 19, 2022
e96fc25
support/db, services/horizon/internal: Configure postgres client conn…
tamirms May 20, 2022
daeecfc
Refactor trade aggregation query. (#4389)
erika-sdf May 20, 2022
5a0686a
services/horizon/internal/db2/history: Implement StreamAllOffers usin…
tamirms May 24, 2022
24f2cc5
Add flag to disable path finding endpoints (#4399)
tamirms May 24, 2022
256ebdd
Merge branch 'master' into horizon-db-optimizations
2opremio May 24, 2022
e0b4d32
Update changelog
tamirms May 24, 2022
8212530
Merge pull request #4400 from stellar/horizon-db-optimizations
2opremio May 24, 2022
56ebd7e
Merge branch 'master' into lighthorizon_merge-master
Shaptic May 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
539 changes: 0 additions & 539 deletions .circleci/config.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 'Setup the Go environment'
description: 'Installs go and restores/saves the build/module cache'
inputs:
go-version:
required: true
runs:
using: "composite"
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ inputs.go-version }}
stable: ${{ !(contains(inputs.go-version, 'beta') || contains(inputs.go-version, 'rc')) }}

# Restore original modification time of files based on the date of the most
# recent commit that modified them as mtimes affect the Go test cache.
- name: Restore modification time of checkout files
shell: bash
run: |
# Set a base, fixed modification time of all directories.
# git-restore-mtime doesn't set the mtime of all directories.
# (see https://github.com/MestreLion/git-tools/issues/47 for details)
touch -m -t '201509301646' $(find . -type d -not -path '.git/*')
# Restore original modification time from git. git clone sets the
# modification time to the current time, but Go tests that access fixtures
# get invalidated if their modification times change.
sudo apt-get install -y git-restore-mtime
git restore-mtime

# The PREFIX must uniquely identify the specific instance of a job executing.
- shell: bash
run: echo 'PREFIX=${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{ inputs.go-version }}-matrix(${{ join(matrix.*,'|') }})' >> $GITHUB_ENV

# Cache the Go Modules downloaded during the job.
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ env.PREFIX }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ env.PREFIX }}-go-mod-

# Cache any build and test artifacts during the job, which will speed up
# rebuilds and cause test runs to skip tests that have no reason to rerun.
- uses: actions/cache@v2
with:
path: ~/.cache/go-build
key: ${{ env.PREFIX }}-go-build-${{ github.ref }}-${{ hashFiles('**', '!.git') }}
restore-keys: |
${{ env.PREFIX }}-go-build-${{ github.ref }}-
${{ env.PREFIX }}-go-build-

# Reset the cache for master/protected branches, to ensure they build and run the tests from zero
# and that the module cache is cleaned (otherwise it accumulates orphan dependencies over time).
- if: github.ref_protected
shell: bash
run: sudo rm -rf ~/.cache/go-build ~/go/pkg/mod
33 changes: 21 additions & 12 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.17]
go: [1.18]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v3
with:
# For pull requests, build and test the PR head not a merge of the PR with the destination.
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: ./.github/actions/setup-go
with:
go-version: ${{ matrix.go }}
- run: ./gomod.sh
Expand All @@ -29,12 +31,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.17, 1.16.7]
go: [1.17, 1.18]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v3
with:
# For pull requests, build and test the PR head not a merge of the PR with the destination.
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: ./.github/actions/setup-go
with:
go-version: ${{ matrix.go }}
- run: go build ./...
Expand All @@ -43,7 +47,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.17, 1.16.7]
go: [1.17, 1.18]
pg: [9.6.5, 10]
runs-on: ${{ matrix.os }}
services:
Expand Down Expand Up @@ -78,9 +82,14 @@ jobs:
REDIS_HOST: localhost
REDIS_PORT: 6379
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v3
with:
# For pull requests, build and test the PR head not a merge of the PR with the destination.
ref: ${{ github.event.pull_request.head.sha || github.ref }}
# We need to full history for git-restore-mtime to know what modification dates to use.
# Otherwise, the Go test cache will fail (due to the modification time of fixtures changing).
fetch-depth: '0'
- uses: ./.github/actions/setup-go
with:
go-version: ${{ matrix.go }}
- run: go test -race -cover ./...
53 changes: 53 additions & 0 deletions .github/workflows/horizon-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Horizon master

on:
push:
branches: [master]

jobs:

push-horizon-image-sha:
name: Push stellar/horizon:sha to DockerHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get image tag (short sha)
shell: bash
id: get_tag
run: echo ::set-output name=TAG::$(git rev-parse --short ${{ github.sha }} )

- name: Login to DockerHub
uses: docker/login-action@bb984efc561711aaa26e433c32c3521176eae55b
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push to DockerHub
uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b
with:
# TODO: Commented out until we disable the CircleCI jobs
# push: true
tags: stellar/horizon:${{ steps.get_tag.outputs.TAG }}
file: services/horizon/docker/Dockerfile.dev

push-state-diff-image:
name: Push stellar/ledger-state-diff:{sha,latest} to DockerHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Login to DockerHub
uses: docker/login-action@bb984efc561711aaa26e433c32c3521176eae55b
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push to DockerHub
uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b
with:
push: true
tags: stellar/ledger-state-diff:${{ github.sha }},stellar/ledger-state-diff:latest
file: exp/tools/dump-ledger-state/Dockerfile
build-args: GITCOMMIT=${{ github.sha }}
no-cache: true
40 changes: 40 additions & 0 deletions .github/workflows/horizon-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Horizon release

on:
push:
tags: ['horizon-v*']

jobs:

publish-artifacts:
runs-on: ubuntu-latest
name: Upload artifacts to GitHub release
steps:
- name: Run deprecation tests
shell: bash
run: |
export VERSION=${GITHUB_REF_NAME#horizon-v}
echo "Searching for \"Action needed in release ${VERSION}\" tags..."
# Negate the result so process exits with 1 if anything found
! egrep -irn -A 1 --include=*.go "Action.+needed.+in.+release:.+$VERSION" ./

- uses: actions/checkout@v2

- uses: ./.github/actions/setup-go
with:
go-version: 1.17

- name: Check dependencies
run: ./gomod.sh

- name: Build binaries
run: go run ./support/scripts/build_release_artifacts/main.go

- name: Upload binaries to release
uses: svenstaro/upload-release-action@483c1e56f95e88835747b1c7c60581215016cbf2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
file: ./dist/*
file_glob: true
overwrite: true
121 changes: 121 additions & 0 deletions .github/workflows/horizon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Horizon

on:
push:
branches: [master]
pull_request:

jobs:

integration:
name: Integration tests
strategy:
matrix:
os: [ubuntu-latest]
go: [1.17, 1.18]
pg: [9.6.5]
ingestion-backend: [db, captive-core, captive-core-remote-storage]
protocol-version: [18, 19]
runs-on: ${{ matrix.os }}
services:
postgres:
image: postgres:${{ matrix.pg }}
env:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
HORIZON_INTEGRATION_TESTS_ENABLED: true
HORIZON_INTEGRATION_TESTS_CORE_MAX_SUPPORTED_PROTOCOL: ${{ matrix.protocol-version }}
PROTOCOL_19_CORE_DEBIAN_PKG_VERSION: 19.0.1-923.2b38097cb.focal
PROTOCOL_19_CORE_DOCKER_IMG: stellar/stellar-core:19.0.1-923.2b38097cb.focal
PROTOCOL_18_CORE_DEBIAN_PKG_VERSION: 19.0.1-923.2b38097cb.focal
PROTOCOL_18_CORE_DOCKER_IMG: stellar/stellar-core:19.0.1-923.2b38097cb.focal
PGHOST: localhost
PGPORT: 5432
PGUSER: postgres
PGPASSWORD: postgres
PGDATABASE: postgres
steps:
- uses: actions/checkout@v3
with:
# For pull requests, build and test the PR head not a merge of the PR with the destination.
ref: ${{ github.event.pull_request.head.sha || github.ref }}
# We need to full history for git-restore-mtime to know what modification dates to use.
# Otherwise, the Go test cache will fail (due to the modification time of fixtures changing).
fetch-depth: '0'

# In order to debug the integration tests, run 'touch continue' once you connect to the ssh session
#
# - name: Setup upterm session
# uses: lhotari/action-upterm@d23c2722bdab893785c9fbeae314cbf080645bd7
# with:
# ## limits ssh access and adds the ssh public key for the user which triggered the workflow
# limit-access-to-actor: true
# ## limits ssh access and adds the ssh public keys of the listed GitHub users
# limit-access-to-users: <yourGithubUser>

- uses: ./.github/actions/setup-go
with:
go-version: ${{ matrix.go }}

- name: Pull and set Stellar Core image
shell: bash
run: |
docker pull "$PROTOCOL_${{ matrix.protocol-version }}_CORE_DOCKER_IMG"
echo HORIZON_INTEGRATION_TESTS_DOCKER_IMG="$PROTOCOL_${{ matrix.protocol-version }}_CORE_DOCKER_IMG" >> $GITHUB_ENV

- if: ${{ startsWith(matrix.ingestion-backend, 'captive-core') }}
name: Install and enable Captive Core
run: |
# Workaround for https://github.com/actions/virtual-environments/issues/5245,
# libc++1-8 won't be installed if another version is installed (but apt won't give you a helpul
# message about why the installation fails)
sudo apt-get remove -y libc++1-10 libc++abi1-10 || true

sudo wget -qO - https://apt.stellar.org/SDF.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true sudo apt-key add -
sudo bash -c 'echo "deb https://apt.stellar.org focal unstable" > /etc/apt/sources.list.d/SDF-unstable.list'
sudo apt-get update && sudo apt-get install -y stellar-core="$PROTOCOL_${{ matrix.protocol-version }}_CORE_DEBIAN_PKG_VERSION"
echo "Using stellar core version $(stellar-core version)"
echo 'HORIZON_INTEGRATION_TESTS_ENABLE_CAPTIVE_CORE=true' >> $GITHUB_ENV
echo 'HORIZON_INTEGRATION_TESTS_CAPTIVE_CORE_BIN=/usr/bin/stellar-core' >> $GITHUB_ENV

- if: ${{ matrix.ingestion-backend == 'captive-core-remote-storage' }}
name: Setup Captive Core Remote Storage
run: echo 'HORIZON_INTEGRATION_TESTS_CAPTIVE_CORE_USE_DB=true' >> $GITHUB_ENV

- run: go test -race -timeout 25m -v ./services/horizon/internal/integration/...

verify-range:
name: Test (and push) verify-range image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# For pull requests, build and test the PR head not a merge of the PR with the destination.
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Build and test the Verify Range Docker image
run: |
docker build -f services/horizon/docker/verify-range/Dockerfile -t stellar/horizon-verify-range services/horizon/docker/verify-range/
# Any range should do for basic testing, this range was chosen pretty early in history so that it only takes a few mins to run
docker run -e BRANCH=$(git rev-parse HEAD) -e FROM=10000063 -e TO=10000127 stellar/horizon-verify-range

# Push image
- if: github.ref == 'refs/heads/master'
name: Login to DockerHub
uses: docker/login-action@bb984efc561711aaa26e433c32c3521176eae55b
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- if: github.ref == 'refs/heads/master'
name: Push to DockerHub
run: docker push stellar/horizon-verify-range:latest
4 changes: 2 additions & 2 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

As well as the file LICENSE-APACHE.txt adjacent to this file.
As well as the file LICENSE adjacent to this file.

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
Loading