-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* coa first round (#3) * coa first round * enable manual trigger * fix otel dependency issue * fix api and k8s tests * add header --------- Co-authored-by: Jiawei Du <jiaweidu_js@163.com> * API done * tidy api/go.mod * fixes * enable more cases * refine ensureNamespace * refine tests * tidy k8s/go.mod * refine cases * verify * fix mage remove * refine go.mod in api & k8s * refine go.work and go.mod in tests * fix naming * temp * enable ginkogo test * fix deploymenthash and tested ginkgo tests * fix github.com/stretchr/objx * fix startup * testing * fix requeue due to update change * resolve a rebase issue * [Temp] Enable tests * Refine mage commands for tests * fix tests and github action * remove adomerge_staging branch * increase go test timeout to 1min * increase go test timeout to 5min * fix constant value * fix unnecessary changes * refine gatekeeper tests * Merge ADO changes to OSS * refine k8s magefile * fix gatekeeper tests * export symphony logs in integration test * fix requeue when deployment is in-progress * Remove unnecessary isDeploymentFinished, use summaryResult.State to check * Remove unnecessary isDeploymentFinished, use summaryResult.State to check * fix merge issues * first draft * checkpoint SAT * second version * Merge ADO K8S changes to OSS * honor OSS changes * expose delete sync delay for futuer override from helm charts * generate helm charts * fix typo in InstanceStatus * add debug logs for k8s target provider * refactor webhook and add metrics * refactor reconciliation policy to meet API spec * watch operationId change instead of annnotation change * webhook fixes * fix typo * refine reconciliation policy * refactor doc * remove version property in target/intance since we will have new version implementation * fix typo * fix dependency issues * clean up work * add ado suite test pipeline * resolve comments * resolve comments * resolve comments * resolve comments * fix helmTemplate * change timeout to 90 in local env mage file * upate cert manager chart version --------- Co-authored-by: Jiawei Du <jiaweidu_js@163.com> Co-authored-by: Jiawei Du <jiadu@microsoft.com>
- Loading branch information
1 parent
b737375
commit 44b451c
Showing
111 changed files
with
13,597 additions
and
3,148 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,112 @@ | ||
# This workflow will build a golang project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | ||
|
||
name: suite | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
env: | ||
ContainerRegistry: "ghcr.io" | ||
ContainerRegistryRepo: "ghcr.io/eclipse-symphony" | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Set up custom GOPATH | ||
run: | | ||
mkdir -p /home/runner/go | ||
echo "export GOPATH=/home/runner/go" >> $HOME/.bashrc | ||
echo "export PATH=\$PATH:\$GOPATH/bin" >> $HOME/.bashrc | ||
source $HOME/.bashrc | ||
- name: Install make | ||
run: sudo apt-get update && sudo apt-get install -y build-essential | ||
|
||
- name: Check docker version and images | ||
run: docker --version && docker images | ||
|
||
- name: Install kubectl | ||
run: | | ||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | ||
chmod +x kubectl | ||
sudo mv ./kubectl /usr/local/bin/kubectl | ||
kubectl version --client | ||
kubectl config view | ||
- name: Install Helm | ||
run: | | ||
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | ||
chmod 700 get_helm.sh | ||
./get_helm.sh | ||
- name: Install minikube | ||
run: | | ||
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | ||
chmod +x minikube | ||
sudo mv minikube /usr/local/bin/ | ||
minikube start | ||
kubectl config view | ||
- name: Install Mage | ||
run: | | ||
cd .. | ||
git clone https://github.com/magefile/mage | ||
cd mage | ||
go run bootstrap.go | ||
cd .. | ||
- name: Install Ginkgo | ||
run: | | ||
go install github.com/onsi/ginkgo/v2/ginkgo@v2.13.1 | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.ContainerRegistry }} | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build docker images | ||
run: | | ||
cd test/localenv/ | ||
mage build:all | ||
mage cluster:up | ||
- name: Go work init | ||
run: | | ||
mv go.work.bk go.work | ||
- name: Run ginkgo suite tests | ||
run: | | ||
cd test/integration/scenarios/06.ado/ | ||
ginkgo --cover --junit-report=junit-suite-tests.xml -r | ||
continue-on-error: true | ||
|
||
- name: Dump SymphonyLogs For ginkgo suite tests | ||
run: | | ||
cd test/localenv/ | ||
mage DumpSymphonyLogsForTest ginkgosuite | ||
continue-on-error: true | ||
|
||
- name: Collect and upload symphony test results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: symphony-suite-result | ||
path: | | ||
test/integration/scenarios/06.ado/junit-suite-tests.xml | ||
/tmp/symhony-integration-test-logs/**/*.log | ||
continue-on-error: true | ||
if: always() |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
go 1.20 | ||
|
||
use ./api | ||
|
||
use ./coa | ||
|
||
use ./k8s | ||
|
||
use ./cli | ||
use ./test/integration |
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,6 @@ | ||
go 1.19 | ||
|
||
use ( | ||
./mage | ||
./testutils | ||
) |
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,11 @@ | ||
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= | ||
github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60= | ||
github.com/cheggaaa/pb v2.0.7+incompatible h1:gLKifR1UkZ/kLkda5gC0K6c8g+jU2sINPtBeOiNlMhU= | ||
github.com/emicklei/go-restful v2.9.5+incompatible h1:spTtZBk5DYEvbxMVutUuTyh1Ao2r4iyvLdACqsl/Ljk= | ||
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= | ||
github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= | ||
go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= | ||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= | ||
go.uber.org/zap v1.19.0 h1:mZQZefskPPCMIBCSEH0v2/iUqqLrYtaeqwD6FUGUnFE= | ||
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e h1:+WEEuIdZHnUeJJmEUjyYC2gfUMj69yZXw17EnHg/otA= | ||
google.golang.org/genproto v0.0.0-20230526161137-0005af68ea54 h1:9NWlQfY2ePejTmfwUH1OWwmznFa+0kKcHGPDvcPza9M= |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.