chore: Add a simple Vagrantfile for running tests#2852
Conversation
Makes running tests locally, yet in an isolated environment, really easy. Ticket: none Changelog: none Signed-off-by: Vratislav Podzimek <vratislav.podzimek+auto-signed@northern.tech>
|
@vpodzime, start a full integration test pipeline with:
my commands and optionsYou can prevent me from automatically starting CI pipelines:
You can trigger a client pipeline on multiple prs with:
You can trigger GitHub->GitLab branch sync with:
You can print PR statistics for a repository with:
You can cherry pick to a given branch or branches with:
|
Not going to waste money on this, there are no functional changes here. |
mzedel
left a comment
There was a problem hiding this comment.
Can you ensure this works on a Mac as well using the corresponding runner? Otherwise it's bound to be pointed to for other people and not working.
michalkopczan
left a comment
There was a problem hiding this comment.
Nice. I don't see what does it give us that running the tests locally does not, but it's a valid way to do it of course
Isolation and separation plus an environment that the tests expect (I'm not installing docker on my workstation, for example). |
Could be. This is really just me sharing what I used myself just in case someone else finds it handy. It's good enough for me to have it here in the PR and close it without merging, but then it's just harder to discover than having it in the repo. |
All right. If you don't want to install docker then using vagrat makes sense. 👍 |
mzedel
left a comment
There was a problem hiding this comment.
What's in the repo turns into maintenance - what's not possible to maintain from everyone because of a single persons installation preferences is IMO just not acceptable to go in a repo.
Ensure this works on the platforms we use please.
Considering that docker is an integral part of the entire project setup IMO you are not willing to be part of the project 🤷. |
|
I like it a lot and thanks for putting this together @vpodzime How about my idea of storing those vagrant files for various repo in one place - like mender-qa dir etc?. This way they wont be a part of the repos to maintain, instead we will have a library of them in one place ready to use. Also we could have single CI job there testing if they are still working fine. |
|
I shared what I had. That's what I wanted to do. Nothing beyond that is what I'm willing to invest my time and effort into. I'll keep using this whenever I need, you guys can take it and improve/adjust it for your needs. It will be here in the PR. |
This commit contains a vagrant config files created by Vratislav in: mendersoftware/integration#2852 mendersoftware/mender-gateway#302 Co-authored-by: Vratislav Podzimek <vratislav.podzimek@northern.tech> Signed-off-by: Paweł Poławski <pawel.polawski@northern.tech>
Makes running tests locally, yet in an isolated environment, really easy.
Ticket: none
Changelog: none