Skip to content

Commit 98ee8d6

Browse files
Marius Postajatinyadav-cc
Marius Posta
authored andcommitted
airbyte-ci: defensive programming (airbytehq#34607)
1 parent 5fad6cf commit 98ee8d6

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

airbyte-ci/connectors/pipelines/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ E.G.: running `pytest` on a specific test folder:
597597

598598
| Version | PR | Description |
599599
| ------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
600+
| 3.8.1 | [#34607](https://github.com/airbytehq/airbyte/pull/34607) | Improve gradle dependency cache volume protection. |
600601
| 3.8.0 | [#34316](https://github.com/airbytehq/airbyte/pull/34316) | Expose Dagger engine image name in `--ci-requirements` and add `--ci-requirements` to the `airbyte-ci` root command group. |
601602
| 3.7.3 | [#34560](https://github.com/airbytehq/airbyte/pull/34560) | Simplify Gradle task execution framework by removing local maven repo support. |
602603
| 3.7.2 | [#34555](https://github.com/airbytehq/airbyte/pull/34555) | Override secret masking in some very specific special cases. |

airbyte-ci/connectors/pipelines/pipelines/airbyte_ci/steps/gradle.py

+2
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ async def _run(self, *args: Any, **kwargs: Any) -> StepResult:
151151
.with_exec(
152152
sh_dash_c(
153153
[
154+
# Defensively delete the gradle home directory to avoid dirtying the cache volume.
155+
f"rm -rf {self.GRADLE_HOME_PATH}",
154156
# Load from the cache volume.
155157
f"(rsync -a --stats --mkpath {self.GRADLE_DEP_CACHE_PATH}/ {self.GRADLE_HOME_PATH} || true)",
156158
# Resolve all dependencies and write their checksums to './gradle/verification-metadata.dryrun.xml'.

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 = "3.8.0"
7+
version = "3.8.1"
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)