Skip to content

Commit

Permalink
Move instrumentation out of controller-runtime (#104)
Browse files Browse the repository at this point in the history
* 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
marshtompsxd authored Jan 10, 2023
1 parent 409183d commit 84a7b5c
Show file tree
Hide file tree
Showing 50 changed files with 638 additions and 1,294 deletions.
196 changes: 17 additions & 179 deletions .github/workflows/bug-reproduction.yml
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:
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
Loading

0 comments on commit 84a7b5c

Please sign in to comment.