Skip to content

Interaction between fallback_run_target and run_targets is undefined #694

Description

@danth

What

It is possible to define a run target under run_targets called fallback, which interferes with the run target generated by the fallback_run_target option.

// the fallback state doesn't have a name in the config, so we use
// "fallback", it doesn't actually matter...

It is not clear what should happen in this case.

This mistake actually appears in our own integration tests:

Acceptance Criteria (DoD)

  • Behaviour is clearly defined

How

A few different ideas:

  1. Delete the fallback_run_target option, tell users to configure a run target called fallback directly.
  2. Make fallback_run_target take only a string, which names an existing run target to be used.
  3. Generate an error if a run target called fallback appears under run_targets.
  4. Replace the hardcoded name with a dynamically chosen one, to avoid the conflict.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions