Skip to content

Commit

Permalink
Merge pull request #1146 from golemfactory/b0.12
Browse files Browse the repository at this point in the history
B0.12
  • Loading branch information
shadeofblue authored Aug 22, 2023
2 parents c46ba7c + c29840c commit b89b132
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "yapapi"
version = "0.12.0-dev"
version = "0.12.0-alpha.1"
description = "High-level Python API for the New Golem"
authors = ["GolemFactory <[email protected]>"]
license = "LGPL-3.0-or-later"
Expand Down Expand Up @@ -81,7 +81,7 @@ _format_black = "black ."

tests_unit = {cmd = "pytest --cov=yapapi --cov-report html --cov-report term -sv --ignore tests/goth_tests", help = "Run only unit tests"}
tests_integration_init = { sequence = ["_gothv_env", "_gothv_requirements", "_gothv_assets"], help="Initialize the integration test environment"}
tests_integration = { cmd = ".envs/yapapi-goth/bin/python -m pytest -svx tests/goth_tests --config-override docker-compose.build-environment.use-prerelease=false --config-path tests/goth_tests/assets/goth-config.yml --ssh-verify-connection --reruns 3 --only-rerun AssertionError --only-rerun TimeoutError --only-rerun goth.runner.exceptions.TemporalAssertionError --only-rerun urllib.error.URLError --only-rerun goth.runner.exceptions.CommandError --only-rerun requests.exceptions.ConnectionError --only-rerun OSError", help = "Run the integration tests"}
tests_integration = { cmd = ".envs/yapapi-goth/bin/python -m pytest -svx tests/goth_tests --config-override docker-compose.build-environment.use-prerelease=false --config-path tests/goth_tests/assets/goth-config.yml --ssh-verify-connection --reruns 3 --only-rerun AssertionError --only-rerun TimeoutError --only-rerun goth.runner.exceptions.TimeoutError --only-rerun goth.runner.exceptions.TemporalAssertionError --only-rerun urllib.error.URLError --only-rerun goth.runner.exceptions.CommandError --only-rerun requests.exceptions.ConnectionError --only-rerun OSError --only-rerun requests.exceptions.ReadTimeout", help = "Run the integration tests"}
_gothv_env = "python -m venv .envs/yapapi-goth"
_gothv_requirements = ".envs/yapapi-goth/bin/pip install -U --extra-index-url https://test.pypi.org/simple/ goth==0.14.1 pip pytest pytest-asyncio pytest-rerunfailures pexpect"
_gothv_assets = ".envs/yapapi-goth/bin/python -m goth create-assets tests/goth_tests/assets"
Expand Down
5 changes: 4 additions & 1 deletion yapapi/services/service_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ def _change_state(
ctx = instance.service._ctx
assert ctx is not None # This is None only while pending for the first time
ctx.emit(
events.ServiceStateChanged, service=instance, old=prev_state, new=instance.state
events.ServiceStateChanged,
service=instance.service,
old=prev_state,
new=instance.state,
)

return instance.state != prev_state
Expand Down

0 comments on commit b89b132

Please sign in to comment.