-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-web-test-client
- Loading branch information
Showing
563 changed files
with
37,637 additions
and
12,615 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[*.{kt,kts}] | ||
max_line_length = 112 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
# https://help.github.com/articles/about-codeowners/ | ||
|
||
* @ikhoon @jrhee17 @minwoox @trustin |
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,34 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# This script checks if the current user is allowed to change to GitHub Actions workflows. The script should be | ||
# installed on self-hosted runners and defined in the `ACTIONS_RUNNER_HOOK_JOB_STARTED` environment variable. | ||
# The script is triggered when a job has been assigned to a runner, but before the job starts running. | ||
# https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/running-scripts-before-or-after-a-job#triggering-the-scripts | ||
|
||
if [[ $GITHUB_REF != refs/pull* ]]; then | ||
echo "Not a pull request. Skipping" | ||
exit 0 | ||
fi | ||
|
||
PR_NUMBER=$(echo "$GITHUB_REF" | awk -F / '{print $3}') | ||
# To obtain sufficient quota for gh cli, it is recommended to set PAT in the `GH_TOKEN` environment variable. | ||
# Check if there are any changes in .github/actions or .github/workflows | ||
WORKFLOW_CHANGES=$(gh -R github.com/line/armeria pr diff "$PR_NUMBER" --name-only | grep -c '^.github/workflows\|^.github/actions' || true) | ||
if [[ "$WORKFLOW_CHANGES" -eq "0" ]]; then | ||
echo "No changes in .github/actions or .github/workflows. Skipping." | ||
exit 0 | ||
fi | ||
|
||
# dependabot[bot] is a special user that is used to update dependencies in the workflow files. | ||
MAINTAINERS=("ikhoon" "dependabot[bot]" "jrhee17" "minwoox" "trustin") | ||
for maintainer in "${MAINTAINERS[@]}" | ||
do | ||
if [[ $maintainer == "$GITHUB_ACTOR" ]]; then | ||
echo "@$GITHUB_ACTOR is a maintainer. Allowed to change GitHub Actions workflows." | ||
exit 0 | ||
fi | ||
done | ||
|
||
echo "@$GITHUB_ACTOR is not a maintainer. Disallowed to change GitHub Actions workflows." | ||
exit 1 |
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,8 @@ | ||
components: | ||
/: | ||
- ikhoon | ||
- jrhee17 | ||
- minwoox | ||
- trustin | ||
brave/: | ||
- codefromthecrypt |
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,23 @@ | ||
name: 'Component Owners' | ||
on: | ||
# pull_request_target is suggested for projects where pull requests will be | ||
# made from forked repositories. If pull_request is used in these cases, | ||
# the github token will not have sufficient permission to update the PR. | ||
pull_request_target: | ||
|
||
permissions: | ||
contents: read # to read changed files | ||
issues: write # to read/write issue assignees | ||
pull-requests: write # to read/write PR reviewers | ||
|
||
jobs: | ||
run_self: | ||
runs-on: ubuntu-latest | ||
name: Auto Assign Owners | ||
steps: | ||
- uses: dyladan/component-owners@main | ||
with: | ||
config-file: .github/component_owners.yml | ||
repo-token: ${{ github.token }} | ||
assign-owners: "false" | ||
request-owner-reviews: "true" |
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,76 @@ | ||
name: E2E Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags-ignore: | ||
# The release versions will be verified by 'publish-release.yml' | ||
- armeria-* | ||
pull_request: | ||
|
||
concurrency: | ||
group: ci-e2e-chaos-tests-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CHAOS_MESH_VERSION: 2.6.2 | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
|
||
jobs: | ||
chaos-tests: | ||
name: Kubernetes Chaos test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 120 | ||
if: github.repository == 'line/armeria' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- id: setup-jdk-19 | ||
name: Setup Java 19 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: 19 | ||
|
||
- name: Setup Minikube | ||
id: minikube | ||
uses: medyagh/setup-minikube@latest | ||
|
||
- name: Install Chaos Mesh | ||
run: | | ||
curl -sSL https://mirrors.chaos-mesh.org/v${CHAOS_MESH_VERSION}/install.sh | bash | ||
kubectl wait --for=condition=Ready pods --all-namespaces --all --timeout=600s | ||
shell: bash | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Build Chaos test images | ||
run: | | ||
# The images should be built in the minikube docker environment | ||
eval $(minikube -p minikube docker-env) | ||
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:k8sBuild | ||
shell: bash | ||
|
||
- name: Run Chaos Tests - network-delay.yaml | ||
env: | ||
CHAOS_TEST: network-delay.yaml | ||
run: | | ||
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:test | ||
shell: bash | ||
|
||
- name: Run Chaos Tests - network-loss.yaml | ||
env: | ||
CHAOS_TEST: network-loss.yaml | ||
run: | | ||
# --rerun-tasks is required to run the tests because only the environment variable is changed | ||
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:test --rerun-tasks | ||
shell: bash | ||
|
||
- name: Run Chaos Tests - network-duplicate.yaml | ||
env: | ||
CHAOS_TEST: network-duplicate.yaml | ||
run: | | ||
./gradlew --no-daemon --stacktrace :it:kubernetes-chaos-tests:test --rerun-tasks | ||
shell: bash |
Oops, something went wrong.