Skip to content
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

Doc build failing when project renamed #490

Open
maximlt opened this issue Jan 10, 2025 · 0 comments
Open

Doc build failing when project renamed #490

maximlt opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@maximlt
Copy link
Contributor

maximlt commented Jan 10, 2025

Opening a PR and changing the project name multiple times will create multiple folders in the tmp evaluated branch, which are all pulled when building the docs and can cause errors. For instance, it happened in #430 with

Project(s) that will be built: ['attractors', 'bay_trimesh', 'boids', 'carbon_flux', 'census', 'census2010', 'census2020', 'census_one', 'datashader_dashboard', 'euler', 'exoplanets', 'gapminders', 'genetic_algorithm', 'gerrymandering', 'glaciers', 'goldbach_comet', 'gull_tracking', 'heat_and_trees', 'hipster_dynamics', 'iex_trading', 'landsat', 'landsat_clustering', 'landuse_classification', 'lsystems', 'ml_annotators', 'multichannel_timeseries', 'network_packets', 'nyc_buildings', 'nyc_taxi', 'opensky', 'osm', 'particle_swarms', 'penguin_crossfilter', 'portfolio_optimizer', 'seattle_lidar', 'ship_traffic', 'square_limit', 'sri_model', 'streaming_timeseries', 'template', 'timelapse_microscopy', 'uk_researchers', 'volumetric_imaging', 'walker_lake', 'world_cup']
Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/home/runner/miniconda3/envs/examples-gallery-manage/lib/python3.11/site-packages/sphinx/config.py", line 529, in eval_config_file
    exec(code, namespace)  # NoQA: S102
    ^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/examples/examples/doc/conf.py", line 174, in <module>
    'sections': [gallery_spec(project) for project in projects],
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/examples/examples/doc/conf.py", line 174, in <listcomp>
    'sections': [gallery_spec(project) for project in projects],
                 ^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/examples/examples/doc/conf.py", line 90, in gallery_spec
    with open(path) as f:
         ^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '../census2010/anaconda-project.yml'

See Project(s) that will be built: ['attractors', 'bay_trimesh', 'boids', 'carbon_flux', 'census', 'census2010', 'census2020', 'census_one', ...

Image

A solution would be to override completely the content of the tmp branch whenever we push from the build step.

@maximlt maximlt added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant