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

Ci fix #5397

Closed
wants to merge 5 commits into from
Closed

Ci fix #5397

Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
name: Galexie Release
name: Ledger Exporter release

on:
push:
tags: ['galexie-v*']
tags: ['ledgerexporter-v*']

jobs:

publish-docker:
name: Test and push docker image
name: Test and push the Ledger Exporter images
runs-on: ubuntu-latest
env:
GALEXIE_INTEGRATION_TESTS_ENABLED: "true"
GALEXIE_INTEGRATION_TESTS_CAPTIVE_CORE_BIN: /usr/bin/stellar-core
LEDGEREXPORTER_INTEGRATION_TESTS_ENABLED: "true"
LEDGEREXPORTER_INTEGRATION_TESTS_CAPTIVE_CORE_BIN: /usr/bin/stellar-core
# this pins to a version of quickstart:testing that has the same version as STELLAR_CORE_VERSION
# this is the multi-arch index sha, get it by 'docker buildx imagetools inspect stellar/quickstart:testing'
GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE: docker.io/stellar/quickstart:testing@sha256:03c6679f838a92b1eda4cd3a9e2bdee4c3586e278a138a0acf36a9bc99a0041f
GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE_PULL: "false"
LEDGEREXPORTER_INTEGRATION_TESTS_QUICKSTART_IMAGE: docker.io/stellar/quickstart:testing@sha256:03c6679f838a92b1eda4cd3a9e2bdee4c3586e278a138a0acf36a9bc99a0041f
LEDGEREXPORTER_INTEGRATION_TESTS_QUICKSTART_IMAGE_PULL: "false"
STELLAR_CORE_VERSION: 21.1.0-1921.b3aeb14cc.focal
steps:
- name: Set VERSION
run: |
echo "VERSION=${GITHUB_REF_NAME#galexie-v}" >> $GITHUB_ENV
echo "VERSION=${GITHUB_REF_NAME#ledgerexporter-v}" >> $GITHUB_ENV

- uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
- name: Pull Quickstart image
shell: bash
run: |
docker pull "$GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE"
docker pull "$LEDGEREXPORTER_INTEGRATION_TESTS_QUICKSTART_IMAGE"
- name: Install captive core
run: |
# Workaround for https://github.com/actions/virtual-environments/issues/5245,
Expand All @@ -42,11 +42,11 @@ jobs:
sudo apt-get update && sudo apt-get install -y stellar-core="$STELLAR_CORE_VERSION"
echo "Using stellar core version $(stellar-core version)"

- name: Run tests
run: go test -v -race -run TestGalexieTestSuite ./exp/services/galexie/...
- name: Run Ledger Exporter test
run: go test -v -race -run TestLedgerExporterTestSuite ./exp/services/ledgerexporter/...

- name: Build docker
run: make -C exp/services/galexie docker-build
- name: Build Ledger Exporter docker
run: make -C exp/services/ledgerexporter docker-build

# Push images
- name: Login to DockerHub
Expand All @@ -56,4 +56,4 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push to DockerHub
run: make -C exp/services/galexie docker-push
run: make -C exp/services/ledgerexporter docker-push
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
name: Galexie
name: LedgerExporter

on:
push:
branches: [master]
pull_request:

jobs:
galexie:
name: Test
ledger-exporter:
name: Test Ledger Exporter
runs-on: ubuntu-latest
env:
CAPTIVE_CORE_DEBIAN_PKG_VERSION: 21.1.0-1921.b3aeb14cc.focal
GALEXIE_INTEGRATION_TESTS_ENABLED: "true"
GALEXIE_INTEGRATION_TESTS_CAPTIVE_CORE_BIN: /usr/bin/stellar-core
# this pins to a version of quickstart:testing that has the same version as GALEXIE_INTEGRATION_TESTS_CAPTIVE_CORE_BIN
LEDGEREXPORTER_INTEGRATION_TESTS_ENABLED: "true"
LEDGEREXPORTER_INTEGRATION_TESTS_CAPTIVE_CORE_BIN: /usr/bin/stellar-core
# this pins to a version of quickstart:testing that has the same version of core
# as specified on LEDGEREXPORTER_INTEGRATION_TESTS_CAPTIVE_CORE_BIN
# this is the multi-arch index sha, get it by 'docker buildx imagetools inspect stellar/quickstart:testing'
GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE: docker.io/stellar/quickstart:testing@sha256:5c8186f53cc98571749054dd782dce33b0aca2d1a622a7610362f7c15b79b1bf
GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE_PULL: "false"
LEDGEREXPORTER_INTEGRATION_TESTS_QUICKSTART_IMAGE: docker.io/stellar/quickstart:testing@sha256:5c8186f53cc98571749054dd782dce33b0aca2d1a622a7610362f7c15b79b1bf
LEDGEREXPORTER_INTEGRATION_TESTS_QUICKSTART_IMAGE_PULL: "false"
steps:
- name: Install captive core
run: |
Expand All @@ -34,12 +35,12 @@ jobs:
- name: Pull Quickstart image
shell: bash
run: |
docker pull "$GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE"
docker pull "$LEDGEREXPORTER_INTEGRATION_TESTS_QUICKSTART_IMAGE"

- 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: Run test
run: go test -v -race -run TestGalexieTestSuite ./services/galexie/...
- name: Run Ledger Exporter test
run: go test -v -race -run TestLedgerExporterTestSuite ./services/ledgerexporter/...
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ friendbot:
horizon:
$(MAKE) -C services/horizon/ binary-build

galexie:
$(MAKE) -C services/galexie/ docker-build
ledger-exporter:
$(MAKE) -C services/ledgerexporter/ docker-build

webauth:
$(MAKE) -C exp/services/webauth/ docker-build
Expand Down
11 changes: 0 additions & 11 deletions services/galexie/internal/test/no_network.toml

This file was deleted.

Binary file added services/horizon/Horizon__1_
Binary file not shown.
Binary file added services/horizon/Horizon_db_init
Binary file not shown.
Binary file added services/horizon/Horizon_db_reap
Binary file not shown.
Binary file added services/horizon/Horizon_reingest
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"version": 1,
"server": "stellar-core 21.1.0 (b3aeb14cc798f6d11deb2be913041be916f3b0cc)",
"currentLedger": 477503,
"networkPassphrase": "Test SDF Network ; September 2015",
"currentBuckets": [
{
"curr": "cad4ad326ca1583f573a6ae8b493d237071e4a11f0930098f19e05cca60e3139",
"next": {
"state": 0
},
"snap": "e86dcb7c7f741bd83887214b6b9c889fa852fe8bd7e7ea2a7deee11e17981334"
},
{
"curr": "e4fdce47e57c933e4867e7be33cef16490e9fa35607d20adc3447085390cce92",
"next": {
"state": 0
},
"snap": "75d953f0eeaffcbcc68962ea95636f21248f1d06c7779e3863b993a5a76568e8"
},
{
"curr": "268a973daf318b74523d69e3ca20387547e2068b83d2e720df0132d79e58005e",
"next": {
"state": 0
},
"snap": "4c94b2c8b7cd0832e457bb6e61d9fe4bce55134dd1610c979b8c9c179d37cbe0"
},
{
"curr": "3d36f9bdeabce71cfe0a8f8253ccbeaef5ee91afb10520f4fdaa4daa11895e89",
"next": {
"state": 0
},
"snap": "8665a98df06882fda3c2fa42fe7582b7402986f923583ffa850c535238c0c8fb"
},
{
"curr": "f2bb91fb4fabd320c1e38da32034c1c912952fd830b81cd797ffa16651b32b08",
"next": {
"state": 0
},
"snap": "ac1e423ac0af923b02cdd03dba87c2a83603d4a76c07a4f72adea1d8a8c3ace7"
},
{
"curr": "6654e278d72ae3fcdbc998e46f1bc64f3ad9a3f4151b157c821cc95d12742466",
"next": {
"state": 0
},
"snap": "382b82a440817bd4b98a796885532ce94b3f156049b8b8b237d939c220d1194c"
},
{
"curr": "bca4b7a434d67cc81c1718d6c854f8175a60fb4833c46620e1a9076d3b949381",
"next": {
"state": 0
},
"snap": "9b1664cd6391f3202fc941ef5b2f7009cf3b3ee2b18ed306a94fb6b955cc7db5"
},
{
"curr": "42ceb17a4434ad320faf7d7640f95e91aae6d60a482aee729ea9af95c2a74ce1",
"next": {
"state": 0
},
"snap": "a557ea6bf7349567a9e176b2a245df369639e270ad1a71d086b5b7f821f2a9c5"
},
{
"curr": "978c0dd3644e41ba69a73cfa38e9374e5406eeaa6b79f8384de57d1cf0292654",
"next": {
"state": 0
},
"snap": "a22ec28cfa1b7bafa175506eed1ad05b5b80652bbdbfa78305328cb150f9615a"
},
{
"curr": "88f0c2e809b9fec90eff0e07cd159e433ee49c7e80afe1327cd5a057c32c8e38",
"next": {
"state": 0
},
"snap": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"curr": "0000000000000000000000000000000000000000000000000000000000000000",
"next": {
"state": 0
},
"snap": "0000000000000000000000000000000000000000000000000000000000000000"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"version": 1,
"server": "stellar-core 21.1.0 (b3aeb14cc798f6d11deb2be913041be916f3b0cc)",
"currentLedger": 477503,
"networkPassphrase": "Test SDF Network ; September 2015",
"currentBuckets": [
{
"curr": "cad4ad326ca1583f573a6ae8b493d237071e4a11f0930098f19e05cca60e3139",
"next": {
"state": 0
},
"snap": "e86dcb7c7f741bd83887214b6b9c889fa852fe8bd7e7ea2a7deee11e17981334"
},
{
"curr": "e4fdce47e57c933e4867e7be33cef16490e9fa35607d20adc3447085390cce92",
"next": {
"state": 0
},
"snap": "75d953f0eeaffcbcc68962ea95636f21248f1d06c7779e3863b993a5a76568e8"
},
{
"curr": "268a973daf318b74523d69e3ca20387547e2068b83d2e720df0132d79e58005e",
"next": {
"state": 0
},
"snap": "4c94b2c8b7cd0832e457bb6e61d9fe4bce55134dd1610c979b8c9c179d37cbe0"
},
{
"curr": "3d36f9bdeabce71cfe0a8f8253ccbeaef5ee91afb10520f4fdaa4daa11895e89",
"next": {
"state": 0
},
"snap": "8665a98df06882fda3c2fa42fe7582b7402986f923583ffa850c535238c0c8fb"
},
{
"curr": "f2bb91fb4fabd320c1e38da32034c1c912952fd830b81cd797ffa16651b32b08",
"next": {
"state": 0
},
"snap": "ac1e423ac0af923b02cdd03dba87c2a83603d4a76c07a4f72adea1d8a8c3ace7"
},
{
"curr": "6654e278d72ae3fcdbc998e46f1bc64f3ad9a3f4151b157c821cc95d12742466",
"next": {
"state": 0
},
"snap": "382b82a440817bd4b98a796885532ce94b3f156049b8b8b237d939c220d1194c"
},
{
"curr": "bca4b7a434d67cc81c1718d6c854f8175a60fb4833c46620e1a9076d3b949381",
"next": {
"state": 0
},
"snap": "9b1664cd6391f3202fc941ef5b2f7009cf3b3ee2b18ed306a94fb6b955cc7db5"
},
{
"curr": "42ceb17a4434ad320faf7d7640f95e91aae6d60a482aee729ea9af95c2a74ce1",
"next": {
"state": 0
},
"snap": "a557ea6bf7349567a9e176b2a245df369639e270ad1a71d086b5b7f821f2a9c5"
},
{
"curr": "978c0dd3644e41ba69a73cfa38e9374e5406eeaa6b79f8384de57d1cf0292654",
"next": {
"state": 0
},
"snap": "a22ec28cfa1b7bafa175506eed1ad05b5b80652bbdbfa78305328cb150f9615a"
},
{
"curr": "88f0c2e809b9fec90eff0e07cd159e433ee49c7e80afe1327cd5a057c32c8e38",
"next": {
"state": 0
},
"snap": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"curr": "0000000000000000000000000000000000000000000000000000000000000000",
"next": {
"state": 0
},
"snap": "0000000000000000000000000000000000000000000000000000000000000000"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"version": 1,
"server": "stellar-core 21.1.0 (b3aeb14cc798f6d11deb2be913041be916f3b0cc)",
"currentLedger": 477503,
"networkPassphrase": "Test SDF Network ; September 2015",
"currentBuckets": [
{
"curr": "cad4ad326ca1583f573a6ae8b493d237071e4a11f0930098f19e05cca60e3139",
"next": {
"state": 0
},
"snap": "e86dcb7c7f741bd83887214b6b9c889fa852fe8bd7e7ea2a7deee11e17981334"
},
{
"curr": "e4fdce47e57c933e4867e7be33cef16490e9fa35607d20adc3447085390cce92",
"next": {
"state": 0
},
"snap": "75d953f0eeaffcbcc68962ea95636f21248f1d06c7779e3863b993a5a76568e8"
},
{
"curr": "268a973daf318b74523d69e3ca20387547e2068b83d2e720df0132d79e58005e",
"next": {
"state": 0
},
"snap": "4c94b2c8b7cd0832e457bb6e61d9fe4bce55134dd1610c979b8c9c179d37cbe0"
},
{
"curr": "3d36f9bdeabce71cfe0a8f8253ccbeaef5ee91afb10520f4fdaa4daa11895e89",
"next": {
"state": 0
},
"snap": "8665a98df06882fda3c2fa42fe7582b7402986f923583ffa850c535238c0c8fb"
},
{
"curr": "f2bb91fb4fabd320c1e38da32034c1c912952fd830b81cd797ffa16651b32b08",
"next": {
"state": 0
},
"snap": "ac1e423ac0af923b02cdd03dba87c2a83603d4a76c07a4f72adea1d8a8c3ace7"
},
{
"curr": "6654e278d72ae3fcdbc998e46f1bc64f3ad9a3f4151b157c821cc95d12742466",
"next": {
"state": 0
},
"snap": "382b82a440817bd4b98a796885532ce94b3f156049b8b8b237d939c220d1194c"
},
{
"curr": "bca4b7a434d67cc81c1718d6c854f8175a60fb4833c46620e1a9076d3b949381",
"next": {
"state": 0
},
"snap": "9b1664cd6391f3202fc941ef5b2f7009cf3b3ee2b18ed306a94fb6b955cc7db5"
},
{
"curr": "42ceb17a4434ad320faf7d7640f95e91aae6d60a482aee729ea9af95c2a74ce1",
"next": {
"state": 0
},
"snap": "a557ea6bf7349567a9e176b2a245df369639e270ad1a71d086b5b7f821f2a9c5"
},
{
"curr": "978c0dd3644e41ba69a73cfa38e9374e5406eeaa6b79f8384de57d1cf0292654",
"next": {
"state": 0
},
"snap": "a22ec28cfa1b7bafa175506eed1ad05b5b80652bbdbfa78305328cb150f9615a"
},
{
"curr": "88f0c2e809b9fec90eff0e07cd159e433ee49c7e80afe1327cd5a057c32c8e38",
"next": {
"state": 0
},
"snap": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"curr": "0000000000000000000000000000000000000000000000000000000000000000",
"next": {
"state": 0
},
"snap": "0000000000000000000000000000000000000000000000000000000000000000"
}
]
}
Binary file not shown.
Binary file added services/horizon/cmd/captive-core/stellar.db-wal
Binary file not shown.
Loading
Loading