Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Create a way to run the different test suites from the e2e-testing repo #594

Closed
3 tasks
mdelapenya opened this issue Jun 9, 2020 · 2 comments
Closed
3 tasks
Assignees

Comments

@mdelapenya
Copy link
Contributor

mdelapenya commented Jun 9, 2020

We'd like to provide a way to run one of the tests suites in the repo from a pipeline.

Scenario: run the tests suite for Ingest Manager
Given the ingest manager pipeline in the Beats CI
When a change in the elastic-agent is detected
Then run the e2e tests for ingest-manager

Too run the tests, we should:

.ci/scripts/functional-test.sh "${GO_VERSION}" "${suite}" "${feature}" "${STACK_VERSION}" "${METRICBEAT_VERSION}"

Thinking out loud, this script makes me think that we do not need many of the variables for different test executions: i.e. the METRICBEAT_VERSION is not needed for ingest-manager, the KIND_VERSION is needed by Helm, only. So maybe we should create a different pipeline for each test suite, with proper variables each, although this adds the downstream issue we have been discussing in the past. Or we could create a script for running each test suite, which sets properly the environment for the specific suite.

@elastic/observablt-robots thoughts?

@mdelapenya
Copy link
Contributor Author

mdelapenya commented Jun 9, 2020

We agreed to:

  1. enable the ability of running just one test suite (i.e. integrations, helm...) from the existing Jenkins pipeline. This applies to the e2e repo. Execute tests suites based on the modified files e2e-testing#130
  2. evaluate how to run this filtered pipeline from Beats whenever a merge to master occurs.
  3. once the merges to master run the e2e test suite, add the ability to add a comment on PRs to run the e2e tests.

@mdelapenya mdelapenya self-assigned this Jun 17, 2020
@mdelapenya
Copy link
Contributor Author

This has been accomplished in elastic/beats#21100

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant