-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into danieldiamond/octavia-cli-generate-existin…
…g-tempaltes
- Loading branch information
Showing
4,708 changed files
with
128,075 additions
and
35,957 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# This is an action that runs when an Airbyte version bump is merged into master. | ||
# It fetches the changelog from the version bump PR and automatically creates a | ||
# Release for the version bump. | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
create-release: | ||
if: startsWith(github.event.head_commit.message, 'Bump Airbyte version') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: read | ||
steps: | ||
- name: Fetch Version Bump PR Body | ||
id: fetch_pr_body | ||
env: | ||
COMMIT_ID: ${{ github.event.head_commit.id }} | ||
shell: bash | ||
run: |- | ||
set -x | ||
PR=$(curl \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
https://api.github.com/repos/${{ github.repository }}/commits/$COMMIT_ID/pulls) | ||
# The printf helps escape characters so that jq can parse the output. | ||
# The sed removes carriage returns so that the body is easier to parse later, and | ||
# escapes backticks so that they are not executed as commands. | ||
PR_BODY=$(printf '%s' "$PR" | jq '.[0].body' | sed 's/\\r//g' | sed 's/`/\\`/g') | ||
echo ::set-output name=pr_body::${PR_BODY} | ||
- name: Extract Changelog | ||
id: extract_changelog | ||
shell: bash | ||
run: |- | ||
set -x | ||
PR_BODY=${{ steps.fetch_pr_body.outputs.pr_body}} | ||
if [[ $PR_BODY = "null" ]]; then | ||
echo "No PR body exists for this commit, so a release cannot be generated." | ||
exit 1 | ||
fi | ||
# this regex extracts just the changelog contents | ||
if [[ $PR_BODY =~ Changelog:(\\n)*(.*)\\n\\n ]]; then | ||
CHANGELOG="${BASH_REMATCH[2]}" | ||
else | ||
echo "PR body does not match the changelog extraction regex" | ||
exit 1 | ||
fi | ||
# save CHANGELOG into a multiline env var on the action itself, since Github Actions do not support outputting multiline strings well | ||
echo "CHANGELOG<<EOF" >> $GITHUB_ENV | ||
echo -e "$CHANGELOG" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Checkout Airbyte | ||
uses: actions/checkout@v2 | ||
- name: Get Version | ||
id: get_version | ||
shell: bash | ||
run: | | ||
VERSION=$(grep -w VERSION .env | cut -d"=" -f2) | ||
echo ::set-output name=VERSION::${VERSION} | ||
- name: Create Release | ||
id: create_release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
body: ${{ env.CHANGELOG }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
prerelease: true | ||
tag: v${{ steps.get_version.outputs.VERSION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Frontend Link Validation | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 14 * * *' | ||
|
||
jobs: | ||
validate-frontend-links: | ||
name: "Validate frontend links" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout Airbyte | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: "17" | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "lts/gallium" | ||
|
||
- name: Set up CI Gradle Properties | ||
run: | | ||
mkdir -p ~/.gradle/ | ||
cat > ~/.gradle/gradle.properties <<EOF | ||
org.gradle.jvmargs=-Xmx8g -Xss4m --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \ | ||
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \ | ||
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \ | ||
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \ | ||
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED | ||
org.gradle.workers.max=8 | ||
org.gradle.vfs.watch=false | ||
EOF | ||
- name: Run :airbyte-webapp:validateLinks | ||
run: SUB_BUILD=PLATFORM ./gradlew --no-daemon :airbyte-webapp:validateLinks --scan | ||
|
||
- name: Publish Failures to dev-frontend channel | ||
uses: abinoda/slack-action@master | ||
if: failure() | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} | ||
with: | ||
args: >- | ||
{\"channel\":\"C03088BTMFC\", \"blocks\":[ | ||
{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\":alarm: The periodic link validation failed!\n\n\"}}, | ||
{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"See details on <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|GitHub>\n\"}}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.