Skip to content

Commit

Permalink
Fix cache, try to list probes
Browse files Browse the repository at this point in the history
  • Loading branch information
evik42 committed Jun 21, 2023
1 parent 99689b5 commit 4cdf17a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/binaries-x86-64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,18 @@ jobs:
target: x86_64-unknown-linux-musl
override: true

- name: Set build target for cache key
run: echo "CARGO_BUILD_TARGET=x86_64-unknown-linux-musl" >> $GITHUB_ENV

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Check lockfile
uses: actions-rs/cargo@v1
with:
command: tree
args: --locked

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Install openssl ( Windows only )
if: runner.os == 'Windows'
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
toolchain: ${{ env.rust_stable }}
components: rustfmt, clippy

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Check lockfile
uses: actions-rs/cargo@v1
with:
command: tree
args: --locked

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Install openssl ( Windows only )
if: runner.os == 'Windows'
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
toolchain: ${{ env.rust_stable }}
components: rustfmt, clippy

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Check lockfile
uses: actions-rs/cargo@v1
with:
command: tree
args: --locked

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Check formatting
uses: actions-rs/cargo@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion goth_tests/e2e/vm/test_e2e_rule_partner_outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from goth.runner import Runner
from goth.runner.container.payment import PaymentIdPool
from goth.runner.container.yagna import YagnaContainerConfig
from goth.runner.probe import RequestorProbe
from goth.runner.probe import Probe, RequestorProbe

from goth_tests.helpers.activity import vm_exe_script_outbound
from goth_tests.helpers.negotiation import DemandBuilder, negotiate_agreements
Expand Down Expand Up @@ -73,6 +73,7 @@ async def test_e2e_rule_partner_outbound(
)

async with runner(goth_config.containers):
logger.info("Probes: %s", runner.get_probes(probe_type=Probe))
requestor = runner.get_probes(probe_type=RequestorProbe)[0]
provider = runner.get_probes(probe_type=ProviderProbe)[0]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from goth.runner import Runner
from goth.runner.container.payment import PaymentIdPool
from goth.runner.container.yagna import YagnaContainerConfig
from goth.runner.probe import RequestorProbe
from goth.runner.probe import Probe, RequestorProbe

from goth_tests.helpers.activity import vm_exe_script_outbound
from goth_tests.helpers.negotiation import DemandBuilder, negotiate_agreements
Expand Down Expand Up @@ -73,6 +73,7 @@ async def test_e2e_rule_partner_outbound_unrestricted(
)

async with runner(goth_config.containers):
logger.info("Probes: %s", runner.get_probes(probe_type=Probe))
requestor = runner.get_probes(probe_type=RequestorProbe)[0]
provider = runner.get_probes(probe_type=ProviderProbe)[0]

Expand Down
2 changes: 1 addition & 1 deletion goth_tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ poethepoet = "^0.10.0"
[tool.poe.tasks]
codestyle = "black --check --diff ."
goth-assets = "python -m goth create-assets assets"
goth-tests = "pytest -svx . --reruns 3 --only-rerun AssertionError --only-rerun TimeoutError --only-rerun ApiException --only-rerun goth.runner.exceptions.TemporalAssertionError --only-rerun urllib.error.URLError --only-rerun goth.runner.exceptions.CommandError"
goth-tests = "pytest -svx . -k 'e2e_rule_partner' --reruns 3 --only-rerun AssertionError --only-rerun TimeoutError --only-rerun ApiException --only-rerun goth.runner.exceptions.TemporalAssertionError --only-rerun urllib.error.URLError --only-rerun goth.runner.exceptions.CommandError"
provider-tests = "pytest -svx ./domain/ya-provider"
typecheck = "mypy ."

0 comments on commit 4cdf17a

Please sign in to comment.