Skip to content

Refactor engine Start to not normalize workdir+configpath #3375

Closed as not planned

Description

@sipsma

Right now engine.Start implicitly sets workdir+configpath to defaults if they are not set. This creates complications for callers of it who sometimes don't want to load one or the other or both.

Instead engine Start should just use the values as set. If workdir is not set, don't load it; if configpath is not set, don't load it.

This allows higher levels to determine the right value.

Slight complication comes from the fact that all our SDKs probably do want some consistent behavior in determining defaults. We can reimplement in each of them or we can change it so that when they shell out to the engine they go through a layer that implements the defaults (e.g. maybe the command discussed here).

Another complication is that we can't currently determine the difference between explicitly set "" and implicitly unset "", so may just need to make the args to engine a *string instead

Activity

  1. added
    area/engine
    on Oct 14, 2022
  2. helderco commented on Dec 15, 2022

    @helderco
    Contributor

    Python already sets those only if configured (≠ None). Seems like there's a decision to be made on consistency, so I'm going to remove Python scope for now. If it's decided that the current behavior needs to change then please add it back.

  3. TomChv commented on Jan 27, 2023

    @TomChv
    Member

    Fixed for nodeJS in #4465

  4. sipsma commented on Apr 2, 2024

    @sipsma
    ContributorAuthor

    Ancient issue, no longer relevant

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

    area/engine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions