Verified Commit 20ca3127 authored by Bohdan Parkhomchuk's avatar Bohdan Parkhomchuk 💬 Committed by GitLab
Browse files

fix(e2e): simplify siphon setup and add smoke test

parent 94c83abf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -972,3 +972,8 @@ e2e:
    - bash e2e/scripts/test.sh
  after_script:
    - bash e2e/scripts/teardown.sh --sha="${CI_COMMIT_SHORT_SHA}" -y
  artifacts:
    when: on_failure
    paths:
      - e2e/diagnostics/
    expire_in: 3 days
+35 −0
Original line number Diff line number Diff line
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ .Release.Name }}-config
data:
  low_memory_server.xml: |
    <?xml version="1.0"?>
    <clickhouse>
        <mark_cache_size>268435456</mark_cache_size>
        <uncompressed_cache_size>268435456</uncompressed_cache_size>

        <asynchronous_metric_log>
            <flush_interval_milliseconds>60000</flush_interval_milliseconds>
        </asynchronous_metric_log>
        <metric_log>
            <flush_interval_milliseconds>60000</flush_interval_milliseconds>
        </metric_log>

        <merge_tree>
            <merge_max_block_size>1024</merge_max_block_size>
        </merge_tree>
    </clickhouse>
  low_memory_users.xml: |
    <?xml version="1.0"?>
    <clickhouse>
        <profiles>
            <default>
                <max_threads>2</max_threads>
                <max_block_size>8192</max_block_size>
                <max_download_threads>1</max_download_threads>
                <input_format_parallel_parsing>0</input_format_parallel_parsing>
                <output_format_parallel_formatting>0</output_format_parallel_formatting>
            </default>
        </profiles>
    </clickhouse>
+9 −0
Original line number Diff line number Diff line
@@ -38,6 +38,12 @@ spec:
              mountPath: /var/lib/clickhouse
            - name: initdb
              mountPath: /docker-entrypoint-initdb.d
            - name: config
              mountPath: /etc/clickhouse-server/config.d/low_memory_server.xml
              subPath: low_memory_server.xml
            - name: config
              mountPath: /etc/clickhouse-server/users.d/low_memory_users.xml
              subPath: low_memory_users.xml
          livenessProbe:
            httpGet:
              path: /ping
@@ -54,6 +60,9 @@ spec:
        - name: initdb
          configMap:
            name: {{ .Release.Name }}-initdb
        - name: config
          configMap:
            name: {{ .Release.Name }}-config
  volumeClaimTemplates:
    - metadata:
        name: data
+1 −7
Original line number Diff line number Diff line
@@ -17,16 +17,10 @@ spec:
          pip install --quiet --disable-pip-version-check --root-user-action=ignore \
            robotframework=={{ .Values.robotframework.version }} \
            robotframework-requests=={{ .Values.robotframework.requestsVersion }} &&
          robot --outputdir /tmp/results --consolecolors off /tests/
          robot --outputdir /tmp/results --consolecolors off --exitonfailure /tests/
        env:
        - name: NATS_URL
          value: "http://nats-0.nats-headless.{{ .Values.namespaces.nats }}.svc.cluster.local:8222"
        - name: CLICKHOUSE_URL
          value: "http://clickhouse.{{ .Values.namespaces.clickhouse }}.svc.cluster.local:8123"
        - name: GITLAB_URL
          value: "http://gitlab-webservice-default.{{ .Values.namespaces.gitlab }}.svc.cluster.local:8181"
        - name: GKG_URL
          value: "http://gkg-webserver.{{ .Values.namespaces.gkg }}.svc.cluster.local:8080"
        - name: GITLAB_PAT
          valueFrom:
            secretKeyRef:
+0 −2
Original line number Diff line number Diff line
@@ -13,8 +13,6 @@ resources:
    memory: 512Mi

namespaces:
  nats: ""
  clickhouse: ""
  gitlab: ""
  gkg: ""

Loading