Skip to content

Commit bd9fb46

Browse files
committed
handle read without state in live tests ci
1 parent 8a83562 commit bd9fb46

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

airbyte-ci/connectors/live-tests/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ The traffic recorded on the control connector is passed to the target connector
279279

280280
## Changelog
281281

282+
### 0.18.2
283+
284+
Allow live tests with or without state in CI.
285+
282286
### 0.18.1
283287

284288
Fix extra argument.

airbyte-ci/connectors/live-tests/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "live-tests"
7-
version = "0.18.1"
7+
version = "0.18.2"
88
description = "Contains utilities for testing connectors against live data."
99
authors = ["Airbyte <[email protected]>"]
1010
license = "MIT"

airbyte-ci/connectors/live-tests/src/live_tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def pytest_configure(config: Config) -> None:
143143
config.stash[stash_keys.TEST_EVALUATION_MODE] = TestEvaluationMode(config.getoption("--test-evaluation-mode", "strict"))
144144

145145
if config.stash[stash_keys.RUN_IN_AIRBYTE_CI]:
146-
config.stash[stash_keys.SHOULD_READ_WITH_STATE] = bool(get_option_or_fail(config, "--should-read-with-state"))
146+
config.stash[stash_keys.SHOULD_READ_WITH_STATE] = bool(config.getoption("--should-read-with-state"))
147147
elif _should_read_with_state := config.getoption("--should-read-with-state"):
148148
config.stash[stash_keys.SHOULD_READ_WITH_STATE] = _should_read_with_state
149149
else:

airbyte-ci/connectors/pipelines/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ airbyte-ci connectors --language=low-code migrate-to-manifest-only
790790

791791
| Version | PR | Description |
792792
|---------| ---------------------------------------------------------- |------------------------------------------------------------------------------------------------------------------------------|
793+
| 4.32.4 | [#44173](https://github.com/airbytehq/airbyte/pull/44173) | Bug fix for live tests' --should-read-with-state handling. |
793794
| 4.32.3 | [#44118](https://github.com/airbytehq/airbyte/pull/44118) | Improve error handling in live tests. |
794795
| 4.32.2 | [#43970](https://github.com/airbytehq/airbyte/pull/43970) | Make `connectors publish` early exit if no connectors are selected. |
795796
| 4.32.1 | [#41642](https://github.com/airbytehq/airbyte/pull/41642) | Avoid transient publish failures by increasing `POETRY_REQUESTS_TIMEOUT` and setting retries on `PublishToPythonRegistry`. |

airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/connectors/test/steps/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def _get_command_options(self) -> List[str]:
511511
if self.run_id:
512512
command_options += ["--run-id", self.run_id]
513513
if self.should_read_with_state:
514-
command_options += ["--should-read-with-state", self.should_read_with_state]
514+
command_options += ["--should-read-with-state"]
515515
if self.test_evaluation_mode:
516516
command_options += ["--test-evaluation-mode", self.test_evaluation_mode]
517517
if self.selected_streams:

airbyte-ci/connectors/pipelines/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pipelines"
7-
version = "4.32.3"
7+
version = "4.32.4"
88
description = "Packaged maintained by the connector operations team to perform CI for connectors' pipelines"
99
authors = ["Airbyte <[email protected]>"]
1010

0 commit comments

Comments
 (0)