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

RFE: Support for merging phase metadata when multiple phases are used #198

Open
KwisatzHaderach opened this issue Jul 28, 2023 · 1 comment

Comments

@KwisatzHaderach
Copy link
Collaborator

When defining multiple phases for a step there is no way to append specific phase.
In my opinion this could be possible at least for named phases, e.g. like:

main.fmf:

report:
  - how: html
  - how: polarion
    name: polarion-report
    upload: False

nested.fmf

report+:
  - name+: polarion-report
    title: some useful title
@psss
Copy link
Collaborator

psss commented Jul 28, 2023

As fmf does not know anything about name being a special key, it would be probably needed to introduce some general way how to identify a matching list item. Perhaps a dedicated suffix could help here?

report+:
  - name=: polarion-report
    title: some useful title

This would give also some more flexibility for choosing step phases to be modified:

provision:
  - name: client-one
    role: client
    hardware:
        arch: x86_64
        memory: 1024
  - name: client-two
    role: client
    hardware:
        arch: x86_64
        memory: 1024
  - name: server-one
    role: server
    hardware:
        arch: x86_64
        memory: 2048

provision+:
  - role=: client
    hardware+:
        memory: 2048

Or, perhaps, even combining several key values:

provision+:
  - how=: virtual
    arch=: s390x
    memory+: 4096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants