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

E2E deploy test: rewrite in go tests #814

Merged
merged 58 commits into from
Jan 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
64de442
:sparkles: add tests/e2e package
rinx Nov 2, 2020
bf21424
:sparkles: use stream apis
rinx Nov 4, 2020
ef587c2
:sparkles: add GetObject & SearchByID
rinx Nov 5, 2020
3f5cde0
:recycle: improve validation
rinx Nov 5, 2020
80f45f7
:green_heart: update e2e-deploy
rinx Nov 5, 2020
5df6182
:green_heart: add libhdf5 for e2e-deploy test
rinx Nov 5, 2020
244ac89
:green_heart: fix vald client
rinx Nov 5, 2020
8862cb3
:green_heart: fix NewPortforward interface
rinx Nov 5, 2020
cabca13
:fire: commented out logging search results
rinx Nov 5, 2020
fe1c6cf
:white_check_mark: improve e2e test
rinx Nov 5, 2020
0442521
:bento: update values-ci manifest
rinx Nov 5, 2020
05c3bfc
:green_heart: simplify
rinx Nov 5, 2020
8c56b8a
:wrench: add config
rinx Nov 5, 2020
5326ec6
:wrench: inc replicas
rinx Nov 5, 2020
7ed2b49
:green_heart: fix loop
rinx Nov 6, 2020
cc0709c
:loud_sound: add log
rinx Nov 6, 2020
00c78b9
:mag: improve logs
rinx Nov 9, 2020
a9a9edc
:wrench: add keepalive
rinx Nov 9, 2020
88dd7a5
:green_heart: add Cassandra E2E test
rinx Nov 9, 2020
9fc6928
:wrench: revise config
rinx Nov 9, 2020
08a9549
:wrench: revise config
rinx Nov 9, 2020
5649f17
:wrench: cassandra consistency = one
rinx Nov 10, 2020
ae5385b
:green_heart: trigger e2e deploy test using chatops
rinx Nov 10, 2020
80c07c0
:white_check_mark: use correct version of containers
rinx Nov 10, 2020
1b512e8
:loud_sound: print HELM_EXTRA_OPTIONS
rinx Nov 10, 2020
a5e0676
:green_heart: remove redundant condition checks
rinx Nov 10, 2020
860cf5d
:arrow_up: upgrade setup-k3d
rinx Nov 11, 2020
37a8a16
:white_check_mark: just a workaround for strange mysql table definition
rinx Nov 11, 2020
4cde34f
:truck: move values into .github/helm/values
rinx Nov 11, 2020
6f9a3c5
:white_check_mark: add sidecar test
rinx Nov 11, 2020
ec4e9eb
:wrench: fix
rinx Nov 11, 2020
a8972f7
:wrench: fix config for agent-sidecar
rinx Nov 11, 2020
8d5e3dd
:wrench: reduce number of data
rinx Nov 11, 2020
f7eeb5e
:wrench: add createindex phase
rinx Nov 11, 2020
8a27b76
:wrench: remove useless config
rinx Nov 11, 2020
7540f81
:green_heart: remove useless lines
rinx Nov 11, 2020
c3e9e4a
:wrench: fix sidecar config
rinx Nov 11, 2020
05eb14b
:white_check_mark: add tests for mysql deleteMeta
rinx Nov 12, 2020
36f3b78
:wrench: Add options for which data is used for test
rinx Dec 21, 2020
1a215b1
:art: format yamls
rinx Dec 22, 2020
458720a
:page_facing_up: Update license header
rinx Jan 6, 2021
46d98cb
:arrow_up: Upgrade to v1 APIs
rinx Jan 12, 2021
4d27f64
:wrench: Fix Helm values for E2E test
rinx Jan 13, 2021
99ff8a8
:green_heart: Fix method call
rinx Jan 13, 2021
32dee0c
:wrench: Reduce number of data
rinx Jan 13, 2021
2e131a8
:green_heart: Fix to use v1 vald API
rinx Jan 13, 2021
0897a1e
:wrench: Reduce number of Scylla cluster member
rinx Jan 14, 2021
30eb7ce
:children_crossing: Add a variable for scylla deploy task
rinx Jan 14, 2021
8bc0f29
:wrench: Add minio deploy task
rinx Jan 14, 2021
95413fb
:recycle: Use kubectl wait instead for sh loop
rinx Jan 14, 2021
78c8b61
:heavy_plus_sign: Add cli-runtime to go.mod.default / Remove duplicat…
rinx Jan 14, 2021
6b64c4e
:recycle: use assoc list for checking pr-xxx image existences
rinx Jan 14, 2021
bfd71b6
:arrow_up: Update go.sum
rinx Jan 15, 2021
4e1754a
:green_heart: Fix build
rinx Jan 15, 2021
7ac2e01
:wrench: tuning: add sleep
rinx Jan 15, 2021
7c242a2
:wrench: Tuning number of requests
rinx Jan 18, 2021
31d9436
:green_heart: Fix e2e tests code
rinx Jan 20, 2021
8186a7f
:white_check_mark: Update e2e tests
rinx Jan 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/chatops_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
- :white_check_mark: `/gen-test` - generate test codes
- :label: `/label` - add labels
- :rewind: `/rebase` - rebase master
- :end: :two: :end: `/label actions/e2e-deploy` - run E2E deploy & integration test
kpango marked this conversation as resolved.
Show resolved Hide resolved
89 changes: 89 additions & 0 deletions .github/helm/values/values-agent-sidecar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#
# Copyright (C) 2019-2021 vdaas.org vald team <vald@vdaas.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

defaults:
logging:
level: info

agent:
minReplicas: 1
podManagementPolicy: Parallel
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi
volumes:
- name: ngt-index
emptyDir: {}
volumeMounts:
- name: ngt-index
mountPath: /var/ngt
ngt:
auto_index_duration_limit: 3m
auto_index_check_duration: 1m
auto_index_length: 1000
dimension: 784
index_path: /var/ngt/index
enable_in_memory_mode: false
sidecar:
enabled: true
initContainerEnabled: true
env:
- name: AWS_ACCESS_KEY
value: ACCESSKEY
- name: AWS_SECRET_ACCESS_KEY
value: SECRETKEY
resources:
requests:
cpu: 100m
memory: 100Mi
config:
filename: vald-agent-ngt-index
blob_storage:
storage_type: "s3"
bucket: "vald-minio"
s3:
endpoint: "http://minio.default.svc.cluster.local:9000"
region: "us-east-1"
force_path_style: true

gateway:
vald:
enabled: false
lb:
enabled: false
backup:
enabled: false
meta:
enabled: false

discoverer:
enabled: false

manager:
compressor:
enabled: false

backup:
enabled: false

index:
enabled: false

meta:
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@
# limitations under the License.
#

defaults:
logging:
level: info

gateway:
vald:
enabled: false
lb:
enabled: true
minReplicas: 1
hpa:
enabled: false
Expand All @@ -25,6 +32,24 @@ gateway:
memory: 50Mi
gateway_config:
index_replica: 3
backup:
enabled: true
minReplicas: 1
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi
meta:
enabled: true
minReplicas: 1
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi

agent:
minReplicas: 3
Expand All @@ -37,10 +62,10 @@ agent:
cpu: 100m
memory: 50Mi
ngt:
auto_index_duration_limit: 60s
auto_index_check_duration: 5s
auto_index_length: 10
dimension: 6
auto_index_duration_limit: 3m
auto_index_check_duration: 1m
auto_index_length: 1000
dimension: 784

discoverer:
minReplicas: 1
Expand All @@ -53,7 +78,7 @@ discoverer:

manager:
compressor:
minReplicas: 1
minReplicas: 3
hpa:
enabled: false
resources:
Expand All @@ -64,7 +89,7 @@ manager:
compress_algorithm: gob

backup:
minReplicas: 1
minReplicas: 3
hpa:
enabled: false
resources:
Expand All @@ -80,7 +105,7 @@ manager:
memory: 30Mi

meta:
minReplicas: 1
minReplicas: 3
hpa:
enabled: false
resources:
Expand Down
152 changes: 152 additions & 0 deletions .github/helm/values/values-scylla.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
#
# Copyright (C) 2019-2021 vdaas.org vald team <vald@vdaas.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

defaults:
logging:
level: info

gateway:
vald:
enabled: false
lb:
enabled: true
minReplicas: 1
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi
gateway_config:
index_replica: 3
backup:
enabled: true
minReplicas: 1
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi
meta:
enabled: true
minReplicas: 1
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi

agent:
minReplicas: 3
maxReplicas: 10
podManagementPolicy: Parallel
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi
ngt:
auto_index_duration_limit: 3m
auto_index_check_duration: 1m
auto_index_length: 1000
dimension: 784

discoverer:
minReplicas: 1
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi

manager:
compressor:
minReplicas: 3
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi
compress:
compress_algorithm: gob

backup:
minReplicas: 3
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 30Mi
image:
repository: vdaas/vald-manager-backup-cassandra
initContainers:
- type: wait-for-cassandra
name: wait-for-scylla
image: cassandra:latest
cassandra:
hosts:
- vald-scylla-cluster-dc0-rack0-0.scylla.svc.cluster.local
sleepDuration: 2
env: []
mysql:
enabled: false
cassandra:
enabled: true
config:
hosts:
- vald-scylla-cluster-dc0-rack0-0.scylla.svc.cluster.local
consistency: one

index:
replicas: 1
resources:
requests:
cpu: 100m
memory: 30Mi

meta:
minReplicas: 3
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 30Mi
image:
repository: vdaas/vald-meta-cassandra
initContainers:
- type: wait-for-cassandra
name: wait-for-scylla
image: cassandra:latest
cassandra:
hosts:
- vald-scylla-cluster-dc0-rack0-0.scylla.svc.cluster.local
sleepDuration: 2
env: []
redis:
enabled: false
cassandra:
enabled: true
config:
hosts:
- vald-scylla-cluster-dc0-rack0-0.scylla.svc.cluster.local
consistency: one
Loading