-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Follow up testing work from the addition of installation flavors #6631
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
note: checking for files defined in spec file is not an option, component files is a filter and does not require files to be present. e.g some files present only on linux, exe paths only on windows. this information is not part of the filter definition |
@pkoutsovasilis after chatting with @michalpristas we both believe that these tests should rather be owned by components team and not by us. We can not decently tests all the combination. Wdyt? |
My two cents: you shouldn't test all combinations but should ensure the most commons are working (in the same way we are running some tests to ensure we can upgrade with Endpoint enabled). |
@jlind23 I definitely agree in the sense that all combinations of all flavours in the shape of integrations tests is not realistic. I had a brief discussion about my thinking with @michalpristas . So, I was thinking of a
my 2 cents, please @michalpristas do tell me if I missed anything above 🙂 |
What I am most worried about covering is all the different combinations of flavor/no flavor in the unpacking step in
Agree that this does not need to be an integration test specifically. I'll edit the description to be a bit less prescriptive. The ingredients to do this as more of a unit or packaging test are already there.
The way I view the responsibilities is:
We don't need to go as far as actually installing the complete set of affected integrations in our automated tests, though we should probably do this manually. We do need some kind of automated test that the spec files cause agent to have the correct behavior during installation and across upgrades, though again they don't need to be integration tests necessarily. |
Don't assume any of the component owners know the nuances of spec files, what flavors are, or anything about how agent upgrades work. I would generally not expect component owners to be thinking about or testing what happens to their binaries during an agent upgrade as that is an agent platform concern. The same with the new flavor permutations. Downstream teams will switch to using the variant they need for their own development but they aren't going to stress test anything or test multiple combinations on our behalf. My view here is generally that if we don't test this, or specify exactly what teams outside of agent need to test, nobody is going to test it at all. Lots of teams do their development of their binaries separate from Elastic Agent and then just sanity check that agent runs it via the tests in https://github.com/elastic/integrations which use the container and therefore is totally unaffected by the flavors file. |
Follow up testing work from #6542
Upgrades for agents with an installed flavor
Integration test for components with additional file dependencies
The text was updated successfully, but these errors were encountered: