Commit Graph

211 Commits

Author SHA1 Message Date
Antoine Prouvost 3cb488bb61
Conda canary on 1.x (#2950)
* Conda canary on 1.x

* Update .github/workflows/conda_canary.yml

Co-authored-by: Jonas Haag <jonas@lophus.org>

---------

Co-authored-by: Jonas Haag <jonas@lophus.org>
2023-12-06 12:56:57 +01:00
Jonas Haag 0177c44383
Extend issue template (#2996)
* Extend issue template

* Update bug.yml
2023-11-21 09:17:04 +01:00
Antoine Prouvost 1d038d1577
Fail fast except on debug runs (#2985) 2023-11-16 16:21:58 +01:00
Antoine Prouvost 0d42e81667
Modularize libmambapy (#2960)
* Modularize libmambapy

* Add test-libmambapy to Taskfile

* Fix libmamba installation

* Fix standalone libmambapy configuration

* Change libmambapy layout

* Add scikit-build

* Fix libmambapy extension name

* Add submodules shims

* Fix libmambaoy tests

* Fix stubgen

* Adapt libmambapy tests to scikit-build

* Read version from Python

* Replace confusing names
2023-11-10 18:29:16 +01:00
Antoine Prouvost 8683078464
Refactor CI and libamambapy tests (on Win) (#2955)
* TMP disable Unix tests

* Try refactor win CI

* Add libmambapy tests

* Run Windows libamamba tests via CMake

* Add Windows menuinst dependency

* Fix typo

* Debug libmambapy tests Win

* Add micromamba tests windows

* Call test_libmamba from different paths

* Merge workflow launchers

* Fix libmamba tests win

* Fxi

* Fix workspace key

* DEbug win

* Implement local channel tests as part of the intergration tests

* Try Win libmamba tests bash

* Cleanup

* Restore Unix tests

* Make test local channel noarch

* Fix workspace action number

* No error on test cleanup in CI

* Reduce number of threads to conda-index

* Disable local channel tests on Windows
2023-11-03 14:07:54 +01:00
Antoine Prouvost fdf2b65a27
Refactor CI and libamambapy tests (on Unix) (#2952)
* Add simple libmambapy test

* Use CMakePresets in CI

* Share workspace between jobs

* Add Conda dependency

* Remove CMake STRIP

* Fix menuinst skipping

* Refactor CMakePresets

* Change ccache key

* Add pkg-config
2023-11-02 13:55:39 +01:00
Antoine Prouvost c32da691c1
Remove mamba (#2942) 2023-10-30 10:42:39 +01:00
Antoine Prouvost 6592c84084
Combine dev environments (#2937) 2023-10-26 12:48:50 +02:00
Hind-M 620ae9500c
Add CI test for local channels (#2854)
* Add CI test for local channels

* Replace conda_prefix with mamba_root_prefix

* Add note for `-c local` in channels long description

* Throw exception if no `conda-bld` dir exists and `-c local` is given

* Add umamba local channel tests to windows CI

* Fix test_config
2023-10-06 11:11:49 +02:00
Antoine Prouvost 91b6c44a51
Read repodata.json using nl::json (rerun) (#2753)
* Add simdjson dependency

* Add experimental_repodata_parsing option

* Add simdjson repodata parser

* Add missing dependency

* Deactivate simdjson by default
2023-10-04 22:06:46 +02:00
Antoine Prouvost 6fe4f4d1bf
Fix win test micro.mamba.pm (#2888)
* Fix win test micro.mamba.pm

* Remove workflow
2023-10-04 14:29:03 +02:00
John Blischak 427bcd5d8e
Update GitHub Actions steps to open Issues for failed scheduled jobs (#2884) 2023-10-02 20:26:17 +02:00
Antoine Prouvost 0fbb0e4fab
Use CMake targets for reproc (#2883)
* Use CMake targets for reproc

* Use reproc-cpp-static on Windows

* Upper pin on Mamba
2023-10-02 18:01:14 +02:00
Antoine Prouvost be30af600a
Build micromamba win with feedstock (#2859)
* Try CI

* Remove useless header

* Try mixing static windows build with Conda

* More packages from conda-forge

* Move to yaml-cpp>=0.8.0

* Ensure proper yaml-cpp target

* Use yaml-cpp-static on Windows

* Fix versions

* Use libsolv-static from Conda-Forge
2023-09-27 10:32:47 +02:00
Antoine Prouvost 60962b9d82
Build micromamba with /MD (#2862)
* Build micromamba with /MD

* Factor same dependencies

* Factor header only libraries
2023-09-22 13:44:17 +02:00
Antoine Prouvost 3c200f9e8e
Don't force MSVC_RUNTIME (#2861)
* Don't force MSVC_RUNTIME

* Run micromamba-feedstock fork

* Explicit MSVC runtime in CI

* Fix typo
2023-09-21 20:02:02 +02:00
Antoine Prouvost a527511c14
Add CondaURL (#2805)
* No build pattern in util::URL

* URL move string for already encoded operations

* Add exclusion characters to util::url_encode

* Add encoding of URL path

* Simplify URL file empty host handling

* Add raw URL::str

* Add path_get_drive_letter

* Url encode with char exclude

* Handle Windows drive encoding

* Add URL::clear_xxx

* Add CondaURL

* Add specs::known_platforms

* Fix CondaURL::token

* Add CondaURL::platform

* Fix pybind tests

* Add CondaURL::package

* Rename specs/url.hpp > specs/conda_url.hpp
2023-09-07 16:59:46 +02:00
Antoine Prouvost 6c6385f6fd
Use Release build mode in Windows CI (#2785)
* Use Release build mode in Windows CI

* Remove dead test_libmamba job

* Add missing install in win libmamba tests
2023-08-28 21:12:08 +02:00
Johan Mabille 2874da9dfb
Splitted GHA workflow (#2779) 2023-08-25 09:50:48 +02:00
Johan Mabille 6e4d91e2ec
New apis for downloading (#2695)
* New apis for downloading

* Changes according to review

* Added minimal test and fixed issues

* Python backward compatibility
2023-08-23 09:07:20 +02:00
Hind-M 8b073ca2fe
[CI] Add `Debug` build type (#2762)
Add Debug build type in CI
2023-08-22 11:54:56 +02:00
Antoine Prouvost 9438ac77d2
Fix and improve static builds (#2755)
* Check that CI fails

* Run CI through conda-forge script

* Run conda-forge script in feddstock dir

* Try setting mamba source visible to conda-forge script

* Fix feedstock patch path

* Checkout TMP AntoinePrv repo

* Don't template micromamba-feedstock

* Fix checkout ref

* Extract static package

* TMP debug OSX build

* Set OSX out dir

* Disable cleanup

* Run Linux ppc64le and aarch64 builds on emulated arch

* Try running python on fedora

* Run docker in docker

* Try ubuntu

* Change repo to conda-forge

* Revert "Check that CI fails"

This reverts commit 3b1a7d29ec.

* Remove unused recipe fork
2023-08-17 14:33:03 +02:00
Jonas Haag 217440dc74
Split Mamba and Micromamba installation docs (#2719)
Co-authored-by: Antoine Prouvost <AntoinePrv@users.noreply.github.com>
2023-08-05 23:52:42 +02:00
Pavel Zwerschke cf9a32bc9a
Improve pre-commit action (#2626) 2023-06-27 16:14:55 +02:00
Pavel Zwerschke 8f93ee6a19
Switch to setup-micromamba (#2610) 2023-06-21 14:21:55 +02:00
Antoine Prouvost e6907806c1
Switch linters to setup-micromamba (#2600) 2023-06-16 12:16:52 +02:00
Antoine Prouvost 7b0b9a5aeb
Move GHA to setup-micromamba (#2545)
* Move to setup-micromamba

* Try init-shell

* Activate env in umamba_tests_win_cmd

* Add test_run failure output

* Try pwsh

* Use TEST_MAMBA_EXE in test_run.sh

* Unset CONDARC

* Remove more CONDARC

* Remove unecessary cleanup in main CI

* Flexible Pytest deletion

* Remove explicit activation
2023-06-15 18:20:10 +02:00
Antoine Prouvost 338bdd4e5f
Try new vcpkg (#2572)
* Try new vcpkg

* Lower pin on VCPKG

* Get VCPK from GHA

* Remove all VCPKG patching

* Set VCPKG root

* Cache VCPKG dependencies

* Point CMake to VCPKG dir

* Fix path

* Adjust CMAKE_PREFIX_PATH

* Weekly cache of VCPKG

* Try setting VCPKG_ROOT
2023-06-12 20:57:36 +02:00
Antoine Prouvost 692fb367b4
Fix server auth test (#2560)
* Add pip and Python dependencies

* Pin down cryptography
2023-06-01 19:26:16 +02:00
Pavel Zwerschke 6792f50cae
Use only vcpkg for static windows build (#2520) 2023-05-22 14:19:38 +02:00
Jonas Haag 0e2deafb86
Extend issue template (#2310) 2023-04-11 22:59:18 +03:00
Johan Mabille e5451c94f9
Replaced libtool 2.4.6_9 with libtool 2.4.7-3 in vcpkg builds (#2439) 2023-04-03 16:30:40 +02:00
Johan Mabille d9a843c8c6
Fixed builds based on vcpkg (#2435) 2023-03-31 17:23:43 +02:00
Wolf Vollprecht 7866468c51
Micromamba server (#2185)
Implemented a micromamba server
2023-03-08 15:54:10 +01:00
Johan Mabille b38377a479
Only full shared or full static build (#2342) 2023-03-03 17:27:25 +01:00
Jonas Haag 6baa36f016
Fix mamba init in combination with latest conda (#2249)
Co-authored-by: Wolf <w.vollprecht@gmail.com>
2023-02-03 09:09:49 +01:00
Jonas Haag 72a1badd71
Fix Windows static builds (#2228)
Co-authored-by: Wolf <w.vollprecht@gmail.com>
2023-02-02 19:00:36 +01:00
Wolf Vollprecht 26071af28c
use proper recipe also on macOS (#2225) 2023-01-16 14:33:50 +01:00
Jonas Haag fc63677f11
CI: Improve build env cleanup (#2213) 2023-01-11 00:36:13 +01:00
Wolf Vollprecht e9695a45cc
use local meta.yaml for static builds (#2214) 2023-01-10 17:45:49 +01:00
Ben Mares 4ab454766f
Don't create a prefix which is missing conda-meta (#2162) 2023-01-09 16:50:40 +01:00
Johan Mabille d60a5b89df
Use confa-forge micromamba feedstock instead of a fork (#2206) 2023-01-06 13:42:09 +01:00
Wolf Vollprecht 10a63f125a
Downgrade curl to fix micromamba static builds on osx x64 (#2205) 2023-01-06 07:53:21 +01:00
Jonas Haag 785d641362
Add bug report issue template (#2182) 2022-12-29 21:49:27 +01:00
Jonas Haag 01f6018293
Use Conda canary in nightly tests (#2180) 2022-12-20 13:25:14 +01:00
Jonas Haag 3128d252b9
Run conda_nightly once per week (#2147) 2022-12-05 14:45:36 +01:00
Jonas Haag 1f35522712
Add Conda nightly test (#2052) 2022-11-28 10:29:55 +01:00
Antoine Prouvost 433ba25ccf
Actually use sccache in Windows full static builds (#2111) 2022-11-14 15:48:36 +01:00
Antoine Prouvost 424a18e3bb
Add safe signed/unsigned conversion (#2087)
* Add safe signed/unsigned conversion

* Update static patching
2022-11-07 10:12:22 +01:00
Pavel Zwerschke b91e374752
Fix ci deprecation warnings (#2062) 2022-10-28 17:35:56 +02:00
Pavel Zwerschke 98533bfd94
Upload conda-bld artifacts for failed builds (#2058) 2022-10-28 17:09:23 +02:00
Antoine Prouvost 40772bc540
Fix CI by pointing to updated feedstock and fixing update tests (#2055)
Co-authored-by: Wolf Vollprecht <w.vollprecht@gmail.com>
2022-10-28 08:51:41 +02:00
AntoinePrv 83875f459b Don't use micromamba feedstock patch on Win 2022-10-26 14:35:42 +02:00
Antoine Prouvost 2b3a6dc787
Fix windows CI (#2034)
Co-authored-by: Wolf Vollprecht <w.vollprecht@gmail.com>
2022-10-19 23:20:02 +02:00
Wolf Vollprecht 5251f93c3d
Merge pull request #1903 from AntoinePrv/test-isolation
Test Isolation 2 (TBC)
2022-10-14 09:10:37 -07:00
Wolf Vollprecht d839af71d1
Test stubs (#2025)
test pybind11-stubgen generation
2022-10-14 15:21:26 +02:00
AntoinePrv 50d2041dd6 Explicit TEST_MAMBA_EXE on Windows 2022-10-14 11:03:53 +02:00
Wolf Vollprecht 3e34b1e3fe test dash and remove csh (only keep tcsh for now) 2022-10-13 21:03:34 +02:00
Wolf Vollprecht 0434a27f4e add tcsh testing 2022-10-13 16:24:20 +02:00
Pavel Zwerschke 71fb74060f
Remove unnecessary env variable (#1989) 2022-10-04 11:53:10 +02:00
Pavel Zwerschke b72fc933f5
Add cross-compilation builds (#1976) 2022-10-04 11:22:02 +02:00
Wolf Vollprecht a3850e2e59 fix workflows for main rename 2022-09-28 17:43:48 +02:00
Pavel Zwerschke 94d31222df
Remove unneccessary code in micro.mamba.pm CI test (#1912) 2022-09-11 12:24:24 +02:00
Pavel Zwerschke 7a4f488568
Fix zsh for micro.mamba.pm ci (#1848)
Fix micro.mamba.pm ci
2022-09-01 15:07:04 +02:00
Jonas Haag aa60596675
Don't run fully static Windows builds on branches (#1892)
* Move static builds to separate workflow

* Move static builds to separate workflow

* Don't run Windows fully static build on branches
2022-09-01 14:51:08 +02:00
Pavel Zwerschke ecebdba7fb Use separate artifact names per OS
Co-authored-by: Jonas Haag <jonas@lophus.org>
2022-08-31 11:41:56 +02:00
Pavel Zwerschke c720f4f4f8 Add errorlevel checks in cmd.exe 2022-08-31 11:41:56 +02:00
Pavel Zwerschke 1b868b5bda Remove micromamba version constraint 2022-08-31 11:41:56 +02:00
Pavel Zwerschke 7ef496e1b9 Add static micromamba build in CI 2022-08-31 11:41:56 +02:00
Joël Lamotte (Klaim) daf63f0e5b CI: move stats and checks runs separate from build runs
This is to avoid false-positive on CI (success when builds fails) when
```
...
ninja #builds fails
sccache --show-stats # succeeds
```
ends up in the whole run being considered as a success instead of a failure.
2022-08-11 19:39:43 +02:00
Jonas Haag ae47358138
Stop old builds in same branch/PR (#1843) 2022-08-06 00:37:36 +02:00
Jonas Haag 0ebead36e5
Add micro.mamba.pm test cronjob (#1752) 2022-08-06 00:36:47 +02:00
Jonas Haag 2430450616
CI: Add fully static micromamba build (#1821) 2022-08-03 19:59:54 +02:00
Jonas Haag 41d99c81d9
Mamba: Print banner to stderr, and don't print on 'run' (#1810)
* Mamba: Don't print banner to stdout
2022-07-21 16:27:27 +02:00
Wolf Vollprecht 9437462a91
Merge pull request #1781 from pavelzw/micromamba-deinit-no-type
Add micromamba deinit shell command
2022-07-21 09:34:31 +02:00
Pavel Zwerschke e1bf7b9901 Add micromamba deinit shell command
Fix xonsh + fish micromamba shell init
2022-07-20 17:29:45 +02:00
Antoine Prouvost 52335d9c80
Fix Python version in CI 2022-07-20 14:02:22 +02:00
Jonas Haag d1358d6707
Fix libmamba_static_win build (#1798) 2022-07-15 13:36:26 +02:00
Antoine Prouvost 82a659d4f7
Always cleanup in GHA and fix conda-content-trust branch name (#1778)
* Always cleanup in GHA

* Rename conda-content-trust default branch to main
2022-07-07 10:29:16 +02:00
Wolf Vollprecht be09db63f6 use prev micromamba 2022-05-12 14:56:57 +02:00
Wolf Vollprecht 9db5e26652
Implement micromamba login command (#1598) 2022-04-21 15:34:15 +02:00
Jonas Haag 2e50484c5e
CI: Use Sccache (#1606) 2022-04-01 09:41:04 +02:00
Wolf Vollprecht b11ff08a05 use windows-latest 2022-02-07 18:21:37 +01:00
Jonas Haag a7d7498951
Incremental ccache updates (#1445) 2022-02-07 11:15:21 +01:00
Chris Burr 01a336c0c1 Get clang-format from PyPI and version pre-commit hook 2022-02-01 19:50:46 +01:00
Wolf Vollprecht 7ef46956f6 debug and fix tests 2021-12-07 09:38:55 +01:00
Wolf Vollprecht 1d447979bf use winreg from conda-forge 2021-12-02 09:34:07 +01:00
Adrien DELSALLE 3a3f050c18
preserve current behavior
make default log level to warning
increase log level with verbosity
set default backtrace to 0
disable backtrace if log_backtrace is set to 0
fix macos CI cache by fixing the timestamp
2021-11-05 15:18:26 +01:00
Adrien DELSALLE 2f349dca96
rename mamba-archive mamba-package
rename umamba subcom archive, package
turn on parallel extraction of mamba in CI by building mamba-package target
2021-10-29 17:32:43 +02:00
Adrien DELSALLE 52c60a73ca
build static umamba on win
save artifact without requiring libmamba shared
2021-10-29 09:29:48 +02:00
Adrien DELSALLE 7423dab791 export all symbols on win
install libmamba shared library to execute tests or micromamba
2021-10-29 09:11:09 +02:00
Adrien DELSALLE 525914a3b5
fix CI
format CMakeLists files
2021-10-28 17:05:47 +02:00
Adrien Delsalle bff16c2bdc
Split projects (#1219)
* make a clear split between CMake targets
* split versions between libmamba and mamba
* add libmambapy target for python bindings and make mamba depend on it
* rename CMake options to make them homogeneous, simplify CMake
* remove termcolor from thirdparties, use it as a dependency
* remove unnecessary version global vars and convert to functions
* update CI workflows
2021-10-26 16:01:53 +02:00
Adrien DELSALLE ddee02f5e1
handle files and directories locks
handle multiple locks acquired from the same process
improve logs
add tests
refactor use of LockFile
forbid locking twice same path from same PID
improve windows lockfile to match unix one
split Lock and LockFile
use byte 21 to set lock status
enable reading locked file on windows
ensure closing of file descriptor in Lock and LockFile destructors
add timeout implementation for unix
add testing lock cli for subprocess tests
add subprocess tests
add --lock-timeout to umamba
add clean lock files
add a clean lock files flag -l,--locks to umamba clean command
add cpp-filesystem pins to enforce correct version on dev mode
2021-10-06 11:50:35 +02:00
Adrien Delsalle 8b568ccad2
Break some circular deps between Configurables (#1151) 2021-10-01 11:22:37 +02:00
Adrien Delsalle 4447b94e48
add content trust bindings (#1126)
add an overload to generate an ed25519 key pair
add python bindings for content trust core api
add sign, PkgMgrRole and Key::to_json to bindings
add an overload with c++ api for signing
make V06RoleBaseExtension a public base of roles
add v06 constructors using json string
add tests
remove nl namespace alias leading to wrong python bindings
2021-09-21 10:44:50 +02:00
Soraxas 05bde9d6d4
Implements support for fish shell (#1152)
Signed-off-by: Tin Lai <oscar@tinyiu.com>
2021-09-08 10:58:51 +02:00
Wolf Vollprecht 9dd8c5a3ad
Fix failing CI due to Windows runners update (#1118) 2021-08-10 13:12:29 +02:00
Wolf Vollprecht 812ea8a066
attempt to run tests with local channel (#1090) 2021-07-16 19:44:50 +02:00
Wolf Vollprecht 5ab06d176f
add mamba shell init (#1078) 2021-07-13 16:56:57 +02:00