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

GH-44234: [CI][C++][AppVeyor] Use conda instead of Mamba #44235

Merged
merged 5 commits into from
Sep 27, 2024

Conversation

kou
Copy link
Member

@kou kou commented Sep 26, 2024

Rationale for this change

mamba update with Mamba 2.0.0 failed.

What changes are included in this PR?

Use conda instead of Mamba. "conda-libmamba-solver" isn't used too. "classic" solver is used.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Copy link

⚠️ GitHub issue #44234 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added the awaiting committer review Awaiting committer review label Sep 26, 2024
@kou
Copy link
Member Author

kou commented Sep 26, 2024

Using Mamba 1.5.10 (that was worked recently) again: Failed: https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/50678962#L283

C:\projects\arrow>mamba update -q -y -c conda-forge --all   || exit /B 
warning  libmamba Extracted package cache 'C:\Miniconda38-x64\pkgs\pycparser-2.19-py_0' has invalid size
warning  libmamba Extracted package cache 'C:\Miniconda38-x64\pkgs\pycparser-2.19-py_0' has invalid SHA-256 checksum
error    libmamba Failed to download package from https://conda.anaconda.org/conda-forge/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2 (status 404)
Multi-download failed. Reason: Transfer finalized, status: 404 [https://conda.anaconda.org/conda-forge/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2] 575 bytes
error    libmamba Unknown package format ''
error    libmamba Error when extracting package: Unknown package format.
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
    Traceback (most recent call last):
      File "C:\Miniconda38-x64\lib\site-packages\conda\exception_handler.py", line 18, in __call__
        return func(*args, **kwargs)
      File "C:\Miniconda38-x64\lib\site-packages\mamba\mamba.py", line 960, in exception_converter
        raise e
      File "C:\Miniconda38-x64\lib\site-packages\mamba\mamba.py", line 953, in exception_converter
        exit_code = _wrapped_main(*args, **kwargs)
      File "C:\Miniconda38-x64\lib\site-packages\mamba\mamba.py", line 899, in _wrapped_main
        result = do_call(parsed_args, p)
      File "C:\Miniconda38-x64\lib\site-packages\mamba\mamba.py", line 770, in do_call
        exit_code = update(args, parser)
      File "C:\Miniconda38-x64\lib\site-packages\mamba\mamba.py", line 619, in update
        return install(args, parser, "update")
      File "C:\Miniconda38-x64\lib\site-packages\mamba\mamba.py", line 559, in install
        transaction.fetch_extract_packages()
    RuntimeError: Multi-download failed. Reason: Transfer finalized, status: 404 [https://conda.anaconda.org/conda-forge/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2] 575 bytes

@kou
Copy link
Member Author

kou commented Sep 26, 2024

Using Mamba 2.0.0 with cache clear: Failed: https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/50679328#L306

C:\projects\arrow>mamba update -q -y -c conda-forge --all   || exit /B 
info     libmamba ****************** Backtrace Start ******************
debug    libmamba Loading configuration
trace    libmamba Compute configurable 'create_base'
trace    libmamba Compute configurable 'no_env'
trace    libmamba Compute configurable 'no_rc'
trace    libmamba Compute configurable 'rc_files'
trace    libmamba Compute configurable 'root_prefix'
trace    libmamba Get RC files configuration from locations up to HomeDir
trace    libmamba Configuration not found at 'C:\Users\appveyor\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.mamba\mambarc.d'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.mamba\mambarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.mamba\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\mamba\mambarc.d'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\mamba\mambarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\mamba\.mambarc'
trace    libmamba Configuration found at 'C:\Users\appveyor\.condarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.conda\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.conda\condarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.conda\.condarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\conda\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\conda\condarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\conda\.condarc'
trace    libmamba Configuration not found at 'C:\Miniconda38-x64\Library\.mambarc'
trace    libmamba Configuration not found at 'C:\Miniconda38-x64\Library\condarc.d'
trace    libmamba Configuration not found at 'C:\Miniconda38-x64\Library\condarc'
trace    libmamba Configuration not found at 'C:\Miniconda38-x64\Library\.condarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\.mambarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\condarc.d'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\condarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\.condarc'
trace    libmamba Update configurable 'no_env'
trace    libmamba Compute configurable 'envs_dirs'
trace    libmamba Compute configurable 'file_specs'
trace    libmamba Compute configurable 'spec_file_env_name'
trace    libmamba Compute configurable 'env_name'
trace    libmamba Compute configurable 'use_default_prefix_fallback'
trace    libmamba Compute configurable 'use_root_prefix_fallback'
trace    libmamba Compute configurable 'use_target_prefix_fallback'
trace    libmamba Compute configurable 'target_prefix'
trace    libmamba Get RC files configuration from locations up to TargetPrefix
trace    libmamba Configuration not found at 'C:\Users\appveyor\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.mamba\mambarc.d'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.mamba\mambarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.mamba\.mambarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\mamba\mambarc.d'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\mamba\mambarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\mamba\.mambarc'
trace    libmamba Configuration found at 'C:\Users\appveyor\.condarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.conda\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.conda\condarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\.conda\.condarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\conda\condarc.d'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\conda\condarc'
trace    libmamba Configuration not found at 'C:\Users\appveyor\AppData\Roaming\conda\.condarc'
trace    libmamba Configuration not found at 'C:\Miniconda38-x64\Library\.mambarc'
trace    libmamba Configuration not found at 'C:\Miniconda38-x64\Library\condarc.d'
trace    libmamba Configuration not found at 'C:\Miniconda38-x64\Library\condarc'
trace    libmamba Configuration not found at 'C:\Miniconda38-x64\Library\.condarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\.mambarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\condarc.d'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\condarc'
trace    libmamba Configuration not found at 'C:\ProgramData\conda\.condarc'
trace    libmamba Update configurable 'no_env'
trace    libmamba Compute configurable 'relocate_prefix'
trace    libmamba Compute configurable 'target_prefix_checks'
error    libmamba Expected environment not found at prefix: C:\Miniconda38-x64\Library
critical libmamba Aborting.
info     libmamba ****************** Backtrace End ********************

@kou kou changed the title GH-44234: [CI][C++][AppVeyor] Pin Mamba to 1.5.10 GH-44234: [CI][C++][AppVeyor] Use conda instead of Mamba Sep 26, 2024
@kou
Copy link
Member Author

kou commented Sep 26, 2024

Using conda with conda-libmamba-solver 2.0.0: Failed: https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/50679652#L296

C:\projects\arrow>conda update -q -y -c conda-forge --all   || exit /B 
Error while loading conda entry point: conda-libmamba-solver (module 'libmambapy' has no attribute 'QueryFormat')
CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

@kou
Copy link
Member Author

kou commented Sep 26, 2024

Passed with "classic" solver.

@kou
Copy link
Member Author

kou commented Sep 27, 2024

Package install time is slower: 00:05:38 ->

Before: https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/50676183?fullLog=true#L748

After: https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/50679973?fullLog=true#L920

This is slower but let's merge this to fix CI failures.

We may migrate to GitHub from AppVeyor: #42137
So this may be a temporary solution.

@kou kou merged commit 96d61c7 into apache:main Sep 27, 2024
15 checks passed
@kou kou deleted the ci-appveyor-mamba branch September 27, 2024 01:43
@kou kou removed the awaiting committer review Awaiting committer review label Sep 27, 2024
Copy link

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 96d61c7.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 10 possible false positives for unstable benchmarks that are known to sometimes produce them.

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

Successfully merging this pull request may close these issues.

1 participant