activitysim icon indicating copy to clipboard operation
activitysim copied to clipboard

Unstable GitHub Actions tests with package extraction errors

Open i-am-sijia opened this issue 9 months ago • 1 comments

Describe the bug Some ActivitySim GitHub Actions tests are failing. I don't think this is caused by any recent code commits from the development team, because:

  1. Tests are failing in the Setup Miniforge step before doing anything related to ActivitySim, and the error message is about extracting a package (see screenshots below), and
  2. The error happens only in some, but not all tests, even though all tests have the same workflow steps for Setup Miniforge. And every time there are different tests failing, e.g., production_semcog and estimation unit tests failed in this job; while standard 1-zone MTC failed in this job.

I think the workflow configuration for Setup Miniforge needs to be updated to make it stable. After some research, the most likely culprit is the libmamba solver that is current used for the workflow. Although it is faster than the default conda solver, it is less stable. Changing it to the classic conda solver seems to work in my test: https://github.com/wsp-sag/activitysim/actions/runs/13526804691/job/37799900361.

To Reproduce Push a commit or open a pull request, you will probably see some tests failing in Setup Miniforge

Expected behavior

  1. GitHub Actions tests should not fail in Setup Miniforge when creating python env.
  2. If one test fails in Setup Miniforge, we expect all tests could fail at the same step.

Screenshots Image

Image

Additional context Add any other context about the problem here.

i-am-sijia avatar Feb 25 '25 17:02 i-am-sijia

I applied the fix from #925, and more broadly across all the tests. It passes tests... usually. It looks like this is an intermittent error caused by conda failing to download something. Which thing it fails to download does not seem to be always the same; I got a similar error on a different dependency file:

  ld_impl_linux-64-2.43-h712a8e2_4.conda extraction failed
  Warning: error    libmamba Error when extracting package: Could not chdir info/recipe/parent/scripts/activate-binutils.ps1
  
  error    libmamba Error when extracting package: Could not chdir info/recipe/parent/scripts/activate-binutils.ps1
  Warning: Found incorrect download: ld_impl_linux-64. Aborting
  
  Found incorrect download: ld_impl_linux-64. Aborting

jpn-- avatar Mar 05 '25 17:03 jpn--

Closed by #956

jpn-- avatar Jul 24 '25 02:07 jpn--