Replies: 6 comments 13 replies
-
Weak UpdateThe following config would be used to define a provision:
- how: virtual
name: client
image: fedora
- how: virtual
name: server
default:
image: centos-stream-9 When run in the Testing Farm the server image value would be overriden from the command line in the following way:
An alternative syntax could be to use a prefix to mark values which should be modified by the weak update. provision:
- how: virtual
name: client
image: fedora
- how: virtual
name: server
default-image: centos-stream-9 Btw, what about the provision:
- how: virtual
name: client
image-do-not-change: fedora
- how: virtual
name: server
image: centos-stream-9 |
Beta Was this translation helpful? Give feedback.
-
My idea is little bit different. as you mentioned
So that if there is some thing what wants to change it, e.g. from command line Theoretical issue what has to be solved is how to behave in the case of so that this value will be on same level as It reminds me my older idea, that FMF could behave more dynamically, it means to not construct the whole tree, but do it on demand. so that the tree will be held by objects without direct applying all rules, but apply them on demand with some caching to reduce computation. all tree items will contains raw data. (this is not directly connected with this issue, but could help to implement my idea more straightforward) |
Beta Was this translation helpful? Give feedback.
-
My use case is rather modifying values in an adjust. While I understand that being able to override any value in a plan would be tempting, I am also afraid that it would make understanding of a plan more difficult. Maybe a plan should clearly indicate what could be changed eventually. Maybe we should use methods that are already available ( My use case for modifying values through
|
Beta Was this translation helpful? Give feedback.
-
Just wondering, I would one override image for provision:
- how: virtual
name: client
image: fedora
- how: virtual
name: server
default:
image: centos-stream-9 I see two issues here:
|
Beta Was this translation helpful? Give feedback.
-
It seems to me that this topic is more complicated than I originally though. |
Beta Was this translation helpful? Give feedback.
-
It seems to me that the discussion is focused on specifying default values but we should be also discussing how subjects of weak updates would be identified. Example presented in #1820 (comment) presents a setup with one "weak default" and one hard coded option but I believe that in reality (interoperability use case) we would be testing more combinations and it won't be practical to have all multiple plans that differ just in the hard coded value. And you can also consider multi-host tests with 3 or more hosts (keylime interoperability test works with 4 host, each can be running on a different release or architecture). What I am trying to say that it won't be sufficient to override all "weak defaults" of one specific attribute but it would be necessary to be able to distinguish between them. And while this may not be the use case for Testing Farm / Artemis, why to implement a feature that fits this one use case and force users to seek for workarounds or request different features for something almost identical? |
Beta Was this translation helpful? Give feedback.
-
On the last hacking session several alternative approaches were proposed to cover the use case of overriding config values from the command line outlined in #68. Let's compare the available options here and choose the best one. Start a new topic for each implementation. Add relevant comments and feedback there.
Here's description of the model use case to be covered: Write a
tmt
plan to verify that the currenthttpd
package successfully serves web pages to a client running on the latestfedora
release. The distroimage
for the server is provided on the command line. If not specified, the server should run oncentos-stream-9
by default.Beta Was this translation helpful? Give feedback.
All reactions