Skip to content

Build: append Conda requirements for non Conda builds #9588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sentry-io bot opened this issue Sep 7, 2022 · 3 comments
Closed

Build: append Conda requirements for non Conda builds #9588

sentry-io bot opened this issue Sep 7, 2022 · 3 comments
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 7, 2022

How did we ended up into _append_conda_requirements if the build is not a Conda build? Is this a config file validation issue? Is the workflow broken for some cases?

In [1]: b = Build.objects.get(task_id='82b5dcc4-58a5-4997-8fc4-d8eafcc89df9')

In [2]: b.get_absolute_url()
Out[2]: '/projects/gdptools/builds/18010191/'

In [3]:

Sentry Issue: READTHEDOCS-ORG-PBW

AttributeError: 'NoneType' object has no attribute 'environment'
(3 additional frame(s) were not displayed)
...
  File "readthedocs/projects/tasks/builds.py", line 691, in execute
    self.data.build_director.setup_environment()
  File "readthedocs/doc_builder/director.py", line 161, in setup_environment
    self.create_environment()
  File "readthedocs/doc_builder/director.py", line 251, in create_environment
    self.language_environment.setup_base()
  File "readthedocs/doc_builder/python_environments.py", line 361, in setup_base
    self._append_core_requirements()
  File "readthedocs/doc_builder/python_environments.py", line 398, in _append_core_requirements
    self.config.conda.environment,
@humitos humitos added Bug A bug Accepted Accepted issue on our roadmap labels Sep 7, 2022
@humitos humitos moved this to Planned in 📍Roadmap Sep 7, 2022
@stsewd
Copy link
Member

stsewd commented Sep 7, 2022

How did we ended up into _append_conda_requirements if the build is not a Conda build?

It's a conda build https://code.usgs.gov/wma/nhgf/toolsteam/gdptools/-/blob/aae8a912213b856a903ee566ccafa5b3b503ccba/.readthedocs.yml#L9-10

@humitos
Copy link
Member

humitos commented Sep 7, 2022

Oh, the thing is that build.tools.python: "miniconda" does require conda.environment and it's not defined in that config file. We should make a note in the docs if we are not already and make the config file to validate this case.

@humitos
Copy link
Member

humitos commented Jul 3, 2023

This could be handled at #10502 and #9008 as well. So, I'm linking that issue here and closing this one.

@humitos humitos closed this as completed Jul 3, 2023
@github-project-automation github-project-automation bot moved this from Planned to Done in 📍Roadmap Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
Archived in project
Development

No branches or pull requests

2 participants