Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: run e2e test locally #689

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

xavier-hou
Copy link
Member

@xavier-hou xavier-hou commented Jun 18, 2022

Pre-Checklist

Note: please complete ALL items in the following checklist.

  • I have read through the CONTRIBUTING.md documentation.
  • My code has the necessary comments and documentation (if needed).
  • I have added relevant tests

Description

Support to run e2e test locally.

Add a script to accomplish this.

  • prepare test environment and configuration files.
  • dtm apply
  • check execution results
  • clean test environment

usage

bash hack/e2e/e2e-run.sh

This test script depends on the following environment variables:

  • GITHUB_USER
  • GITHUB_TOKEN
  • DOCKERHUB_USERNAME
  • DOCKERHUB_TOKEN

Set it before test.

Note: Maybe we can store these variables in a specific files and use source to load them, but now users need to manually set them.

Related Issues

#664

New Behavior (screenshots if needed)

{22-06-18 12:39}hxc-macbook-air:e2e@feat-e2e-test-local✗✗✗✗✗✗ hxc% bash e2e-run.sh                  
[dtm e2e test script] Create k8s cluster by kind!
Deleting cluster "devstream-e2e" ...
Got OS type: darwin and CPU arch: amd64
Requires having Docker installed
All tools save in ./../../hack/e2e/../../testbin directory
kind already downloaded
kubectl already downloaded
/Users/hxc/WorkFolder/regular/public/devstream/hack/e2e
v1.22.0: Pulling from kindest/node
Digest: sha256:b8bda84bb3a190e6e028b1760d277454a72267a5454b57db34437c34a588d047
Status: Image is up to date for kindest/node:v1.22.0
docker.io/kindest/node:v1.22.0
Creating cluster "devstream-e2e" ...
 ✓ Ensuring node image (kindest/node:v1.22.0) 🖼 
 ✓ Preparing nodes 📦  
 ✓ Writing configuration 📜 
 ✓ Starting control-plane 🕹️ 
 ✓ Installing CNI 🔌 
 ✓ Installing StorageClass 💾 
Set kubectl context to "kind-devstream-e2e"
You can now use your cluster with:

kubectl cluster-info --context kind-devstream-e2e

Not sure what to do next? 😅  Check out https://kind.sigs.k8s.io/docs/user/quick-start/
[dtm e2e test script] Start dtm e2e test locally!
2022-06-18 12:40:25 ℹ [INFO]  Apply started.
2022-06-18 12:40:25 ℹ [INFO]  Using dir <.devstream> to store plugins.
2022-06-18 12:40:25 ℹ [INFO]  Using local backend. State file: devstream.state.
2022-06-18 12:40:25 ℹ [INFO]  Tool (github-repo-scaffolding-golang/default) found in config but doesn't exist in the state, will be created.
2022-06-18 12:40:25 ℹ [INFO]  Tool (argocd/default) found in config but doesn't exist in the state, will be created.
2022-06-18 12:40:25 ℹ [INFO]  Tool (githubactions-golang/default) found in config but doesn't exist in the state, will be created.
2022-06-18 12:40:25 ℹ [INFO]  Tool (argocdapp/default) found in config but doesn't exist in the state, will be created.
2022-06-18 12:40:25 ℹ [INFO]  Start executing the plan.
2022-06-18 12:40:25 ℹ [INFO]  Changes count: 4.
2022-06-18 12:40:25 ℹ [INFO]  -------------------- [  Processing progress: 1/4.  ] --------------------
2022-06-18 12:40:25 ℹ [INFO]  Processing: (github-repo-scaffolding-golang/default) -> Create ...
2022-06-18 12:40:27 ℹ [INFO]  The repo dtm-e2e-go has been created.
2022-06-18 12:40:40 ✔ [SUCCESS]  Tool (github-repo-scaffolding-golang/default) Create done.
2022-06-18 12:40:40 ℹ [INFO]  -------------------- [  Processing progress: 2/4.  ] --------------------
2022-06-18 12:40:40 ℹ [INFO]  Processing: (argocd/default) -> Create ...
2022-06-18 12:40:42 ℹ [INFO]  Creating or updating helm chart ...
2022/06/18 12:40:46 creating 1 resource(s)
2022/06/18 12:40:46 creating 1 resource(s)
2022/06/18 12:40:46 creating 1 resource(s)
2022/06/18 12:40:46 creating 1 resource(s)
2022/06/18 12:40:46 Clearing discovery cache
2022/06/18 12:40:46 beginning wait for 4 resources with timeout of 1m0s
2022/06/18 12:40:50 creating 43 resource(s)
2022/06/18 12:40:50 beginning wait for 43 resources with timeout of 10m0s
2022/06/18 12:40:51 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:40:53 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:40:55 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:40:57 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:40:59 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:01 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:03 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:05 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:07 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:09 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:11 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:13 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:15 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:17 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:19 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:21 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:23 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:25 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:27 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:29 Deployment is not ready: argocd/argocd-notifications-controller. 0 out of 1 expected pods are ready
2022/06/18 12:41:31 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:33 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:35 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:37 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:39 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:41 Deployment is not ready: argocd/argocd-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:43 Deployment is not ready: argocd/argocd-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:45 Deployment is not ready: argocd/argocd-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:47 Deployment is not ready: argocd/argocd-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:49 Deployment is not ready: argocd/argocd-server. 0 out of 1 expected pods are ready
2022/06/18 12:41:52 release installed successfully: argocd/argo-cd-4.9.4
2022-06-18 12:41:52 ✔ [SUCCESS]  Tool (argocd/default) Create done.
2022-06-18 12:41:52 ℹ [INFO]  -------------------- [  Processing progress: 3/4.  ] --------------------
2022-06-18 12:41:52 ℹ [INFO]  Processing: (githubactions-golang/default) -> Create ...
2022-06-18 12:41:53 ℹ [INFO]  Creating GitHub Actions workflow pr-builder.yml ...
2022-06-18 12:41:53 ✔ [SUCCESS]  Github Actions workflow pr-builder.yml created.
2022-06-18 12:41:54 ℹ [INFO]  Creating GitHub Actions workflow main-builder.yml ...
2022-06-18 12:41:54 ✔ [SUCCESS]  Github Actions workflow main-builder.yml created.
2022-06-18 12:41:54 ✔ [SUCCESS]  Tool (githubactions-golang/default) Create done.
2022-06-18 12:41:54 ℹ [INFO]  -------------------- [  Processing progress: 4/4.  ] --------------------
2022-06-18 12:41:54 ℹ [INFO]  Processing: (argocdapp/default) -> Create ...
2022-06-18 12:41:55 ℹ [INFO]  application.argoproj.io/dtm-e2e-go created
2022-06-18 12:41:55 ✔ [SUCCESS]  Tool (argocdapp/default) Create done.
2022-06-18 12:41:55 ℹ [INFO]  -------------------- [  Processing done.  ] --------------------
2022-06-18 12:41:55 ✔ [SUCCESS]  All plugins applied successfully.
2022-06-18 12:41:55 ✔ [SUCCESS]  Apply finished.
[dtm e2e test script] Start check pod status!
pod not ready yet...
pod not ready yet...
pod not ready yet...
[dtm e2e test script] Pod is ready!
2022-06-18 12:42:10 ℹ [INFO]  Verify started.
2022-06-18 12:42:10 ℹ [INFO]  Using dir <.devstream> to store plugins.
2022-06-18 12:42:11 ℹ [INFO]  Using local backend. State file: devstream.state.
2022-06-18 12:42:12 ✔ [SUCCESS]  Verify succeeded.
2022-06-18 12:42:12 ℹ [INFO]  Delete started.
2022-06-18 12:42:12 ℹ [INFO]  Using dir <.devstream> to store plugins.
2022-06-18 12:42:13 ℹ [INFO]  Using local backend. State file: devstream.state.
2022-06-18 12:42:13 ℹ [INFO]  Tool (githubactions-golang/default) will be deleted.
2022-06-18 12:42:13 ℹ [INFO]  Tool (argocdapp/default) will be deleted.
2022-06-18 12:42:13 ℹ [INFO]  Tool (github-repo-scaffolding-golang/default) will be deleted.
2022-06-18 12:42:13 ℹ [INFO]  Tool (argocd/default) will be deleted.
2022-06-18 12:42:13 ℹ [INFO]  Start executing the plan.
2022-06-18 12:42:13 ℹ [INFO]  Changes count: 4.
2022-06-18 12:42:13 ℹ [INFO]  -------------------- [  Processing progress: 1/4.  ] --------------------
2022-06-18 12:42:13 ℹ [INFO]  Processing: (githubactions-golang/default) -> Delete ...
2022-06-18 12:42:14 ℹ [INFO]  Deleting GitHub Actions workflow pr-builder.yml ...
2022-06-18 12:42:15 ✔ [SUCCESS]  GitHub Actions workflow pr-builder.yml removed.
2022-06-18 12:42:15 ℹ [INFO]  Deleting GitHub Actions workflow main-builder.yml ...
2022-06-18 12:42:16 ✔ [SUCCESS]  GitHub Actions workflow main-builder.yml removed.
2022-06-18 12:42:16 ℹ [INFO]  Prepare to delete 'githubactions-golang_default' from States.
2022-06-18 12:42:16 ✔ [SUCCESS]  Tool (githubactions-golang/default) delete done.
2022-06-18 12:42:16 ℹ [INFO]  -------------------- [  Processing progress: 2/4.  ] --------------------
2022-06-18 12:42:16 ℹ [INFO]  Processing: (argocdapp/default) -> Delete ...
2022-06-18 12:42:17 ℹ [INFO]  application.argoproj.io "dtm-e2e-go" deleted
2022-06-18 12:42:17 ℹ [INFO]  Prepare to delete 'argocdapp_default' from States.
2022-06-18 12:42:17 ✔ [SUCCESS]  Tool (argocdapp/default) delete done.
2022-06-18 12:42:17 ℹ [INFO]  -------------------- [  Processing progress: 3/4.  ] --------------------
2022-06-18 12:42:17 ℹ [INFO]  Processing: (github-repo-scaffolding-golang/default) -> Delete ...
2022-06-18 12:42:18 ✔ [SUCCESS]  GitHub repo dtm-e2e-go removed.
2022-06-18 12:42:18 ℹ [INFO]  Prepare to delete 'github-repo-scaffolding-golang_default' from States.
2022-06-18 12:42:18 ✔ [SUCCESS]  Tool (github-repo-scaffolding-golang/default) delete done.
2022-06-18 12:42:18 ℹ [INFO]  -------------------- [  Processing progress: 4/4.  ] --------------------
2022-06-18 12:42:18 ℹ [INFO]  Processing: (argocd/default) -> Delete ...
2022-06-18 12:42:19 ℹ [INFO]  Uninstalling argocd helm chart.
2022/06/18 12:42:19 uninstall: Deleting argocd
2022/06/18 12:42:20 Starting delete for "argocd-redis" Service
2022/06/18 12:42:20 Starting delete for "argocd-server" Service
2022/06/18 12:42:20 Starting delete for "argocd-application-controller" Service
2022/06/18 12:42:20 Starting delete for "argocd-repo-server" Service
2022/06/18 12:42:20 Starting delete for "argocd-dex-server" Service
2022/06/18 12:42:20 Starting delete for "argocd-applicationset-controller" Service
2022/06/18 12:42:21 Starting delete for "argocd-application-controller" StatefulSet
2022/06/18 12:42:21 Starting delete for "argocd-redis" Deployment
2022/06/18 12:42:21 Starting delete for "argocd-repo-server" Deployment
2022/06/18 12:42:21 Starting delete for "argocd-applicationset-controller" Deployment
2022/06/18 12:42:21 Starting delete for "argocd-server" Deployment
2022/06/18 12:42:21 Starting delete for "argocd-dex-server" Deployment
2022/06/18 12:42:21 Starting delete for "argocd-notifications-controller" Deployment
2022/06/18 12:42:21 Starting delete for "argocd-dex-server" RoleBinding
2022/06/18 12:42:21 Starting delete for "argocd-applicationset-controller" RoleBinding
2022/06/18 12:42:21 Starting delete for "argocd-repo-server" RoleBinding
2022/06/18 12:42:21 Starting delete for "argocd-application-controller" RoleBinding
2022/06/18 12:42:21 Starting delete for "argocd-notifications-controller" RoleBinding
2022/06/18 12:42:21 Starting delete for "argocd-server" RoleBinding
2022/06/18 12:42:21 Starting delete for "argocd-dex-server" Role
2022/06/18 12:42:21 Starting delete for "argocd-applicationset-controller" Role
2022/06/18 12:42:21 Starting delete for "argocd-application-controller" Role
2022/06/18 12:42:21 Starting delete for "argocd-repo-server" Role
2022/06/18 12:42:21 Starting delete for "argocd-server" Role
2022/06/18 12:42:21 Starting delete for "argocd-notifications-controller" Role
2022/06/18 12:42:21 Starting delete for "argocd-server" ClusterRoleBinding
2022/06/18 12:42:21 Starting delete for "argocd-application-controller" ClusterRoleBinding
2022/06/18 12:42:21 Starting delete for "argocd-server" ClusterRole
2022/06/18 12:42:21 Starting delete for "argocd-application-controller" ClusterRole
2022/06/18 12:42:21 Starting delete for "argocd-gpg-keys-cm" ConfigMap
2022/06/18 12:42:21 Starting delete for "argocd-rbac-cm" ConfigMap
2022/06/18 12:42:21 Starting delete for "argocd-ssh-known-hosts-cm" ConfigMap
2022/06/18 12:42:21 Starting delete for "argocd-tls-certs-cm" ConfigMap
2022/06/18 12:42:21 Starting delete for "argocd-notifications-controller-cm" ConfigMap
2022/06/18 12:42:21 Starting delete for "argocd-cm" ConfigMap
2022/06/18 12:42:21 Starting delete for "argocd-secret" Secret
2022/06/18 12:42:21 Starting delete for "argocd-notifications-controller-secret" Secret
2022/06/18 12:42:21 Starting delete for "argocd-dex-server" ServiceAccount
2022/06/18 12:42:21 Starting delete for "argocd-application-controller" ServiceAccount
2022/06/18 12:42:21 Starting delete for "argocd-applicationset-controller" ServiceAccount
2022/06/18 12:42:21 Starting delete for "argocd-notifications-controller" ServiceAccount
2022/06/18 12:42:21 Starting delete for "argocd-repo-server" ServiceAccount
2022/06/18 12:42:21 Starting delete for "argocd-server" ServiceAccount
2022/06/18 12:42:21 purge requested for argocd
2022/06/18 12:42:21 release uninstalled, response: &{0x140003fa000 }
2022-06-18 12:42:21 ℹ [INFO]  Prepare to delete 'argocd_default' from States.
2022-06-18 12:42:21 ✔ [SUCCESS]  Tool (argocd/default) delete done.
2022-06-18 12:42:21 ℹ [INFO]  -------------------- [  Processing done.  ] --------------------
2022-06-18 12:42:21 ✔ [SUCCESS]  All plugins deleted successfully.
2022-06-18 12:42:21 ✔ [SUCCESS]  Delete finished.
/Users/hxc/WorkFolder/regular/public/devstream/hack/e2e
[dtm e2e test script] Start to clean test environment and configuration files!
[dtm e2e test script] Remove k8s cluster!
Deleting cluster "devstream-e2e" ...
[dtm e2e test script] Remove yaml files!
[dtm e2e test script] E2E test success!

@xavier-hou xavier-hou marked this pull request as ready for review June 18, 2022 04:58
@xavier-hou xavier-hou requested a review from daniel-hutao as a code owner June 18, 2022 04:58
@xavier-hou xavier-hou force-pushed the feat-e2e-test-local branch from 0bbc842 to bd06674 Compare June 18, 2022 05:25
hack/e2e/e2e-run.sh Outdated Show resolved Hide resolved
Signed-off-by: hxcGit <houxc_mail@163.com>
@xavier-hou xavier-hou force-pushed the feat-e2e-test-local branch from bd06674 to abf6165 Compare June 20, 2022 07:42
@xavier-hou xavier-hou requested a review from a team as a code owner June 20, 2022 07:42
@xavier-hou
Copy link
Member Author

  • Merged to a single config file

Here is the log

{22-06-20 15:36}hxc-macbook-air:devstream@feat-e2e-test-local✗✗✗✗✗✗ hxc% bash hack/e2e/e2e-run.sh run
[dtm e2e test script] Create k8s cluster by kind!
Deleting cluster "devstream-e2e" ...
Got OS type: darwin and CPU arch: amd64
Requires having Docker installed
All tools save in hack/e2e/../../hack/e2e/../../testbin directory
kind already downloaded
kubectl already downloaded
/Users/hxc/WorkFolder/regular/public/devstream
v1.22.0: Pulling from kindest/node
Digest: sha256:b8bda84bb3a190e6e028b1760d277454a72267a5454b57db34437c34a588d047
Status: Image is up to date for kindest/node:v1.22.0
docker.io/kindest/node:v1.22.0
Creating cluster "devstream-e2e" ...
 ✓ Ensuring node image (kindest/node:v1.22.0) 🖼 
 ✓ Preparing nodes 📦  
 ✓ Writing configuration 📜 
 ✓ Starting control-plane 🕹️ 
 ✓ Installing CNI 🔌 
 ✓ Installing StorageClass 💾 
Set kubectl context to "kind-devstream-e2e"
You can now use your cluster with:

kubectl cluster-info --context kind-devstream-e2e

Have a nice day! 👋
[dtm e2e test script] Start dtm e2e test locally!
2022-06-20 15:37:16 ℹ [INFO]  Apply started.
2022-06-20 15:37:16 ℹ [INFO]  Got Backend from config: local
2022-06-20 15:37:16 ℹ [INFO]  Using dir <.devstream> to store plugins.
2022-06-20 15:37:16 ℹ [INFO]  Using local backend. State file: devstream.state.
2022-06-20 15:37:16 ℹ [INFO]  Tool (github-repo-scaffolding-golang/default) found in config but doesn't exist in the state, will be created.
2022-06-20 15:37:16 ℹ [INFO]  Tool (argocd/default) found in config but doesn't exist in the state, will be created.
2022-06-20 15:37:16 ℹ [INFO]  Tool (githubactions-golang/default) found in config but doesn't exist in the state, will be created.
2022-06-20 15:37:16 ℹ [INFO]  Tool (argocdapp/default) found in config but doesn't exist in the state, will be created.
2022-06-20 15:37:16 ℹ [INFO]  Start executing the plan.
2022-06-20 15:37:16 ℹ [INFO]  Changes count: 4.
2022-06-20 15:37:16 ℹ [INFO]  -------------------- [  Processing progress: 1/4.  ] --------------------
2022-06-20 15:37:16 ℹ [INFO]  Processing: (github-repo-scaffolding-golang/default) -> Create ...
2022-06-20 15:37:19 ℹ [INFO]  The repo dtm-e2e-go has been created.
2022-06-20 15:37:31 ✔ [SUCCESS]  Tool (github-repo-scaffolding-golang/default) Create done.
2022-06-20 15:37:31 ℹ [INFO]  -------------------- [  Processing progress: 2/4.  ] --------------------
2022-06-20 15:37:31 ℹ [INFO]  Processing: (argocd/default) -> Create ...
2022-06-20 15:37:32 ℹ [INFO]  Creating or updating helm chart ...
2022/06/20 15:37:35 creating 1 resource(s)
2022/06/20 15:37:35 creating 1 resource(s)
2022/06/20 15:37:35 creating 1 resource(s)
2022/06/20 15:37:35 creating 1 resource(s)
2022/06/20 15:37:35 Clearing discovery cache
2022/06/20 15:37:35 beginning wait for 4 resources with timeout of 1m0s
2022/06/20 15:37:39 creating 43 resource(s)
2022/06/20 15:37:39 beginning wait for 43 resources with timeout of 10m0s
2022/06/20 15:37:40 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:37:42 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:37:44 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:37:46 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:37:48 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:37:50 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:37:52 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:37:54 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:37:56 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:37:58 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:00 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:02 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:04 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:06 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:08 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:10 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:12 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:14 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:16 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:18 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:20 Deployment is not ready: argocd/argocd-applicationset-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:22 Deployment is not ready: argocd/argocd-notifications-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:24 Deployment is not ready: argocd/argocd-notifications-controller. 0 out of 1 expected pods are ready
2022/06/20 15:38:26 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/20 15:38:28 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/20 15:38:30 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/20 15:38:32 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/20 15:38:34 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/20 15:38:36 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/20 15:38:38 Deployment is not ready: argocd/argocd-repo-server. 0 out of 1 expected pods are ready
2022/06/20 15:38:40 release installed successfully: argocd/argo-cd-4.9.4
2022-06-20 15:38:40 ✔ [SUCCESS]  Tool (argocd/default) Create done.
2022-06-20 15:38:40 ℹ [INFO]  -------------------- [  Processing progress: 3/4.  ] --------------------
2022-06-20 15:38:40 ℹ [INFO]  Processing: (githubactions-golang/default) -> Create ...
2022-06-20 15:38:42 ℹ [INFO]  Creating GitHub Actions workflow pr-builder.yml ...
2022-06-20 15:38:42 ✔ [SUCCESS]  Github Actions workflow pr-builder.yml created.
2022-06-20 15:38:43 ℹ [INFO]  Creating GitHub Actions workflow main-builder.yml ...
2022-06-20 15:38:43 ✔ [SUCCESS]  Github Actions workflow main-builder.yml created.
2022-06-20 15:38:43 ✔ [SUCCESS]  Tool (githubactions-golang/default) Create done.
2022-06-20 15:38:43 ℹ [INFO]  -------------------- [  Processing progress: 4/4.  ] --------------------
2022-06-20 15:38:43 ℹ [INFO]  Processing: (argocdapp/default) -> Create ...
2022-06-20 15:38:44 ℹ [INFO]  application.argoproj.io/dtm-e2e-go created
2022-06-20 15:38:44 ✔ [SUCCESS]  Tool (argocdapp/default) Create done.
2022-06-20 15:38:44 ℹ [INFO]  -------------------- [  Processing done.  ] --------------------
2022-06-20 15:38:44 ✔ [SUCCESS]  All plugins applied successfully.
2022-06-20 15:38:44 ✔ [SUCCESS]  Apply finished.
[dtm e2e test script] Start check pod status!
pod not ready yet...
pod not ready yet...
pod not ready yet...
[dtm e2e test script] Pod is ready!
2022-06-20 15:38:59 ℹ [INFO]  Verify started.
2022-06-20 15:38:59 ℹ [INFO]  Got Backend from config: local
2022-06-20 15:38:59 ℹ [INFO]  Using dir <.devstream> to store plugins.
2022-06-20 15:38:59 ℹ [INFO]  Using local backend. State file: devstream.state.
2022-06-20 15:39:01 ✔ [SUCCESS]  Verify succeeded.
2022-06-20 15:39:01 ℹ [INFO]  Delete started.
2022-06-20 15:39:01 ℹ [INFO]  Got Backend from config: local
2022-06-20 15:39:01 ℹ [INFO]  Using dir <.devstream> to store plugins.
2022-06-20 15:39:02 ℹ [INFO]  Using local backend. State file: devstream.state.
2022-06-20 15:39:02 ℹ [INFO]  Tool (githubactions-golang/default) will be deleted.
2022-06-20 15:39:02 ℹ [INFO]  Tool (argocdapp/default) will be deleted.
2022-06-20 15:39:02 ℹ [INFO]  Tool (github-repo-scaffolding-golang/default) will be deleted.
2022-06-20 15:39:02 ℹ [INFO]  Tool (argocd/default) will be deleted.
2022-06-20 15:39:02 ℹ [INFO]  Start executing the plan.
2022-06-20 15:39:02 ℹ [INFO]  Changes count: 4.
2022-06-20 15:39:02 ℹ [INFO]  -------------------- [  Processing progress: 1/4.  ] --------------------
2022-06-20 15:39:02 ℹ [INFO]  Processing: (githubactions-golang/default) -> Delete ...
2022-06-20 15:39:03 ℹ [INFO]  Deleting GitHub Actions workflow pr-builder.yml ...
2022-06-20 15:39:04 ✔ [SUCCESS]  GitHub Actions workflow pr-builder.yml removed.
2022-06-20 15:39:04 ℹ [INFO]  Deleting GitHub Actions workflow main-builder.yml ...
2022-06-20 15:39:05 ✔ [SUCCESS]  GitHub Actions workflow main-builder.yml removed.
2022-06-20 15:39:05 ℹ [INFO]  Prepare to delete 'githubactions-golang_default' from States.
2022-06-20 15:39:05 ✔ [SUCCESS]  Tool (githubactions-golang/default) delete done.
2022-06-20 15:39:05 ℹ [INFO]  -------------------- [  Processing progress: 2/4.  ] --------------------
2022-06-20 15:39:05 ℹ [INFO]  Processing: (argocdapp/default) -> Delete ...
2022-06-20 15:39:06 ℹ [INFO]  application.argoproj.io "dtm-e2e-go" deleted
2022-06-20 15:39:06 ℹ [INFO]  Prepare to delete 'argocdapp_default' from States.
2022-06-20 15:39:06 ✔ [SUCCESS]  Tool (argocdapp/default) delete done.
2022-06-20 15:39:06 ℹ [INFO]  -------------------- [  Processing progress: 3/4.  ] --------------------
2022-06-20 15:39:06 ℹ [INFO]  Processing: (github-repo-scaffolding-golang/default) -> Delete ...
2022-06-20 15:39:07 ✔ [SUCCESS]  GitHub repo dtm-e2e-go removed.
2022-06-20 15:39:07 ℹ [INFO]  Prepare to delete 'github-repo-scaffolding-golang_default' from States.
2022-06-20 15:39:07 ✔ [SUCCESS]  Tool (github-repo-scaffolding-golang/default) delete done.
2022-06-20 15:39:07 ℹ [INFO]  -------------------- [  Processing progress: 4/4.  ] --------------------
2022-06-20 15:39:07 ℹ [INFO]  Processing: (argocd/default) -> Delete ...
2022-06-20 15:39:08 ℹ [INFO]  Uninstalling argocd helm chart.
2022/06/20 15:39:08 uninstall: Deleting argocd
2022/06/20 15:39:10 Starting delete for "argocd-redis" Service
2022/06/20 15:39:10 Starting delete for "argocd-repo-server" Service
2022/06/20 15:39:10 Starting delete for "argocd-server" Service
2022/06/20 15:39:10 Starting delete for "argocd-applicationset-controller" Service
2022/06/20 15:39:10 Starting delete for "argocd-dex-server" Service
2022/06/20 15:39:10 Starting delete for "argocd-application-controller" Service
2022/06/20 15:39:10 Starting delete for "argocd-application-controller" StatefulSet
2022/06/20 15:39:10 Starting delete for "argocd-redis" Deployment
2022/06/20 15:39:10 Starting delete for "argocd-server" Deployment
2022/06/20 15:39:10 Starting delete for "argocd-applicationset-controller" Deployment
2022/06/20 15:39:10 Starting delete for "argocd-dex-server" Deployment
2022/06/20 15:39:10 Starting delete for "argocd-repo-server" Deployment
2022/06/20 15:39:10 Starting delete for "argocd-notifications-controller" Deployment
2022/06/20 15:39:10 Starting delete for "argocd-dex-server" RoleBinding
2022/06/20 15:39:10 Starting delete for "argocd-applicationset-controller" RoleBinding
2022/06/20 15:39:10 Starting delete for "argocd-application-controller" RoleBinding
2022/06/20 15:39:10 Starting delete for "argocd-repo-server" RoleBinding
2022/06/20 15:39:10 Starting delete for "argocd-server" RoleBinding
2022/06/20 15:39:10 Starting delete for "argocd-notifications-controller" RoleBinding
2022/06/20 15:39:10 Starting delete for "argocd-dex-server" Role
2022/06/20 15:39:10 Starting delete for "argocd-server" Role
2022/06/20 15:39:10 Starting delete for "argocd-application-controller" Role
2022/06/20 15:39:10 Starting delete for "argocd-repo-server" Role
2022/06/20 15:39:10 Starting delete for "argocd-notifications-controller" Role
2022/06/20 15:39:10 Starting delete for "argocd-applicationset-controller" Role
2022/06/20 15:39:10 Starting delete for "argocd-application-controller" ClusterRoleBinding
2022/06/20 15:39:10 Starting delete for "argocd-server" ClusterRoleBinding
2022/06/20 15:39:10 Starting delete for "argocd-server" ClusterRole
2022/06/20 15:39:10 Starting delete for "argocd-application-controller" ClusterRole
2022/06/20 15:39:10 Starting delete for "argocd-gpg-keys-cm" ConfigMap
2022/06/20 15:39:10 Starting delete for "argocd-rbac-cm" ConfigMap
2022/06/20 15:39:10 Starting delete for "argocd-tls-certs-cm" ConfigMap
2022/06/20 15:39:10 Starting delete for "argocd-cm" ConfigMap
2022/06/20 15:39:10 Starting delete for "argocd-ssh-known-hosts-cm" ConfigMap
2022/06/20 15:39:10 Starting delete for "argocd-notifications-controller-cm" ConfigMap
2022/06/20 15:39:10 Starting delete for "argocd-notifications-controller-secret" Secret
2022/06/20 15:39:10 Starting delete for "argocd-secret" Secret
2022/06/20 15:39:10 Starting delete for "argocd-dex-server" ServiceAccount
2022/06/20 15:39:10 Starting delete for "argocd-application-controller" ServiceAccount
2022/06/20 15:39:10 Starting delete for "argocd-notifications-controller" ServiceAccount
2022/06/20 15:39:10 Starting delete for "argocd-repo-server" ServiceAccount
2022/06/20 15:39:10 Starting delete for "argocd-server" ServiceAccount
2022/06/20 15:39:10 Starting delete for "argocd-applicationset-controller" ServiceAccount
2022/06/20 15:39:10 purge requested for argocd
2022/06/20 15:39:10 release uninstalled, response: &{0x1400042e000 }
2022-06-20 15:39:10 ℹ [INFO]  Prepare to delete 'argocd_default' from States.
2022-06-20 15:39:10 ✔ [SUCCESS]  Tool (argocd/default) delete done.
2022-06-20 15:39:10 ℹ [INFO]  -------------------- [  Processing done.  ] --------------------
2022-06-20 15:39:10 ✔ [SUCCESS]  All plugins deleted successfully.
2022-06-20 15:39:10 ✔ [SUCCESS]  Delete finished.
/Users/hxc/WorkFolder/regular/public/devstream
[dtm e2e test script] Start to clean test environment and configuration files!
[dtm e2e test script] Remove k8s cluster!
Deleting cluster "devstream-e2e" ...
[dtm e2e test script] Remove yaml files!
[dtm e2e test script] E2E test success!

@daniel-hutao PTAL

@daniel-hutao daniel-hutao requested a review from IronCore864 June 21, 2022 01:18
@daniel-hutao daniel-hutao self-requested a review June 22, 2022 07:26
@daniel-hutao daniel-hutao merged commit 6d2c54a into devstream-io:main Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants