diff --git a/.github/workflows/cdk-connector-compatibility-test.yml b/.github/workflows/cdk-connector-compatibility-test.yml index 3939bbb3eac0..4e6e293d72c5 100644 --- a/.github/workflows/cdk-connector-compatibility-test.yml +++ b/.github/workflows/cdk-connector-compatibility-test.yml @@ -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 @@ -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! " +# - 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! " - 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 }} \ diff --git a/airbyte-cdk/bulk/build.gradle b/airbyte-cdk/bulk/build.gradle index a54e2f2c8489..25735e3ce81c 100644 --- a/airbyte-cdk/bulk/build.gradle +++ b/airbyte-cdk/bulk/build.gradle @@ -17,7 +17,6 @@ final var cdkVersion = { return props.getProperty('version', 'undefined') }() - allprojects { version = cdkVersion apply plugin: 'java-library' diff --git a/tools/bin/bulk-cdk-compatibility-test/create-gh-issue.sh b/tools/bin/bulk-cdk-compatibility-test/create-gh-issue.sh index 1666e92f986c..0313deca87fd 100755 --- a/tools/bin/bulk-cdk-compatibility-test/create-gh-issue.sh +++ b/tools/bin/bulk-cdk-compatibility-test/create-gh-issue.sh @@ -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 \