Skip to content

Commit 79cb549

Browse files
committed
HTTP-155 Initial Flink contribution
Signed-off-by: davidradl <[email protected]>
1 parent bc340ab commit 79cb549

File tree

344 files changed

+16993
-13480
lines changed

Some content is hidden

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

344 files changed

+16993
-13480
lines changed

.checkstyle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<fileset-config file-format-version="1.2.0" simple-config="false" sync-formatter="false">
4+
<local-check-config name="maven-checkstyle-plugin validate" location="file:/Users/davidradley/flink-http-connector/tools/maven/checkstyle.xml" type="remote" description="maven-checkstyle-plugin configuration validate">
5+
<property name="checkstyle.header.file" value="/Users/davidradley/eclipse-http-flink/.metadata/.plugins/org.eclipse.core.resources/.projects/flink-connector-http/com.basistech.m2e.code.quality.checkstyleConfigurator/checkstyle-header-validate.txt"/>
6+
<property name="checkstyle.cache.file" value="${project_loc}/target/checkstyle-cachefile"/>
7+
<property name="checkstyle.suppressions.file" value="/Users/davidradley/eclipse-http-flink/.metadata/.plugins/org.eclipse.core.resources/.projects/flink-connector-http/com.basistech.m2e.code.quality.checkstyleConfigurator/checkstyle-suppressions-validate.xml"/>
8+
</local-check-config>
9+
<fileset name="java-sources-validate" enabled="true" check-config-name="maven-checkstyle-plugin validate" local="true">
10+
<file-match-pattern match-pattern="^src/main/java/.*\/.*\.java" include-pattern="true"/>
11+
<file-match-pattern match-pattern="^src/test/java/.*\/.*\.java" include-pattern="true"/>
12+
<file-match-pattern match-pattern="^src/main/resources/.*\.properties" include-pattern="true"/>
13+
<file-match-pattern match-pattern="^src/test/resources/.*\.properties" include-pattern="true"/>
14+
</fileset>
15+
</fileset-config>

.github/boring-cyborg.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
################################################################################
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
################################################################################
18+
19+
labelPRBasedOnFilePath:
20+
component=BuildSystem:
21+
- .github/**/*
22+
- tools/maven/*
23+
24+
component=Documentation:
25+
- docs/**/*
26+
27+
component=Connectors/Http:
28+
- flink-connector-http*/**/*
29+
30+
###### IssueLink Adder #################################################################################################
31+
# Insert Issue (Jira/Github etc) link in PR description based on the Issue ID in PR title.
32+
insertIssueLinkInPrDescription:
33+
# specify the placeholder for the issue link that should be present in the description
34+
descriptionIssuePlaceholderRegexp: "^Issue link: (.*)$"
35+
matchers:
36+
# you can have several matches - for different types of issues
37+
# only the first matching entry is replaced
38+
jiraIssueMatch:
39+
# specify the regexp of issue id that you can find in the title of the PR
40+
# the match groups can be used to build the issue id (${1}, ${2}, etc.).
41+
titleIssueIdRegexp: \[(FLINK-[0-9]+)\]
42+
# the issue link to be added. ${1}, ${2} ... are replaced with the match groups from the
43+
# title match (remember to use quotes)
44+
descriptionIssueLink: "[${1}](https://issues.apache.org/jira/browse/${1}/)"
45+
docOnlyIssueMatch:
46+
titleIssueIdRegexp: \[hotfix\]
47+
descriptionIssueLink: "`Documentation only change, no JIRA issue`"
48+
49+
###### Title Validator #################################################################################################
50+
# Verifies if commit/PR titles match the regexp specified
51+
verifyTitles:
52+
# Regular expression that should be matched by titles of commits or PR
53+
titleRegexp: ^\[FLINK-[0-9]+\].*$|^\[FLINK-XXXXX\].*$|^\[hotfix].*$
54+
# If set to true, it will always check the PR title (as opposed to the individual commits).
55+
alwaysUsePrTitle: false
56+
# If set to true, it will only check the commit in case there is a single commit.
57+
# In case of multiple commits it will check PR title.
58+
# This reflects the standard behaviour of Github that for `Squash & Merge` GitHub
59+
# uses the PR title rather than commit messages for the squashed commit ¯\_(ツ)_/¯
60+
# For single-commit PRs it takes the squashed commit message from the commit as expected.
61+
#
62+
# If set to false it will check all commit messages. This is useful when you do not squash commits at merge.
63+
validateEitherPrOrSingleCommitTitle: true
64+
# The title the GitHub status should appear from.
65+
statusTitle: "Title Validator"
66+
# A custom message to be displayed when the title passes validation.
67+
successMessage: "Validation successful!"
68+
# A custom message to be displayed when the title fails validation.
69+
# Allows insertion of ${type} (commit/PR), ${title} (the title validated) and ${regex} (the titleRegexp above).
70+
failureMessage: "Wrong ${type} title: ${title}"
71+
72+
# Various Flags to control behaviour of the "Labeler"
73+
labelerFlags:
74+
# If this flag is changed to 'false', labels would only be added when the PR is first created
75+
# and not when existing PR is updated.
76+
# The default is 'true' which means the labels would be added when PR is updated even if they
77+
# were removed by the user
78+
labelOnPRUpdates: true
79+
80+
# Comment to be posted to welcome users when they open their first PR
81+
firstPRWelcomeComment: >
82+
Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)
83+
84+
# Comment to be posted to congratulate user on their first merged PR
85+
firstPRMergeComment: >
86+
Awesome work, congrats on your first merged pull request!

.github/pull_request_template.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/prepare_release_branch.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/push_pr.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
################################################################################
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
################################################################################
18+
19+
# We need to specify repo related information here since Apache INFRA doesn't differentiate
20+
# between several workflows with the same names while preparing a report for GHA usage
21+
# https://infra-reports.apache.org/#ghactions
22+
name: Flink Connector HTTP CI
23+
on: [push, pull_request]
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: true
27+
jobs:
28+
compile_and_test:
29+
strategy:
30+
matrix:
31+
flink: [ 1.20.0 ]
32+
jdk: [ '11, 17, 21' ]
33+
uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils
34+
with:
35+
flink_version: ${{ matrix.flink }}
36+
jdk_version: ${{ matrix.jdk }}
37+

.github/workflows/weekly.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
################################################################################
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
################################################################################
18+
19+
# We need to specify repo related information here since Apache INFRA doesn't differentiate
20+
# between several workflows with the same names while preparing a report for GHA usage
21+
# https://infra-reports.apache.org/#ghactions
22+
name: Weekly Flink Connector HTTP CI
23+
on:
24+
schedule:
25+
- cron: "0 0 * * 0"
26+
workflow_dispatch:
27+
jobs:
28+
compile_and_test:
29+
if: github.repository_owner == 'apache'
30+
strategy:
31+
matrix:
32+
flink_branches: [{
33+
flink: 2.1-SNAPSHOT,
34+
branch: main
35+
}]
36+
uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils
37+
with:
38+
flink_version: ${{ matrix.flink_branches.flink }}
39+
connector_branch: ${{ matrix.flink_branches.branch }}
40+
jdk_version: ${{ matrix.flink_branches.jdk || '11, 17, 21' }}
41+
run_dependency_convergence: false

0 commit comments

Comments
 (0)