@fungicide:matrix.org | some projects have repositories so large that cloning them from scratch would take several minutes, so having them only need to pull a day's worth of refs instead shaves minutes off of each run, which in turn leads to massive resource savings in aggregate given the volume of jobs we run every hour | 15:23 |
---|---|---|
@jreed:matrix.org | That is a large reason for my motivation and for using a docker container over a VM. I want to have an environment where I can live edit my code and run a specific test with tox. As opposed to either 1) have to work inside of a VM, or 2) copy files back/forth. | 15:25 |
@jreed:matrix.org | This is not my image, but it's similar to this Dockerfile - https://github.com/zulcss/stx-python/blob/main/Dockerfile | 15:26 |
@jreed:matrix.org | Got it from one of my colleagues | 15:26 |
@fungicide:matrix.org | odds are a basic chroot tarball or container image of the test platform will work fine, just take a look at one of the jobs you're trying to replicate to see what additional pre-run setup steps it might be performing in the environment | 15:29 |
@fungicide:matrix.org | other things to keep in mind that might lead to different local vs ci results are differences in concurrency/processor count, timing-related race conditions in tests, resource constraints (differences in i/o bandwidth, filesystem space, memory capacity), different processor features that might get used transparently... | 15:31 |
@fungicide:matrix.org | in theory, unit tests should be designed to avoid being influenced by those sorts of factors, but in practice they'll have a tendency to grow naturally dependent on aspects of the systems where they're run most ofted just through natural selection of nondeterministic bugs getting introduced | 15:32 |
@fungicide:matrix.org | * in theory, unit tests should be designed to avoid being influenced by those sorts of factors, but in practice they'll have a tendency to grow naturally dependent on aspects of the systems where they're run most often just through natural selection of nondeterministic bugs getting introduced | 15:33 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!