Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[meta] CI tests jobs are successful when goss tests are failing #1385

Closed

Description

Example:
https://devops-ci.elastic.co/job/elastic+helm-charts+pull-request+integration-apm-server/842/APM_SERVER_SUITE=oss,KUBERNETES_VERSION=1.18,label=docker&&virtual/console

10:14:10 Testing with pod: helm-apm-server-oss-apm-server-cc68b684c-4cd4h
10:14:11 2021/10/07 08:14:11 template: test:10:22: executing "test" at <.Env.ELASTIC_USERNAM...>: map has no entry for key "ELASTIC_USERNAME"
10:14:11 command terminated with exit code 1
...
10:14:19 Finished: SUCCESS

Related to:

goss: ## Run goss tests
for i in $$(seq 1 5); do \
if [ -z "$$GOSS_CONTAINER" ]; then \
sleep 5; \
echo "Retrieving pod ($$i/5)"; \
GOSS_CONTAINER=$$(kubectl get --no-headers=true pods -l "$(GOSS_SELECTOR)" -o custom-columns=:metadata.name --field-selector=status.phase=Running --sort-by=.metadata.creationTimestamp | tail -1 ); \
else \
echo "Testing with pod: $$GOSS_CONTAINER" && \
kubectl cp "test/$(GOSS_FILE)" "$$GOSS_CONTAINER:/tmp/$(GOSS_FILE)" && \
kubectl exec "$$GOSS_CONTAINER" -- sh -c "cd /tmp/ && curl -s -L \"https://github.com/aelsabbahy/goss/releases/download/$(GOSS_VERSION)/goss-linux-amd64\" -o goss && chmod +rx ./goss && ./goss --gossfile \"$(GOSS_FILE)\" validate --retry-timeout 300s --sleep 5s --color --format documentation"; \
break; \
fi; \
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't workingmeta

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions