Skip to content

Commit 7d3a2e1

Browse files
authored
airbyte-ci: fix extra steps running when selected commands are provided (#38549)
1 parent cd93561 commit 7d3a2e1

File tree

1 file changed

+3
-1
lines changed
  • airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/connectors

1 file changed

+3
-1
lines changed

airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/connectors/context.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -318,5 +318,7 @@ def _skip_metadata_disabled_test_suites(self, run_step_options: RunStepOptions)
318318
RunStepOptions: Updated run step options.
319319
"""
320320
run_step_options = deepcopy(run_step_options)
321-
run_step_options.skip_steps += self._get_step_id_to_skip_according_to_metadata()
321+
# If any `skip_steps` are present, we will run everything except the skipped steps, instead of just `keep_steps`.
322+
if not run_step_options.keep_steps:
323+
run_step_options.skip_steps += self._get_step_id_to_skip_according_to_metadata()
322324
return run_step_options

0 commit comments

Comments
 (0)