-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move instrumentation out of controller-runtime (#104)
* Move instrumentation out of controller-runtime * Upgrade github action env to go1.19 * Update kind install command * Remove unused files in sieve_instrumentation * Rename reconciler_type to reconcile_fun
- Loading branch information
1 parent
409183d
commit 84a7b5c
Showing
50 changed files
with
638 additions
and
1,294 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 |
---|---|---|
@@ -1,76 +1,10 @@ | ||
# This file is automatically generated by gen_github_action.py on 2022-10-17 05:39:02.930097 | ||
# This file is automatically generated by gen_github_action.py on 2022-12-30 05:14:21.038641 | ||
name: Bug Reproduction | ||
'on': | ||
workflow_dispatch: null | ||
env: | ||
IMAGE_NAMESPACE: ghcr.io/sieve-project/action | ||
jobs: | ||
cass-operator: | ||
runs-on: self-hosted | ||
env: | ||
GOPATH: /home/runner/go | ||
KUBECONFIG: /home/runner/.kube/config | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Git | ||
run: 'git config --global user.name "sieve" | ||
git config --global user.email "[email protected]"' | ||
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.7 | ||
- name: Setup GitHub Package Registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin | ||
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
tar -zxvf helm-v3.6.0-linux-amd64.tar.gz | ||
sudo mv linux-amd64/helm /usr/local/bin/helm | ||
helm' | ||
- name: Sieve CI config generate | ||
run: 'echo "{\"workload_conditional_wait_timeout\": 1000}" > sieve_config.json | ||
cat sieve_config.json' | ||
- name: Sieve Test - cass-operator intermediate-state-1 | ||
run: python3 reproduce_bugs.py -c cass-operator -b intermediate-state-1 -r $IMAGE_NAMESPACE | ||
- name: Sieve Test - cass-operator intermediate-state-2 | ||
run: python3 reproduce_bugs.py -c cass-operator -b intermediate-state-2 -r $IMAGE_NAMESPACE | ||
- name: Sieve Test - cass-operator stale-state-1 | ||
run: python3 reproduce_bugs.py -c cass-operator -b stale-state-1 -r $IMAGE_NAMESPACE | ||
- uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: sieve-cass-operator-log | ||
path: log | ||
- name: Remove cluster | ||
if: always() | ||
run: kind delete cluster | ||
- uses: JamesIves/[email protected] | ||
name: Persistent oracle data | ||
with: | ||
branch: oracle-data | ||
folder: examples/cass-operator/oracle | ||
target-folder: cass-operator/oracle | ||
- name: Clean images | ||
if: always() | ||
run: docker image prune -a -f && docker builder prune -a -f && docker system df | ||
cassandra-operator: | ||
runs-on: self-hosted | ||
env: | ||
|
@@ -85,7 +19,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.19 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -95,13 +29,9 @@ jobs: | |
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
run: 'GO111MODULE="on" go install sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
|
@@ -151,7 +81,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.19 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -161,13 +91,9 @@ jobs: | |
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
run: 'GO111MODULE="on" go install sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
|
@@ -205,70 +131,6 @@ jobs: | |
- name: Clean images | ||
if: always() | ||
run: docker image prune -a -f && docker builder prune -a -f && docker system df | ||
elastic-operator: | ||
runs-on: self-hosted | ||
env: | ||
GOPATH: /home/runner/go | ||
KUBECONFIG: /home/runner/.kube/config | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Git | ||
run: 'git config --global user.name "sieve" | ||
git config --global user.email "[email protected]"' | ||
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.7 | ||
- name: Setup GitHub Package Registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin | ||
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
tar -zxvf helm-v3.6.0-linux-amd64.tar.gz | ||
sudo mv linux-amd64/helm /usr/local/bin/helm | ||
helm' | ||
- name: Sieve CI config generate | ||
run: 'echo "{\"workload_conditional_wait_timeout\": 1000}" > sieve_config.json | ||
cat sieve_config.json' | ||
- name: Sieve Test - elastic-operator stale-state-1 | ||
run: python3 reproduce_bugs.py -c elastic-operator -b stale-state-1 -r $IMAGE_NAMESPACE | ||
- name: Sieve Test - elastic-operator stale-state-2 | ||
run: python3 reproduce_bugs.py -c elastic-operator -b stale-state-2 -r $IMAGE_NAMESPACE | ||
- uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: sieve-elastic-operator-log | ||
path: log | ||
- name: Remove cluster | ||
if: always() | ||
run: kind delete cluster | ||
- uses: JamesIves/[email protected] | ||
name: Persistent oracle data | ||
with: | ||
branch: oracle-data | ||
folder: examples/elastic-operator/oracle | ||
target-folder: elastic-operator/oracle | ||
- name: Clean images | ||
if: always() | ||
run: docker image prune -a -f && docker builder prune -a -f && docker system df | ||
mongodb-operator: | ||
runs-on: self-hosted | ||
env: | ||
|
@@ -283,7 +145,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.19 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -293,13 +155,9 @@ jobs: | |
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
run: 'GO111MODULE="on" go install sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
|
@@ -355,7 +213,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.19 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -365,13 +223,9 @@ jobs: | |
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
run: 'GO111MODULE="on" go install sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
|
@@ -419,7 +273,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.19 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -429,13 +283,9 @@ jobs: | |
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
run: 'GO111MODULE="on" go install sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
|
@@ -487,7 +337,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.19 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -497,13 +347,9 @@ jobs: | |
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
run: 'GO111MODULE="on" go install sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
|
@@ -561,7 +407,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.19 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -571,13 +417,9 @@ jobs: | |
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
run: 'GO111MODULE="on" go install sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
|
@@ -627,7 +469,7 @@ jobs: | |
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.19 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -637,13 +479,9 @@ jobs: | |
- name: Install Python Packages | ||
run: pip install -r requirements.txt | ||
- name: Install Kind | ||
run: 'GO111MODULE="on" go get sigs.k8s.io/[email protected] | ||
run: 'GO111MODULE="on" go install sigs.k8s.io/[email protected] | ||
kind' | ||
- name: Install Mage | ||
run: 'go get -u github.com/magefile/mage | ||
mage -h' | ||
- name: Install Helm | ||
run: 'wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz | ||
|
Oops, something went wrong.