Commit Graph

3187 Commits

Author SHA1 Message Date
Hind Montassif 3bc31adbf0 release libmamba 2.0.0rc4, libmambapy 2.0.0rc4, micromamba 2.0.0rc4 2024-08-29 15:35:30 +02:00
Julien Jerphanion 5251abaad0
test: Adapt `test_remove_orphaned` unlinks (#3417)
* test: Adapt `test_remove_orphaned` unlinks

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Relax test by only checking for at least two unlinks' presence.

Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>

* Revert to the commented and previously used value

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* Revert "Revert to the commented and previously used value"

This reverts commit 009f982c54.

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
2024-08-29 14:22:35 +02:00
Julien Jerphanion 0a01ecfc9d
fix: Reduce logging system overhead (#3416)
* test: Non-regression test

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* fix: Use penultimate libsolv's log level

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Only run `test_env_spdlog_overhead_regression` on Linux

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>

* Add time-out on test and rename conda env

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* Decrease timout to 15 seconds and use dry-run

A dry run takes slightly less than 10 seconds.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Use bounded value of `output_params.verbosity` as in 1.x

See: https://github.com/mamba-org/mamba/blob/1.x/libmamba/src/core/pool.cpp#L72

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Instead define and use and alternative `set_level`

I was hesitating between the previous solution and
this one (which is not really ideal either) but
which at least does not leak the `Context`.

Friend function could be used but we get this kind of
issue, but I am currently meeting this problem:
https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2174

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Revert "Instead define and use and alternative `set_level`"

This reverts commit f1f41b71d0.

* Simply hardcode the verbosity level to 3

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* Increase timeout from 15 to 30 seconds

15 seconds is not sufficient as shown on the CI.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* From 30 sec to 60 sec

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* DEBUG No timeout

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* test: Remove edge-case for unlinks

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* test: Adapt number of unlinks on Linux

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Assert success

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* docs: Update comments

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* `const`-qualify `level`

* Use 100 seconds for the timeout

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* Use 200 seconds for the timeout

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Adapt according to `1.x`'s behavior

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* fixup! Adapt according to `1.x`'s behavior

* Revert changes to handle CI failures

This is handled by another PR.

See: https://github.com/mamba-org/mamba/pull/3417

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
2024-08-29 14:03:18 +02:00
Hind Montassif aaf8d206ae release libmamba 2.0.0rc3, libmambapy 2.0.0rc3, micromamba 2.0.0rc3 2024-08-26 15:44:46 +02:00
Julien Jerphanion 0bd2ee6ecf
Define `etc/profile.d/mamba.sh` and install it (#3413)
* Install profile.d directory

* Format

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Package etc/profile.d/mamba.sh

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Just install mamba.sh directly

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Modify env specification to invalidate its cache

FYI, the "build" package has been yanked:
https://prefix.dev/channels/conda-forge/packages/build

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Empty commit to retrigger CI

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Change output path of the script

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Revert uneeded changes

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Sylvain Corlay <sylvain.corlay@gmail.com>
2024-08-26 14:14:55 +02:00
Julien Jerphanion ae84962dcf
Add posix to supported shells (#3412)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-08-23 10:46:02 +02:00
Sylvain Corlay a33950261b
Replaces instances of -p with --root-prefix in documentation (#3411) 2024-08-23 10:45:23 +02:00
Julien Jerphanion 2270348727
docs: Adapt "Solving Package Environments" section (#3326)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-08-21 11:14:20 +02:00
Hind Montassif f4ab0b2377 release libmamba 2.0.0rc2, libmambapy 2.0.0rc2, micromamba 2.0.0rc2 2024-08-19 09:16:57 +02:00
Hind-M aec5390597
[win-64] Remove workaround (#3398)
Remove workaround (issue now fixed)
2024-08-12 18:02:08 +02:00
Hind-M 83fdeae465
[win-64] Add constraint on fmt (#3400)
Add constraint on fmt (until next release)
2024-08-12 17:02:23 +02:00
Hind-M d17ebc52cc
[micromamba] Fix behavior of `env update` (to mimick conda) (#3396)
* Fix behavior of env update (to mimick conda)

* Code review:
Use struct and enum class for update parameters
2024-08-08 12:00:45 +02:00
Casper van Elteren c7563b8617
Reset the prompt back to default (#3392) 2024-08-06 10:54:34 +02:00
Hind-M 9663cbfdac
Add missing header (#3389) 2024-08-02 14:52:17 +02:00
jaimergp d662921715
Unpin cryptography, python, and add make to environment-dev.yml (#3352) 2024-08-01 14:27:42 +02:00
Julien Jerphanion bc89383ca7
ci: Unpin libcxx <18 (#3375)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-08-01 09:16:30 +02:00
Julien Jerphanion 16fec215e9
test: Adapt test_explicit_export_topologically_sorted (#3377)
As of pip 24.1.2 distribution on conda-forge,
pip does not depend on wheel anymore:
https://github.com/conda-forge/pip-feedstock/pull/121/files#diff-f3725a55bf339595bf865fec73bda8ac99f283b0810c205442021f29c06eea9aR21-R25

Hence wheel index being 0 causing the bug.

Let's omit it entirely.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-31 18:39:50 +02:00
Julien Jerphanion ca8cee50fe
test: Comparability and hashability of `PackageInfo` and `MatchSpec` (#3369)
test: Add test for comparability and hashability

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-30 17:35:50 +02:00
Julien Jerphanion d0d7eea49a
build: Support fmt 11 (follow-up) (#3371)
* build: Support fmt 11

A few other elements were required, as observed in:
https://github.com/mamba-org/mamba/pull/3352

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Unpin python on 3.9

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* ci: use libcxx<18 for macOS

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Add TODO comment

Co-authored-by: Hind-M <Hind-M@users.noreply.github.com>

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-30 15:57:15 +02:00
Hind-M de040eb225
Restore previous behavior of `MAMBA_ROOT_PREFIX` (#3365)
Restore previous behavior
2024-07-30 10:57:23 +02:00
Julien Jerphanion 4fbd22a9c0
build: Support fmt 11 (#3368)
* build: Support fmt 11

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* fixup! build: Support fmt 11

Required for Windows.

See: https://github.com/mamba-org/mamba/actions/runs/10144210776/job/28047211432?pr=3368#step:8:955

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-29 16:28:56 +02:00
Julien Jerphanion b09f1d162f
Make more classes hashable and comparable (#3363)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
2024-07-29 11:06:45 +02:00
Julien Jerphanion 154012f256
Replace `Context` with `Context::platform` where possible (#3364)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-29 10:59:27 +02:00
Johan Mabille bdae0a1405 release libmamba 2.0.0rc1, libmambapy 2.0.0rc1, micromamba 2.0.0rc1 2024-07-27 01:08:20 +02:00
Cornelius Roemer 4b8cc14869
chore(ci): bump github action versions (#3350)
* chore(ci): bump actions/checkout to v4

* chore(ci): bump actions/cache to v4

* chore(ci): bump upload-artifact to v4

* Update static_build.yml

* No whitespace changes
2024-07-25 13:15:24 +02:00
Andy Kipp 4cc78c87ac
Update mamba.xsh: support xonsh >= 0.18.0 (#3355)
Update mamba.xsh
2024-07-25 10:44:52 +02:00
Hind-M ce1c4f22bd
Allow leading lowercase letter in version (#3361) 2024-07-25 09:23:39 +02:00
Hind-M a10a532fd8
Remove logs for every package (#3335) 2024-07-23 13:32:55 +02:00
Hind-M c6f2f24d5a
Allow spaces in version after operator (#3358)
Allow spaces in version after operator
2024-07-23 13:28:12 +02:00
Cornelius Roemer b418cf4a68
doc(more_concepts.rst): improve clarity (#3357)
`all the file systems are not supporting such links` is most likely meant to mean "not all are" rather "all are not"
2024-07-19 14:03:13 +02:00
Paul Brit 413285c7b7
fix: micromamba run when cwd does not exist (#3336)
fail micromamba run if cwd does not exist

Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
2024-07-15 17:30:32 +02:00
Hind-M 43da6b02a2
Fix repo usage after removal (#3340)
not use repo after removal
2024-07-15 15:20:42 +02:00
Johan Mabille 5c954c75c8 release libmamba 2.0.0rc0, libmambapy 2.0.0rc0, micromamba 2.0.0rc0 2024-07-08 09:32:53 +02:00
Hind-M a71f63f1e0
Attempt to fix `test_proxy_install` (#3324)
Attempt to fix test_proxy_install random failure on CI
2024-07-02 11:15:30 +02:00
Hind-M 7f70ac900a
Fix `test_no_python_pinning` (#3321)
* Enable test_no_python_pinning

* Fix test_no_python_pinning
2024-07-02 11:14:57 +02:00
Klaim (Joël Lamotte) 855b533dd1
Fixed restoring the previous signal handler for example in python case (Windows only for now) (#3297)
* Fixed restoring the previous signal handler for example in python case

* formatting

* Fix formatting

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Klaim <Klaim@users.noreply.github.com>

---------

Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
2024-07-01 16:54:15 +02:00
Klaim (Joël Lamotte) 76570f83b8
Splitt `ContextOptions::enable_logging_and_signal_handling` into 2 different options (#3329)
Splitt `ContextOptions::enable_logging_and_signal_handling` into 2 different options.
2024-06-19 16:29:47 +02:00
Julien Jerphanion 123d521521
maint: Remove declaration of `PrefixData::load` (#3325)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-06-14 15:09:22 +02:00
Johan Mabille b277685bb5
Temporarily disabled no_python_pinning test on Windows (#3322) 2024-06-14 11:42:35 +02:00
Johan Mabille f5abb6e1c7 release libmamba 2.0.0beta3, libmambapy 2.0.0beta3, micromamba 2.0.0beta3 2024-06-14 11:34:27 +02:00
Klaim (Joël Lamotte) ab088e5d8a
libmambapy: use `Context` explicitly (#3309)
* All python singletons lifetime are bound to a unique `Context` instance lifetime

In `libmambapy`:
- bound singletons lifetime to the first `Context` instance created
- throw an error if more than one `Context` instance are created at any time
(this only applies to python and will be changed at another time)
- therefore the python user must create a `Context` before using any other functions

This specific change does not (yet) changes the other functions APIs to take
explicitly the `Context` object.

* simplify python expressions

* python API change, added requirement for a `Context` instance

affected functions:
- MultiPackageCache (constructor)
- SubdirData.create_repo
- SubdirIndex.create
- SubdirIndex.download
- clean
- transmute
- get_virtual_packages
- cancel_json_output

* libmamba loggers are now unregistered when Context instance is destroyed

* fixed: dont use `default` as a name

* remove quick-test file

* linter fixes

* Updated documentation

* temptative fix for potential data race in libmamba tests

* libmamba tests: added an assertion to be sure

* linter pass

* fixup libmambatests

* added log for helping understanding ci failure

* review fixes
2024-06-14 09:50:58 +02:00
Julien Jerphanion d12f3711e6
maint: Remove some warnings (#3320)
* maint: Remove some warnings

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Lint

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-06-13 16:56:17 +02:00
Julien Jerphanion 0793fad741
maint: Remove `PrefixData::load` (#3318)
Merge its content within `PrefixData::PrefixData`.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-06-13 16:16:52 +02:00
Hind-M 287bf22de2
OCI/Conda mapping (#3310)
* Map packages names starting with '_' to match OCI registries rules (and CEP 70)

* Use _go_select instead of _libgcc_mutex in tests
Remove dry-run and check result with umamba_list
2024-06-13 09:38:24 +02:00
Hind-M 7f8d5649c0
[OCI - Mirrors] Add tests and doc (#3307)
* Add doc and micromamba python test

* Add some tests for mirrors

* Use another channel name to avoid interfering with conda-forge

* Add test parameter to use libsolv parser

* Remove dry-run from tests
2024-06-12 16:36:31 +02:00
Hind-M 4604d390e9
Fix test_no_python_pinning (#3319) 2024-06-12 14:29:16 +02:00
Hind-M 49fd2f0f5d
Fix CI failure on win-64 (#3315)
* Attempt to fix CI failure on win-64

* Set flag in CI workflow instead of CMake file
2024-06-11 11:54:41 +02:00
Hind-M 221c671fcd
Fix release scripts (#3306)
* Fix requested files limit by using grapghql command
Only write in file when PRs list is not empty in each category

* Fix regex expression
2024-06-07 13:59:02 +02:00
Julien Jerphanion 7e1aae7d6e
docs: Add note about `ccache` (#3305)
* Update `dev/environment-dev.yml`

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Specify to use dev/environment-dev-extra.yml

Since is contains ccache.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Use the normal dev env and add note regarding ccache

Co-authored-by: Hind-M <Hind-M@users.noreply.github.com>

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* fixup! Use the normal dev env and add note regarding ccache

* Adapt notes

Co-authored-by: Hind-M <Hind-M@users.noreply.github.com>

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Stop multitasking, Julien.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-06-07 10:30:57 +02:00
Hind-M 56c0a8397c
Fix osx version test (#3308) 2024-06-07 10:27:55 +02:00