Readthedocs.org: Cannot wipe PR builder environment to fix "ImportError: cannot import name 'PackageFinder'"

Created on 22 Jan 2020  ·  8Comments  ·  Source: readthedocs/readthedocs.org

Details

We're using the beta PR builder (it's great :+1:), and unfortunately hit #6554 for those builds. We followed the instructions there to try to wipe the environment, but there's no explicit "version" for a PR builder:

image

I tried wiping the latest environment, but our PR builds continued to fail (although it did fix our latest ones).

Expected Result

After wiping some appropriate environment, new PR builds should start from a new environment, e.g. the wiping above did fix it for our latest builds:

Actual Result

I couldn't find a "PR" environment in the list of versions, and wiping the latest environment didn't affect the PR one:

Bug design decision

Most helpful comment

@brockfanning for normal builds, please check https://github.com/readthedocs/readthedocs.org/issues/6554#issuecomment-577409023.

All 8 comments

Thanks for your report. This is definitely a problem, since there is no way to wipe an environment for a PR :)

I do not have a proper workaround to recommend you, and I'm not sure we are going to implement a way to wipe PRs environment since we are migrating to a different approach (without cache, maybe).

I can tell that this problem should be automatically fixed after one day without builds on each version because this cache is automatically deleted. If that does not happen in the following days, let me know and I will try to dig a little more.

I do not have a proper workaround to recommend you, and I'm not sure we are going to implement a way to wipe PRs environment since we are migrating to a different approach (without cache, maybe).

Ok, thanks.

I can tell that this problem should be automatically fixed after one day without builds on each version because this cache is automatically deleted. If that does not happen in the following days, let me know and I will try to dig a little more.

Unfortunately we have many PR pushes on weekdays so maybe it won't have a chance for deletion for a while. However, we usually don't have any new work on weekends, so maybe that'll give it a chance to be deleted.

We're just using the standard setup, as far as I know (not sure what PR builder is) but we're also getting the same error on all builds (cannot import name PackageFinder) as of today (example build). So I'm wondering if it is a more general problem.

@brockfanning for normal builds, please check https://github.com/readthedocs/readthedocs.org/issues/6554#issuecomment-577409023.

We just had a long weekend (88 hours) without any pushes/builds:

image

And, unfortunately, we're still hitting this, but somewhat inconsistently, e.g. for https://github.com/stellargraph/stellargraph/pull/730 :

  1. https://readthedocs.org/projects/stellargraph/builds/10338264/
  2. https://readthedocs.org/projects/stellargraph/builds/10338747/
  3. https://readthedocs.org/projects/stellargraph/builds/10338749/ ❌ (one minute after 2)
  4. https://readthedocs.org/projects/stellargraph/builds/10338940/

This applies to other PRs too, e.g. the first page of https://readthedocs.org/projects/stellargraph/builds/ currently has 6 PR passes and 8 PR failures (and all of them seem to be this ImportError):

image

With https://github.com/readthedocs/readthedocs.org/pull/6598, this may be fixed (installing the buggy version of pip). Wiping still isn't supported

We are no longer keeping the build environment around, so wiping won't be supported.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adamjstewart picture adamjstewart  ·  4Comments

humitos picture humitos  ·  4Comments

cagataycali picture cagataycali  ·  4Comments

enielse picture enielse  ·  4Comments

pllim picture pllim  ·  3Comments