Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
af43af1
all: Issue 416 Implement GET `/unique_address` of the callback API (#…
lijamie98 Jul 28, 2022
2256577
hotfix: solve issue where `uniqueAddressService` was crashing (#444)
marcelosalloum Jul 29, 2022
9f9bfd8
enhancement & fixes: update the code in preparation for handling SEP-…
marcelosalloum Jul 29, 2022
5face15
helm: Fix typo in helm chart for kafkaPublisher.eventTypeToQueue (#451)
erika-sdf Aug 1, 2022
27ec41f
platform: Fix error when not running LogAppenderTest from console (#453)
lijamie98 Aug 2, 2022
6d7c912
all: Remove payment sub-project (#450)
lijamie98 Aug 2, 2022
d550fc5
helm-charts: Add assets.json to helm deployment (#442)
erika-sdf Aug 2, 2022
021f436
Bump Helm Chart Version for publishing, add anchor_callback parameter…
reecexlm Aug 2, 2022
1acb2a0
add uniqueAddressIntegrationEndPoint to helm chart (#456)
lijamie98 Aug 3, 2022
6ff94aa
preview-assets (#462)
reecexlm Aug 3, 2022
bcd8561
issue-457: Update distributionWallet fields. (#458)
lijamie98 Aug 4, 2022
41548e1
codebuild_source_version (#468)
reecexlm Aug 5, 2022
61fbd5e
core: Fix empty memo cause complaints in the SEP tests (#466)
lijamie98 Aug 5, 2022
9cd384c
Bump Helm Chart to 0.3.87 (#470)
reecexlm Aug 5, 2022
fe5467e
fixing paths for buildspec after documentation refactor (#474)
reecexlm Aug 8, 2022
f40b84f
upgrade Gradle from 7.3 to 7.5.1 (#476)
lijamie98 Aug 9, 2022
0a775b0
bugfix: fix issue where the incoming payment was not populating the e…
marcelosalloum Aug 9, 2022
3ddb181
Gradle clean up and define dependency aliases in `libs.versions.toml`…
lijamie98 Aug 10, 2022
4e2e46e
Support SEP-31 non-happy-path where the Transaction is marked as `PEN…
marcelosalloum Aug 11, 2022
3182352
Add timeout to end to end test/ fix helm prometheus annotations (#464)
stfung77 Aug 12, 2022
60af84d
platform: Dynamic account list handling in StellarPaymentObserver (#454)
lijamie98 Aug 13, 2022
9c1f254
core/service-runner: Fix the tests skipping problem (core and service…
lijamie98 Aug 15, 2022
77484c6
ci: fix complete job (#501)
leighmcculloch Aug 17, 2022
4619ad7
hotfix: fix build.gradle.kts from the integration-tests package so th…
marcelosalloum Aug 18, 2022
22fb333
hotfix: SEP-12's deletion should not require the memo to be in the JW…
marcelosalloum Aug 18, 2022
1427fce
core: Use Kotlin backticks to rename tests to descriptive names (#507)
lijamie98 Aug 19, 2022
b2100d4
fix the contention problem that causes locked database. (#512)
lijamie98 Aug 19, 2022
64ee617
hotfix: CI was not being executed in the develop branch after merging…
marcelosalloum Aug 19, 2022
b2e5af6
Feature: release checklist (#511)
marcelosalloum Aug 19, 2022
bfc6915
Feature: when no cursor can be found in the database, the Stellar str…
marcelosalloum Aug 22, 2022
e0fb6a3
Move @Bean declarations from AnchorPlatformServer to HelperConfig and…
lijamie98 Aug 23, 2022
05229aa
Feature: log requests and responses (#519)
marcelosalloum Aug 23, 2022
e10d4bf
core: Make testing connection of UrlValidateionUtil.validateUrl() opt…
lijamie98 Aug 23, 2022
a1a3ee8
Feature: add versioning to the project, subprojects and to the /healt…
marcelosalloum Aug 23, 2022
b247bda
hotfix: add missing DB migration and remove unused data models. (#522)
marcelosalloum Aug 23, 2022
ae0bc28
hotfix: add missing AWS IAM dependency (#526)
marcelosalloum Aug 25, 2022
888906f
Fix high-risk vulnerabilities reported by Snyk (#527)
lijamie98 Aug 25, 2022
670ddb4
Use docker compose to test multiple anchor platform configurations en…
stfung77 Aug 27, 2022
f2cf545
Hotfix: update docs to say SEP-24 is not supported (#531)
marcelosalloum Aug 29, 2022
ee4408c
remove jpa.generate-ddl from postgres config (#532)
stfung77 Aug 29, 2022
f495d9f
Feature: add default issue templates for bug reports, feature request…
marcelosalloum Aug 30, 2022
5064101
Feature: configure CI for the Gitflow release process (#533)
marcelosalloum Aug 30, 2022
a1fecfe
Fix: some CI jobs were running twice (#539)
marcelosalloum Aug 31, 2022
da093f1
Feature: update how the platform deals with incoming payments with in…
marcelosalloum Aug 31, 2022
e0d0edb
Feature: add integration tests to CI (#536)
marcelosalloum Sep 1, 2022
46160b0
Feature: update the Stellar Payment observer to be a standalone servi…
marcelosalloum Sep 14, 2022
95a1185
Release 1.1.0 to develop (#555)
marcelosalloum Sep 15, 2022
077d342
hotfix: fix how the GH Action gets the tag name (#558)
marcelosalloum Sep 15, 2022
0d451b0
Feature: execute the CI when we merge something into the `main` branc…
marcelosalloum Sep 20, 2022
33ee6f0
Configuration management refactoring (#516)
lijamie98 Sep 22, 2022
7330181
Add args to AP helm chart (#584)
erika-sdf Sep 26, 2022
c2bb570
Fix local deployment (#593)
marcelosalloum Sep 26, 2022
32f1652
Feature: add badges for the current version and CI status (#587)
marcelosalloum Sep 26, 2022
6dd1e66
Feature: address snyk vulnerabilities (#577)
marcelosalloum Sep 26, 2022
23a6568
Feature: add CodeQL (#591)
marcelosalloum Sep 26, 2022
ffc24b7
Hotfix: update helm chart version to 0.3.88 (#600)
marcelosalloum Sep 28, 2022
5d581d2
added workflow_dispatch (#601)
lijamie98 Sep 30, 2022
99fd38d
Events configuration refactoring (#594)
lijamie98 Oct 3, 2022
74becb3
Fix: workflow secrets were not being passed from parent (caller) to c…
marcelosalloum Oct 3, 2022
4c942ef
Update the action after merging the release to main (#619)
lijamie98 Oct 6, 2022
159b4b9
Release to develop 1.2.0 (#620)
marcelosalloum Oct 7, 2022
9dc5992
Feature: separate observer deployment (replicate #613) (#622)
marcelosalloum Oct 7, 2022
d5bae04
Fix Sep31Transaction.refunds Gson serialization exception (#634)
lijamie98 Oct 20, 2022
92632ae
Secrets config refactor (#621)
stfung77 Oct 24, 2022
f14c92a
update e2e tests with new config format (#604)
stfung77 Oct 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Bug report
about: Tell us about a bug you found
title: ''
labels: bug

---

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version are you using?


### What did you do?


### What happened?


### What did you expect to see instead?

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: true
contact_links:
- name: Stellar Ecosystem Proposals (SEPs)
url: https://github.com/stellar/stellar-protocol
about: The SEPs implemented in this project are defined here.
- name: Stellar Laboratory
url: https://laboratory.stellar.org/#?network=test
about: The best place to experiment with the Stellar network.
- name: Docker Images
url: https://hub.docker.com/r/stellar/anchor-platform
about: Where to check the available Docker images that have been published.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Tell us what you'd like to see
title: 'Feature Request: '
labels: 'feature request'

---

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What problem does your feature solve?


### What would you like to see?


### What alternatives are there?

32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/release_a_new_version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Release a New Version!
about: Prepare a release to be launched
title: ''
labels: release
---

<!-- Please Follow this checklist before making your release. Thanks! -->

### Release Checklist

> Attention: the examples below use the version `0.1.0` but you should update them to use the version you're releasing.

- [ ] Decide on a version number based on the current version number and the common rules defined in [Semantic Versioning](https://semver.org). E.g. `0.1.0`.
- [ ] Update this ticket name to reflect the new version number, following the pattern "Release `0.1.0`".
- [ ] Cut a branch for the new release out of the `develop` branch, following the gitflow naming pattern `release/0.1.0`.
- [ ] Update the code to use this version number.
- [ ] Update the [CHANGELOG.md] file with the new version number and release notes.
- [ ] Update the badges versions in [docs/00 - Stellar Anchor Platform.md].
- [ ] Run tests and linting. **Not only CI/CD tests, but also manual tests to make sure the release is up and running, and that it's stable!**
- [ ] Make all changes necessary to make sure the release is ready to be published. If new issues are found during the manual tests, create new tickets aiming at improving the automated tests so these issues can be automatically detected next time.
- [ ] DO NOT RELEASE before holidays or weekends! Mondays and Tuesdays are preferred.
- [ ] When the team is confident the release is stable, you'll need to create two pull requests:
- [ ] `release/0.1.0 -> main`: this should require two approvals.
- [ ] `release/0.1.0 -> develop`: ideally, this should be merged after the `main` branch is merged.
- [ ] After the release(e.g. `0.1.0`) branch is merged to `main`, create a new release on GitHub with the name `0.1.0` and the changes from the [CHANGELOG.md] file.
- [ ] The release will automatically publish a new version of the docker image to Docker Hub.
- You'll need to manually publish a new version of the SDK to [Maven Central](https://search.maven.org/search?q=g:org.stellar.anchor-sdk).
- [ ] You'll need to manually upload the jar file from [Maven Central](https://search.maven.org/search?q=g:org.stellar.anchor-sdk) to the GH release.

[CHANGELOG.md]: ../../CHANGELOG.md
[docs/00 - Stellar Anchor Platform.md]: ../../docs/00%20-%20Stellar%20Anchor%20Platform.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
# This workflow will build a Java project with Gradle.
# This workflow is triggered:
# 1. Called from other workflows.
# 2. On every pull request
# 3. When commits are pushed or merged onto `main` branch
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

name: Java CI with Gradle
name: Basic Tests

on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
workflow_call: # allows this workflow to be called from another workflow
pull_request: # when a pull request is created.
push: # when commits are pushed or merged onto `main` branch
branches:
- main

jobs:
build_and_test:
Expand All @@ -18,52 +25,34 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'

- name: Check code formatting
run: ./gradlew spotlessCheck || echo "❌ Your code is not properly formatted. You can run './gradlew spotlessApply' to format it. 👀"

- name: Clean, Build and Test
run: ./gradlew clean build

- name: Print Test Results
if: success() || failure()
run: |
./gradlew clean build
echo *** SEP test report ***
echo "\n\n*** API Schema test report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/api-schema/build/reports/tests/test/index.html
echo "\n\n*** SEP test report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/core/build/reports/tests/test/index.html
echo *** Payment test report ***
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/payment/build/reports/tests/test/index.html
echo *** Platform test report ***
echo "\n\n*** Platform test report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/platform/build/reports/tests/test/index.html
echo *** Anchor reference server test report ***
echo "\n\n*** Integration tests report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/integration-tests/build/reports/tests/test/index.html
echo "\n\n*** Anchor reference server test report ***\n"
cat /home/runner/work/java-stellar-anchor-sdk/java-stellar-anchor-sdk/anchor-reference-server/build/reports/tests/test/index.html

build_and_push_anchor_platform:
if: github.event.pull_request == null
needs: [build_and_test]
runs-on: ubuntu-latest
name: Push stellar/anchor-platform:sha to DockerHub
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:
push: true
tags: stellar/anchor-platform:${{ steps.get_tag.outputs.TAG }},stellar/anchor-platform:latest
file: Dockerfile

sep_validation_suite:
needs: [build_and_test]
runs-on: ubuntu-latest
name: Validate SEPs (1, 10, 12, 31, 38)
env:
PR_NUMBER: ${{github.event.pull_request.number}}
BRANCH_NAME: ${{github.ref}} # e.g. refs/heads/main
steps:
- uses: actions/checkout@v3

Expand All @@ -72,10 +61,13 @@ jobs:
id: endpoint-finder
run: |
export HOME_DOMAIN=https://anchor-sep-server-dev.stellar.org
if [ ! -z "$PR_NUMBER" ]
then
export HOME_DOMAIN=https://anchor-sep-pr$PR_NUMBER.previews.kube001.services.stellar-ops.com

if [[ ! -z "$PR_NUMBER" ]]; then
export HOME_DOMAIN=https://anchor-sep-pr$PR_NUMBER.previews.kube001.services.stellar-ops.com
elif [[ $BRANCH_NAME = refs/heads/main ]]; then
export HOME_DOMAIN=https://anchor-sep-server-prd.stellar.org
fi

echo HOME_DOMAIN=$HOME_DOMAIN
echo "::set-output name=HOME_DOMAIN::$HOME_DOMAIN"

Expand All @@ -92,8 +84,9 @@ jobs:
stellar-anchor-tests --home-domain $HOME_DOMAIN --seps 1 10 12 31 38 --sep-config platform/src/test/resources/stellar-anchor-tests-sep-config.json

complete:
if: always()
needs: [build_and_test, sep_validation_suite]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure')
run: exit 1
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1
51 changes: 51 additions & 0 deletions .github/workflows/branch_develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This workflow will build a docker image and push to docker hub
# This workflow is triggered:
# 1. When commits are pushed or merged onto `develop` branch
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven


name: Push/Merge to `develop` Branch

on:
workflow_dispatch:
push:
branches:
- develop # when commits are pushed or merged onto `develop` branch

jobs:
tests:
uses: ./.github/workflows/basic_tests.yml # use the callable tests job to run tests
secrets: inherit # pass all secrets

build_and_push_docker_image:
name: Push to DockerHub # stellar/anchor-platform:{sha} and stellar/anchor-platform:edge
needs: [tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get image SHA
shell: bash
id: get_sha
run: echo ::set-output name=SHA::$(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:
push: true
tags: stellar/anchor-platform:${{ steps.get_sha.outputs.SHA }},stellar/anchor-platform:edge
file: Dockerfile

complete:
if: always()
needs: [tests, build_and_push_docker_image]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1
46 changes: 46 additions & 0 deletions .github/workflows/branch_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Push/Merge to any `release` Branches

on:
workflow_dispatch:
push:
branches:
- 'release/**'
- 'releases/**'

jobs:
tests:
uses: ./.github/workflows/basic_tests.yml # use the callable tests job to run tests
secrets: inherit # pass all secrets

build_and_push_docker_image:
name: Push to DockerHub # stellar/anchor-platform:sha
needs: [tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name : Get Project Version
shell: bash
id: get_version
run: echo ::set-output name=VERSION::$(${{github.workspace}}/gradlew -q printVersionName)

- 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/anchor-platform:${{ steps.get_version.outputs.VERSION }}-rc
file: Dockerfile

complete:
if: always()
needs: [tests, build_and_push_docker_image]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1
81 changes: 81 additions & 0 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: CodeQL

on:
workflow_dispatch:
push:
branches:
- develop
- main
- 'release/**'
- 'releases/**'
pull_request:
# The branches below must be a subset of the branches above
branches:
- develop
- main
schedule:
- cron: '30 9 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
Loading