feat(ci): change prerelease version format from 'dev' to 'preview' with 7-char SHA (#70970)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
959b224ee2
commit
724cb4a348
@@ -139,8 +139,8 @@ runs:
|
||||
CONNECTOR_VERSION_TAG="${{ inputs.tag-override }}"
|
||||
echo "🏷 Using provided tag override: $CONNECTOR_VERSION_TAG"
|
||||
elif [[ "${{ inputs.release-type }}" == "pre-release" ]]; then
|
||||
hash=$(git rev-parse --short=10 HEAD)
|
||||
CONNECTOR_VERSION_TAG="${CONNECTOR_VERSION}-dev.${hash}"
|
||||
hash=$(git rev-parse --short=7 HEAD)
|
||||
CONNECTOR_VERSION_TAG="${CONNECTOR_VERSION}-preview.${hash}"
|
||||
echo "🏷 Using pre-release tag: $CONNECTOR_VERSION_TAG"
|
||||
else
|
||||
CONNECTOR_VERSION_TAG="$CONNECTOR_VERSION"
|
||||
|
||||
2
.github/pr-welcome-community.md
vendored
2
.github/pr-welcome-community.md
vendored
@@ -21,7 +21,7 @@ As needed or by request, Airbyte Maintainers can execute the following slash com
|
||||
- `/run-live-tests` - Runs live tests for the modified connector(s).
|
||||
- `/run-regression-tests` - Runs regression tests for the modified connector(s).
|
||||
- `/build-connector-images` - Builds and publishes a pre-release docker image for the modified connector(s).
|
||||
- `/publish-connectors-prerelease` - Publishes pre-release connector builds (tagged as `{version}-dev.{git-sha}`) for all modified connectors in the PR.
|
||||
- `/publish-connectors-prerelease` - Publishes pre-release connector builds (tagged as `{version}-preview.{git-sha}`) for all modified connectors in the PR.
|
||||
|
||||
If you have any questions, feel free to ask in the PR comments or join our [Slack community](https://airbytehq.slack.com/).
|
||||
|
||||
|
||||
2
.github/pr-welcome-internal.md
vendored
2
.github/pr-welcome-internal.md
vendored
@@ -28,7 +28,7 @@ Airbyte Maintainers (that's you!) can execute the following slash commands on yo
|
||||
- `/run-live-tests` - Runs live tests for the modified connector(s).
|
||||
- `/run-regression-tests` - Runs regression tests for the modified connector(s).
|
||||
- `/build-connector-images` - Builds and publishes a pre-release docker image for the modified connector(s).
|
||||
- `/publish-connectors-prerelease` - Publishes pre-release connector builds (tagged as `{version}-dev.{git-sha}`) for all modified connectors in the PR.
|
||||
- `/publish-connectors-prerelease` - Publishes pre-release connector builds (tagged as `{version}-preview.{git-sha}`) for all modified connectors in the PR.
|
||||
- Connector release lifecycle (AI-powered):
|
||||
- `/ai-prove-fix` - Runs prerelease readiness checks, including testing against customer connections.
|
||||
- `/ai-canary-prerelease` - Rolls out prerelease to 5-10 connections for canary testing.
|
||||
|
||||
@@ -3,7 +3,7 @@ name: Publish Connectors Pre-release
|
||||
# It can be triggered via the /publish-connectors-prerelease slash command from PR comments,
|
||||
# or via the MCP tool `publish_connector_to_airbyte_registry`.
|
||||
#
|
||||
# Pre-release versions are tagged with the format: {version}-dev.{10-char-git-sha}
|
||||
# Pre-release versions are tagged with the format: {version}-preview.{7-char-git-sha}
|
||||
# These versions are NOT eligible for semver auto-advancement but ARE available
|
||||
# for version pinning via the scoped_configuration API.
|
||||
#
|
||||
@@ -66,7 +66,7 @@ jobs:
|
||||
- name: Get short SHA
|
||||
id: get-sha
|
||||
run: |
|
||||
SHORT_SHA=$(git rev-parse --short=10 HEAD)
|
||||
SHORT_SHA=$(git rev-parse --short=7 HEAD)
|
||||
echo "short-sha=$SHORT_SHA" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Get job variables
|
||||
@@ -135,7 +135,7 @@ jobs:
|
||||
> Publishing pre-release build for connector `${{ steps.resolve-connector.outputs.connector-name }}`.
|
||||
> Branch: `${{ inputs.gitref }}`
|
||||
>
|
||||
> Pre-release versions will be tagged as `{version}-dev.${{ steps.get-sha.outputs.short-sha }}`
|
||||
> Pre-release versions will be tagged as `{version}-preview.${{ steps.get-sha.outputs.short-sha }}`
|
||||
> and are available for version pinning via the scoped_configuration API.
|
||||
>
|
||||
> [View workflow run](${{ steps.job-vars.outputs.run-url }})
|
||||
|
||||
4
.github/workflows/publish_connectors.yml
vendored
4
.github/workflows/publish_connectors.yml
vendored
@@ -305,8 +305,8 @@ jobs:
|
||||
echo "connector-version=$(poe -qq get-version)" | tee -a $GITHUB_OUTPUT
|
||||
CONNECTOR_VERSION=$(poe -qq get-version)
|
||||
if [[ "${{ inputs.release-type }}" == "pre-release" ]]; then
|
||||
hash=$(git rev-parse --short=10 HEAD)
|
||||
echo "docker-image-tag=${CONNECTOR_VERSION}-dev.${hash}" | tee -a $GITHUB_OUTPUT
|
||||
hash=$(git rev-parse --short=7 HEAD)
|
||||
echo "docker-image-tag=${CONNECTOR_VERSION}-preview.${hash}" | tee -a $GITHUB_OUTPUT
|
||||
echo "release-type-flag=--pre-release" | tee -a $GITHUB_OUTPUT
|
||||
else
|
||||
echo "docker-image-tag=${CONNECTOR_VERSION}" | tee -a $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user