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

[Integration Test Framework] does account track of the instance provisioner #3770

Closed
AndersonQ opened this issue Nov 15, 2023 · 1 comment · Fixed by #3734
Closed

[Integration Test Framework] does account track of the instance provisioner #3770

AndersonQ opened this issue Nov 15, 2023 · 1 comment · Fixed by #3734
Assignees
Labels
bug Something isn't working Team:Elastic-Agent Label for the Agent team

Comments

@AndersonQ
Copy link
Member

When the test framework saves the instance on the runner's state it does not account for the instance provisioner. That causes the runner to reuse an existing instance multipass instance even though ogc is selected as instance provisioner and vice versa

How to reproduce:

  1. Make sure there is not existing instances, run: mage integration:clean
  2. Run a test using multipass: AGENT_VERSION=8.12.0-SNAPSHOT AGENT_KEEP_INSTALLED=true INSTANCE_PROVISIONER="multipass" SNAPSHOT=true TEST_PLATFORMS="linux/amd64" mage integration:single TestFleetAirGapedUpgrade
  3. Everything works, a multipass instance is created.
  4. Run the same test using ogc: AGENT_VERSION=8.12.0-SNAPSHOT AGENT_KEEP_INSTALLED=true INSTANCE_PROVISIONER="ogc" SNAPSHOT=true TEST_PLATFORMS="linux/amd64" mage integration:single TestFleetAirGapedUpgrade
  5. The multipass instance is reused
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent Label for the Agent team
Projects
None yet
3 participants