Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/cdk-connector-compatibility-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
id: run-unit-tests
if: matrix.connector
working-directory: airbyte-integrations/connectors/${{ matrix.connector }}
run: poe test-unit-tests
run: exit 1

- name: Run Integration Tests
id: run-integration-tests
Expand All @@ -119,33 +119,33 @@ jobs:
if: always()
run: |
echo "should-notify=${{
github.event_name == 'schedule' &&
startsWith(matrix.connector, 'destination-') &&
(steps.run-unit-tests.outcome == 'failure' || steps.run-integration-tests.outcome == 'failure')
}}" >> $GITHUB_OUTPUT

- name: Slack Notification on Failure
if: steps.check-move-notify.outputs.should-notify == 'true'
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
with:
token: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }}
method: chat.postMessage
payload: |
channel: C09H56MT8J2
text: "`${{ matrix.connector }}` connector tests failed when using local CDK! <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|View Test Logs>"
# - name: Slack Notification on Failure
# if: steps.check-move-notify.outputs.should-notify == 'true'
# uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
# with:
# token: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }}
# method: chat.postMessage
# payload: |
# channel: C09H56MT8J2
# text: "`${{ matrix.connector }}` connector tests failed when using local CDK! <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|View Test Logs>"

- name: Authenticate as GitHub App
if: steps.check-move-notify.outputs.should-notify == 'true'
if: always() && steps.check-move-notify.outputs.should-notify == 'true'
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2
id: app-token
with:
owner: "airbytehq"
repositories: "airbyte-internal-issues"
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}

- name: Create Github Issue on Failure
if: steps.check-move-notify.outputs.should-notify == 'true'
if: always() && steps.check-move-notify.outputs.should-notify == 'true'
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: tools/bin/bulk-cdk-compatibility-test/create-gh-issue.sh \
${{ matrix.connector }} \
${{ github.sha }} \
Expand Down
1 change: 0 additions & 1 deletion airbyte-cdk/bulk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ final var cdkVersion = {
return props.getProperty('version', 'undefined')
}()


allprojects {
version = cdkVersion
apply plugin: 'java-library'
Expand Down
2 changes: 2 additions & 0 deletions tools/bin/bulk-cdk-compatibility-test/create-gh-issue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ else
issue_url=$(gh issue create -t "$title" -b "$INITIAL_BODY" -R $ISSUES_REPOSITORY)
echo "Created issue ${issue_url}."
item_id=$(gh project item-add $PROJECT_NUMBER --owner "airbytehq" --url "$issue_url" --format json --jq '.id')
echo "Created project item with ID $item_id."
project_id=$(gh project view $PROJECT_NUMBER --owner "airbytehq" --format json --jq '.id')
echo "Project ID is $project_id."
gh project item-edit \
--id $item_id \
--project-id $project_id \
Expand Down
Loading