Skip to content

Commit 34cfc95

Browse files
authored
Merge branch 'master' into patch-2
2 parents 070cd75 + 0ec6c72 commit 34cfc95

1,909 files changed

Lines changed: 74126 additions & 70430 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/community-pr-welcome.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## 👋 Welcome to Airbyte!
2+
3+
Thank you for your contribution from **{{ .repo_name }}**! We're excited to have you in the Airbyte community.
4+
5+
### Helpful Resources
6+
7+
- [PR Guidelines](https://docs.airbyte.com/contributing-to-airbyte): Check our guidelines for contributions.
8+
- [Developing Connectors Locally](https://docs.airbyte.com/platform/connector-development/local-connector-development): Learn how to set up your environment and develop connectors locally.
9+
- If you enable [BYO Connector Credentials](https://docs.airbyte.com/platform/connector-development/local-connector-development#managing-connector-secrets) within your fork, you can view your test results [here](https://github.com/{{ .repo_name }}/actions/workflows/run-connector-tests-command.yml).
10+
11+
### PR Slash Commands
12+
13+
As needed or by request, Airbyte Maintainers can execute the following slash commands on your PR:
14+
- `/format-fix` - Fixes most formatting issues.
15+
- `/bump-version` - Bumps connector versions.
16+
- `/run-connector-tests` - Runs connector tests.
17+
18+
If you have any questions, feel free to ask in the PR comments or join our [Slack community](https://airbytehq.slack.com/).

.github/workflows/airbyte-cdk.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: CDK Tests
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
env:
8+
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
9+
S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
10+
11+
on:
12+
workflow_dispatch:
13+
push:
14+
branches:
15+
- master
16+
pull_request:
17+
types:
18+
- opened
19+
- reopened
20+
- synchronize
21+
22+
jobs:
23+
changes:
24+
runs-on: ubuntu-24.04
25+
outputs:
26+
java: ${{ steps.changes.outputs.java }}
27+
28+
steps:
29+
- name: Checkout Airbyte
30+
if: github.event_name != 'pull_request'
31+
uses: actions/checkout@v4
32+
- id: changes
33+
uses: dorny/paths-filter@v2
34+
with:
35+
# Note: expressions within a filter are OR'ed
36+
filters: |
37+
java:
38+
- 'airbyte-cdk/java/**/*'
39+
- 'airbyte-cdk/bulk/**/*'
40+
41+
run-check:
42+
needs:
43+
- changes
44+
if: needs.changes.outputs.java == 'true'
45+
# As of now, 16 cores seems to be enough.
46+
# Any revision upwards should be based on a performance analysis of gradle scans.
47+
# See https://github.com/airbytehq/airbyte/pull/36055 for an example of this,
48+
# which explains why which we went down from 64 cores to 16.
49+
runs-on: linux-24.04-large # Custom runner, defined in GitHub org settings
50+
name: Gradle Check
51+
timeout-minutes: 60
52+
steps:
53+
- name: Checkout Airbyte
54+
uses: actions/checkout@v4
55+
- uses: actions/setup-java@v3
56+
with:
57+
distribution: "zulu"
58+
java-version: "21"
59+
- name: Run CDK Tests
60+
uses: burrunan/gradle-cache-action@v3
61+
env:
62+
CI: true
63+
with:
64+
job-id: gradle-check
65+
read-only: ${{ github.ref != 'refs/heads/master' }}
66+
gradle-distribution-sha-256-sum-warning: false
67+
concurrent: true
68+
# TODO: be able to remove the skipSlowTests property
69+
arguments: --scan :airbyte-cdk:check -DskipSlowTests=true
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# When a PR is has the auto-merge feature enabled or disabled, this workflow adds or updates
2+
# warning text at the bottom of the PR description.
3+
4+
name: "Add Auto-Merge Notification Text"
5+
on:
6+
pull_request:
7+
types: [auto_merge_enabled, auto_merge_disabled]
8+
9+
jobs:
10+
update-description:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
14+
steps:
15+
- name: Add Auto-Merge Notice
16+
if: github.event.action == 'auto_merge_enabled'
17+
uses: bcgov/action-pr-description-add@v2.0.0
18+
with:
19+
add_markdown: |
20+
> [!IMPORTANT]
21+
> **Auto-merge enabled.**
22+
>
23+
> _This PR is set to merge automatically when all requirements are met._
24+
25+
- name: Remove Auto-Merge Notice
26+
if: github.event.action == 'auto_merge_disabled'
27+
uses: bcgov/action-pr-description-add@v2.0.0
28+
with:
29+
add_markdown: |
30+
> [!NOTE]
31+
> **Auto-merge may have been disabled. Please check the PR status to confirm.**

.github/workflows/bump-bulk-cdk-and-release-connectors-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Bump Bulk CDK Version
1+
name: Bump Bulk CDK + Release Connectors
22
on:
33
workflow_dispatch:
44
inputs:
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Community PR Welcome Message
2+
3+
# This workflow automatically adds a welcome message to PRs from community contributors (forks)
4+
# It includes a link to the local connector development documentation and other helpful resources
5+
#
6+
# MANUAL TESTING INSTRUCTIONS:
7+
# To manually test this workflow without a real fork PR, temporarily comment-out the fork condition in the
8+
# `if:` clause and uncomment the "synchronize" event type as a workflow trigger.
9+
# Then the workflow will run for all new commits.
10+
#
11+
# Before merging, remember to again comment-out the "synchronize" clause and uncomment the `if:` condition.
12+
13+
on:
14+
pull_request_target:
15+
types:
16+
- opened
17+
- reopened
18+
# Toggle this line, uncommenting for testing:
19+
# - synchronize
20+
21+
jobs:
22+
welcome-community-contributor:
23+
name: Welcome Community Contributor
24+
# Comment-out this line for manual testing:
25+
if: github.event.pull_request.head.repo.fork == true
26+
permissions:
27+
contents: read
28+
issues: write
29+
pull-requests: write
30+
runs-on: ubuntu-24.04
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
35+
- name: Render template
36+
id: template
37+
uses: chuhlomin/render-template@v1.4
38+
with:
39+
template: .github/community-pr-welcome.md
40+
vars: |
41+
repo_name: ${{ github.event.pull_request.head.repo.full_name }}
42+
43+
- name: Create comment
44+
uses: peter-evans/create-or-update-comment@v4
45+
with:
46+
issue-number: ${{ github.event.pull_request.number }}
47+
body: ${{ steps.template.outputs.result }}

0 commit comments

Comments
 (0)