Skip to content

Commit

Permalink
airbyte-ci: log more context info in CI (#33994)
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere committed Jan 8, 2024
1 parent 8b00460 commit 4955933
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions airbyte-ci/connectors/pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ E.G.: running `pytest` on a specific test folder:

| Version | PR | Description |
| ------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| 3.1.0 | [#33994](https://github.com/airbytehq/airbyte/pull/33994) | Log more context information in CI. |
| 3.0.2 | [#33987](https://github.com/airbytehq/airbyte/pull/33987) | Fix type checking issue when running --help |
| 3.0.1 | [#33981](https://github.com/airbytehq/airbyte/pull/33981) | Fix issues with deploying dagster, pin pendulum version in dagster-cli install |
| 3.0.0 | [#33582](https://github.com/airbytehq/airbyte/pull/33582) | Upgrade to Dagger 0.9.5 |
Expand Down
7 changes: 5 additions & 2 deletions airbyte-ci/connectors/pipelines/pipelines/cli/airbyte_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from pipelines.cli.lazy_group import LazyGroup
from pipelines.cli.telemetry import click_track_command
from pipelines.consts import DAGGER_WRAP_ENV_VAR_NAME, CIContext
from pipelines.dagger.actions.connector.hooks import get_dagger_sdk_version
from pipelines.helpers import github
from pipelines.helpers.git import get_current_git_branch, get_current_git_revision
from pipelines.helpers.utils import get_current_epoch_time
Expand Down Expand Up @@ -81,7 +82,9 @@ def set_working_directory_to_root() -> None:
os.chdir(working_dir)


def log_git_info(ctx: click.Context) -> None:
def log_context_info(ctx: click.Context) -> None:
main_logger.info(f"Running airbyte-ci version {__installed_version__}")
main_logger.info(f"Running dagger version {get_dagger_sdk_version()}")
main_logger.info("Running airbyte-ci in CI mode.")
main_logger.info(f"CI Context: {ctx.obj['ci_context']}")
main_logger.info(f"CI Report Bucket Name: {ctx.obj['ci_report_bucket_name']}")
Expand Down Expand Up @@ -235,7 +238,7 @@ async def airbyte_ci(ctx: click.Context) -> None: # noqa D103
check_local_docker_configuration()

if not ctx.obj["is_local"]:
log_git_info(ctx)
log_context_info(ctx)


set_working_directory_to_root()
Expand Down
2 changes: 1 addition & 1 deletion airbyte-ci/connectors/pipelines/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pipelines"
version = "3.0.2"
version = "3.1.0"
description = "Packaged maintained by the connector operations team to perform CI for connectors' pipelines"
authors = ["Airbyte <contact@airbyte.io>"]

Expand Down

0 comments on commit 4955933

Please sign in to comment.