• thebestaquaman@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    To me, that makes it sound like you’re writing too much and too complex yaml files manually, and/or that you don’t have good enough CI to catch invalid configurations. Unless, of course, you have very few prod failures overall, and the few that happen are due to yaml indentation, which I still think is a bit weird, since an invalid config caused by incorrect indentation should ideally be caught at compile time (if you’re generating code from the yaml) or by some linter or something (if you’re using it for config).

    • Faux@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      In yaml a mistake in indentation can easily result in a business error without config becoming invalid.

      Writing too much complex configs in files is a problem too ofc, we ended up moving a lot of stuff like that to a DB lately.

      I’m not a fan of indentation being logically meaningful not just in yaml. If you mess up indentation in python you can also get a technically valid code that’s wrong logically.