question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CI regressions on Windows

See original GitHub issue

We are currently using Conda for Python installation management on Windows, mainly so we can use the msys2 packages to pull in a gcc and make to build and run cocotb. We have had issues with Windows CI in the past (#1909) with sqlite.dll not being on the path, and again recently with cocotb not being importable.

Both have the same root cause: tox using virtualenvs is not compatible with the weirdness of conda installations on Windows. Compare a tox environment with a top-level miniconda environment and you’ll see significant differences. All, the tests tend to pass when not using tox.

There are 2 alternatives here:

  1. Don’t use tox on Windows. This is fine, we are booting a new VM, installing miniconda afresh. Tox is actually not offering us much in terms of isolation this instance.
  2. Use tox-conda and move conda requirements into tox.ini. I’m not sure how this will affect regressions in non-conda environments like Linux and MacOS.

I’m in favor of 1.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ktbarrettcommented, Oct 8, 2020

I don’t know why I didn’t realize this before, but it’s a miracle this worked in the first place. We install packages into the global conda installation and then let tox create an isolated environment that is expected to use the globally installed msys packages? That’s just totally wrong… tox-conda is actually the correct way (and only way?), but as we have seen, isn’t a good solution. So I think not using tox on Windows is the best play.

Hopefully one day we can move away for needing msys2 to install and run cocotb on Windows.

1reaction
einecommented, Oct 8, 2020

Refs: tox-dev/tox#1648 msys2/MINGW-packages#7014

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial: Automate regression tests with CI/CD - Azure Load ...
This tutorial describes how to quickly identify performance regressions by using Azure Load Testing Preview and CI/CD tools.
Read more >
Nightly Platform CI regression on Windows #1029 - GitHub
Potential regression affecting some "Nightly Platform CI" Windows jobs (the nightly_win_rep and nightly_win_rel jobs).
Read more >
Using Prediction Intervals to Define Process Windows
You can achieve this using a very simple tool: the prediction intervals of a regression model. A Historical Perspective on Interchangeable Parts.
Read more >
Regression: pwsh shell on windows - unicode characters are ...
Regression : pwsh shell on windows - unicode characters are corrupted ... Utils.psm1 .gitlab-ci.yml. Edited by Jens Hofmann 2 months ago.
Read more >
Find a confidence interval and a prediction ... - STAT ONLINE
Select OK. The output will appear in the session window. Next, back up to the Main Menu having just run this regression: Select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found