A simple example demonstrating how a clean test environment could be requested for each test. Resolves #10 and is related to: https://pagure.io/fedora-ci/general/issue/11
Metadata Update from @psss: - Pull-request tagged with: ci metadata
@mvadkert, @martinpitt, please have a look.
@psss: So the how: restraint and snapshots: true are the trick how to give a fresh testbed to each of the test/one, test/two, test/three? And dependencies.yml and selenium.yml would run once, then a snapshot is taken? That would be wonderful indeed!
how: restraint
snapshots: true
@martinpitt Actually, how shouldn't be important for this to work, it could be any other method supported by the CI system (e.g. runners like sti, pytest or simple execute command), snapshots should do the trick "alone" - CI system should be smart enough to prepare fresh environment before startinghow for each test.
how
sti
pytest
execute
snapshots
Yes, that's my idea / proposal how this could work. Separation of the testing stages could allow us to provide different / multiple ways how to implement each stage plus we could have generic attributes such as snapshot which would denote if the particular implementation should enable snapshoting functionality. So this would not be limited to restraint only. Another option would be to configure snaphost under provision as it is closely related to how the snapshoting would be done.
snapshot
restraint
snaphost
provision
It fits more to running tests, IMHO, than to provision, since provision should be a one-time thing, cast to the stone, than runners take over.
And a bit of bike-shedding: how about something like isolate-tests, isolation: true or something similar? snapshot might be too OpenStack/OpenShift/container-ish, while user's wish "run my tests isolated" better eflects something with "isolate" substring :)
isolate-tests
isolation: true
yep, I like isolation more :)
rebased onto ddb90f9d9c473718d2731dfe348bbf021f1a4aab
Isolation makes sense. What about isolate: true? Example updated.
isolate: true
Merging based on IRC ack from @happz and @mvadkert.
Pull-Request has been merged by psss
A simple example demonstrating how a clean test environment could
be requested for each test. Resolves #10 and is related to:
https://pagure.io/fedora-ci/general/issue/11