Skip to content

Commit

Permalink
Merge branch 'master' into extract-exeunit-transfer-component
Browse files Browse the repository at this point in the history
  • Loading branch information
nieznanysprawiciel authored Apr 26, 2024
2 parents 4748fc9 + 25a11c0 commit 15e98c1
Show file tree
Hide file tree
Showing 15 changed files with 366 additions and 1,044 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Run test suite
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Runs on branches defined within matrix
poetry run poe goth-tests --config-override docker-compose.build-environment.branch=${{ matrix.branch }}
Expand Down
90 changes: 40 additions & 50 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
strip -x build/*
- name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: yagna-binaries
path: build
Expand All @@ -110,13 +110,15 @@ jobs:
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Configure Python
continue-on-error: true
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 - --version 1.8.2

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: yagna-binaries
path: /tmp/yagna-build
Expand All @@ -137,13 +139,33 @@ jobs:
python payment_test.py
integration-test-groups:
name: Integration Tests (hybrid-net) group
runs-on: [goth2]
name: T
runs-on: ubuntu-latest
needs: build
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
group: [1, 2]
test_name:
- "test_custom_runtime_counter"
- "test_mid_agreement_payments"
- "test_payment_driver_list"
- "test_payment_release_allocations"
- "test_payment_validate_allocations"
- "test_zero_amount_invoice"
- "test_prov_debit_notes_accept_timeout"
- "test_prov_idle_agreement"
- "test_prov_idle_agreement_after_2_activities"
- "test_prov_timeout_unresponsive_requestor"
- "test_prov_multi_activity"
- "test_prov_recover_from_abandoned_task"
- "test_prov_renegotiate_proposal"
- "test_prov_single_simultaneous_activity"
- "test_e2e_rule_partner_outbound"
- "test_e2e_rule_partner_outbound_unrestricted"
- "test_e2e_vm"
- "test_e2e_x509_signature_outbound"
- "test_e2e_wasi"
defaults:
run:
working-directory: "./goth_tests"
Expand All @@ -155,66 +177,34 @@ jobs:
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Configure Python
continue-on-error: true
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"

- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
ln -sf $HOME/.local/bin/poetry /usr/bin/poetry
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 - --version 1.8.2

- name: Install dependencies
run: |
poetry install --no-root
- name: Cleanup Docker
if: always()
run: |
c=$(docker ps -q) && [[ $c ]] && docker kill $c
docker system prune -af
- name: Log in to GitHub Docker repository
run: |
rm -rf ~/.docker/config.json
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{github.actor}} --password-stdin
run: poetry install

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: yagna-binaries
path: /tmp/yagna-build

- name: Run test suite
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
poetry run poe goth-tests --splits 2 --group ${{ matrix.group }} --config-override docker-compose.build-environment.binary-path=/tmp/yagna-build
poetry run pytest -W ignore::DeprecationWarning -svx . -k ${{ matrix.test_name }} --config-override docker-compose.build-environment.binary-path=/tmp/yagna-build
- name: Upload test logs
uses: actions/upload-artifact@v3
if: always()
uses: actions/upload-artifact@v4
with:
name: goth-logs
name: goth-logs-${{ matrix.test_name }}
path: /tmp/goth-tests

# Only relevant for self-hosted runners
- name: Remove test logs
if: always()
run: rm -rf /tmp/goth-tests

# Only relevant for self-hosted runners
- name: Remove Poetry virtual env
if: always()
run: poetry env remove --all

- name: Cleanup Docker
if: always()
run: |
c=$(docker ps -q) && [[ $c ]] && docker kill $c
docker system prune -af
integration-test:
name: Integration Tests (hybrid-net)
runs-on: ubuntu-latest
Expand Down
110 changes: 17 additions & 93 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 15e98c1

Please sign in to comment.