Topic on Talk:Wikimedia Release Engineering Team/CI Futures WG/Requirements

Devs sshing into machine - only 'would be nice'?

5
Summary by LarsWirzenius

Requirement "Must allow developer to replicate locally the tests that CI runs" satisfies this.

EEggleston (WMF) (talkcontribs)

I see this is under "would be nice":

  • Developers should have an option to ssh to VM/container that CI used to run the tests for debugging.

That's been pretty indispensable in debugging some unit tests in my experience, especially more complex custom things like the civicrm setup.

Jdforrester (WMF) (talkcontribs)

sshing into the temporary container created in CI (hosted on CI) to test the patch isn't currently supported, unless I'm missing something? Doing the same on a local machine is indeed a key debugging technique, but not quite the same.

EEggleston (WMF) (talkcontribs)

Ah, right, with the docker images I had to create a snapshot before the test finished, and then run bash in that. As long as there's SOME way get in and debug tests I'm happy!

LarsWirzenius (talkcontribs)

Does the requirement "Must allow developer to replicate locally the tests that CI runs. This is necessary to allow lower friction in development, as well as to aid debugging." suffice for this?

EEggleston (WMF) (talkcontribs)

Sure, that sounds good.