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

Restore downstream tests with mambabuild #111

Open
bollwyvl opened this issue Dec 21, 2022 · 6 comments · Fixed by #115
Open

Restore downstream tests with mambabuild #111

bollwyvl opened this issue Dec 21, 2022 · 6 comments · Fixed by #115
Labels
question Further information is requested

Comments

@bollwyvl
Copy link
Contributor

Comment:

Both #110 and #109 are both failing on the downstreams due to conda errors like:

TEST START: /home/conda/feedstock_root/build_artifacts/pkg_cache/jupyterlab-3.5.2-pyhd8ed1ab_0.conda
Copying package to conda-build croot.  No packages otherwise alongside yours will be available unless you specify -c local.  To avoid this warning, your package must reside in a channel structure with platform-subfolders.  See more info on what a valid channel is at https://conda.io/docs/user-guide/tasks/create-custom-channels.html
WARNING:conda_build.build:Copying package to conda-build croot.  No packages otherwise alongside yours will be available unless you specify -c local.  To avoid this warning, your package must reside in a channel structure with platform-subfolders.  See more info on what a valid channel is at https://conda.io/docs/user-guide/tasks/create-custom-channels.html
Reloading output folder: /home/conda/feedstock_root/build_artifacts
Traceback (most recent call last):
  File "/opt/conda/bin/conda-mambabuild", line 10, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.10/site-packages/boa/cli/mambabuild.py", line 256, in main
    call_conda_build(action, config)
  File "/opt/conda/lib/python3.10/site-packages/boa/cli/mambabuild.py", line 228, in call_conda_build
    result = api.build(
  File "/opt/conda/lib/python3.10/site-packages/conda_build/api.py", line 180, in build
    return build_tree(
  File "/opt/conda/lib/python3.10/site-packages/conda_build/build.py", line 3149, in build_tree
    test(list(local_file.values())[0][0],
  File "/opt/conda/lib/python3.10/site-packages/conda_build/build.py", line 2874, in test
    actions = environ.get_install_actions(metadata.config.test_prefix,
  File "/opt/conda/lib/python3.10/site-packages/boa/cli/mambabuild.py", line 124, in mamba_get_install_actions
    solver = _get_solver(channel_urls, subdir, output_folder)
  File "/opt/conda/lib/python3.10/site-packages/boa/cli/mambabuild.py", line 100, in _get_solver
    solver.replace_channels()
  File "/opt/conda/lib/python3.10/site-packages/boa/core/solver.py", line 177, in replace_channels
    self.local_repos[channelstr] = libmambapy.Repo(
RuntimeError: Could not read JSON repodata file (/home/conda/feedstock_root/build_artifacts/pkg_cache/cache/cf8a841c.json) parse error line 34: subdir mismatch

Probably going to just ship without testing the downstreams, but would be good to get this back.

@bollwyvl bollwyvl added the question Further information is requested label Dec 21, 2022
@bollwyvl bollwyvl mentioned this issue Dec 21, 2022
3 tasks
@jaimergp
Copy link
Member

I've seen this too outside conda-forge. Not sure if it's a libmamba parsing error or a bad JSON file. Does it happen if you disable mambabuild?

@bollwyvl bollwyvl mentioned this issue Dec 21, 2022
5 tasks
@bollwyvl
Copy link
Contributor Author

thanks @jaimergp, trying on #112...

@bollwyvl
Copy link
Contributor Author

It does appear to get past that sticking point. Still have some other issues, but i think they are more easily debugged (downstream test dep drift)

@bollwyvl
Copy link
Contributor Author

    jupyterlab_server:             2.16.5-pyhd8ed1ab_0       local      
    openapi-core:                  0.14.2-pyhd8ed1ab_0       conda-forge
    openapi-schema-validator:      0.3.4-pyhd8ed1ab_0        conda-forge
    openapi-spec-validator:        0.5.1-pyhd8ed1ab_0        conda-forge

Then

E   ImportError: cannot import name 'default_handlers' from 'openapi_spec_validator' ($PREFIX/lib/python3.11/site-packages/openapi_spec_validator/__init__.py)

@bollwyvl
Copy link
Contributor Author

bollwyvl commented Dec 21, 2022

Ugh, that shouldn't be happening:

    - openapi-core >=0.14.2,<0.15.0
    - openapi-spec-validator >=0.4.0,<0.6

I think i remember that from the pre-default-mambabuild days.

@bollwyvl bollwyvl changed the title Restore downstream tests Restore downstream tests with mambabuild Dec 21, 2022
bollwyvl added a commit that referenced this issue Dec 26, 2022
@bollwyvl bollwyvl reopened this Dec 26, 2022
@bollwyvl
Copy link
Contributor Author

Reopening as it doesn't use mambabuild, and it would be ideal to get back to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants