Skip to content

Commit 8037c93

Browse files
authored
chore(airbyte-ci): deps update (#42583)
1 parent 188fd0c commit 8037c93

File tree

6 files changed

+628
-580
lines changed

6 files changed

+628
-580
lines changed

airbyte-ci/connectors/pipelines/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,8 @@ airbyte-ci connectors --language=low-code migrate-to-manifest-only
788788
## Changelog
789789

790790
| Version | PR | Description |
791-
| ------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
791+
|---------| ---------------------------------------------------------- |------------------------------------------------------------------------------------------------------------------------------|
792+
| 4.30.0 | [#42583](https://github.com/airbytehq/airbyte/pull/42583) | Updated dependencies |
792793
| 4.29.0 | [#42576](https://github.com/airbytehq/airbyte/pull/42576) | New command: `migrate-to-manifest-only` |
793794
| 4.28.3 | [#42046](https://github.com/airbytehq/airbyte/pull/42046) | Trigger connector tests on doc change. |
794795
| 4.28.2 | [#43297](https://github.com/airbytehq/airbyte/pull/43297) | `migrate-to-inline_schemas` removes unused schema files and empty schema dirs. |

airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/connectors/migrate_to_inline_schemas/pipeline.py

-2
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ class RemoveUnusedJsonSchamas(Step):
213213

214214
async def _run(self) -> StepResult:
215215
connector = self.context.connector
216-
connector_path = connector.code_directory
217-
manifest_path = connector.manifest_path
218216
python_path = connector.python_source_dir_path
219217
schemas_path = python_path / SCHEMAS_DIR_NAME
220218
logger = self.logger

airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/connectors/migrate_to_manifest_only/pipeline.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,24 @@
55
import json
66
import shutil
77
from pathlib import Path
8-
from typing import Any, Dict, List, Mapping, Union
8+
from typing import Any
99

1010
import git # type: ignore
1111
from anyio import Semaphore # type: ignore
1212
from connector_ops.utils import ConnectorLanguage # type: ignore
1313
from pipelines.airbyte_ci.connectors.consts import CONNECTOR_TEST_STEP_ID
14-
from pipelines.airbyte_ci.connectors.context import ConnectorContext, PipelineContext
14+
from pipelines.airbyte_ci.connectors.context import ConnectorContext
1515
from pipelines.airbyte_ci.connectors.migrate_to_manifest_only.manifest_component_transformer import ManifestComponentTransformer
1616
from pipelines.airbyte_ci.connectors.migrate_to_manifest_only.manifest_resolver import ManifestReferenceResolver
1717
from pipelines.airbyte_ci.connectors.migrate_to_manifest_only.utils import (
1818
get_latest_base_image,
1919
readme_for_connector,
2020
remove_parameters_from_manifest,
21-
revert_connector_directory,
2221
)
2322
from pipelines.airbyte_ci.connectors.reports import Report
2423
from pipelines.helpers.connectors.command import run_connector_steps
2524
from pipelines.helpers.connectors.yaml import read_yaml, write_yaml
26-
from pipelines.helpers.execution.run_steps import STEP_TREE, StepToRun, run_steps
25+
from pipelines.helpers.execution.run_steps import STEP_TREE, StepToRun
2726
from pipelines.models.steps import Step, StepResult, StepStatus
2827

2928
## GLOBAL VARIABLES ##
@@ -54,7 +53,7 @@ async def _run(self) -> StepResult:
5453
return StepResult(
5554
step=self,
5655
status=StepStatus.SKIPPED,
57-
stderr=f"The connector is not a low-code connector.",
56+
stderr="The connector is not a low-code connector.",
5857
)
5958

6059
if connector.language == ConnectorLanguage.MANIFEST_ONLY:
@@ -153,7 +152,7 @@ async def _run(self) -> StepResult:
153152
connector = self.context.connector
154153

155154
## 1. Move manifest.yaml to the root level of the directory
156-
self.logger.info(f"Moving manifest to the root level of the directory")
155+
self.logger.info("Moving manifest to the root level of the directory")
157156
root_manifest_path = connector.code_directory / "manifest.yaml"
158157
connector.manifest_path.rename(root_manifest_path)
159158

@@ -173,7 +172,7 @@ async def _run(self) -> StepResult:
173172
## 3. Check for non-inline spec files and add the data to manifest.yaml
174173
spec_file = self._check_if_non_inline_spec(connector.python_source_dir_path)
175174
if spec_file:
176-
self.logger.info(f"Non-inline spec file found. Migrating spec to manifest")
175+
self.logger.info("Non-inline spec file found. Migrating spec to manifest")
177176
try:
178177
spec_data = self._read_spec_from_file(spec_file)
179178
manifest = read_yaml(root_manifest_path)
@@ -228,7 +227,7 @@ async def _run(self) -> StepResult:
228227
return StepResult(step=self, status=StepStatus.FAILURE, stdout=f"Failed to update acceptance-test-config.yml: {e}")
229228

230229
## 2. Update the connector's metadata
231-
self.logger.info(f"Updating metadata file")
230+
self.logger.info("Updating metadata file")
232231
try:
233232
metadata = read_yaml(connector.metadata_file_path)
234233

@@ -254,7 +253,7 @@ async def _run(self) -> StepResult:
254253
return StepResult(step=self, status=StepStatus.FAILURE, stdout=f"Failed to update metadata.yaml: {e}")
255254

256255
## 3. Update the connector's README
257-
self.logger.info(f"Updating README file")
256+
self.logger.info("Updating README file")
258257
readme = readme_for_connector(connector.technical_name)
259258

260259
with open(connector.code_directory / "README.md", "w") as file:

airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/connectors/migrate_to_manifest_only/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import subprocess
66
from pathlib import Path
7-
from typing import Any, Dict, List, Mapping, Union
7+
from typing import Any, List, Mapping
88

99
import jinja2
1010
import requests

0 commit comments

Comments
 (0)