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

Debug windows failure #3341

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/windows_impl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ jobs:
$env:TEST_MAMBA_EXE = Join-Path -Path $pwd -ChildPath 'local\bin\mamba.exe'
$env:MAMBA_TEST_SHELL_TYPE='powershell'
Remove-Item -Path "env:CONDARC"
python -m pytest micromamba/tests/ `
python -m pytest micromamba/tests/test_install.py::TestInstall::test_no_python_pinning `
${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }}
7 changes: 4 additions & 3 deletions libmamba/src/core/package_database_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ namespace mamba
logger->error(msg);
break;
case (solver::libsolv::LogLevel::Warning):
logger->warn(msg);
break;
case (solver::libsolv::LogLevel::Debug):
logger->debug(msg);
logger->warn(msg);
break;
// case (solver::libsolv::LogLevel::Debug):
// logger->debug(msg);
// break;
}
}
);
Expand Down
13 changes: 7 additions & 6 deletions libmamba/src/solver/libsolv/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ namespace mamba::solver::libsolv
}
}
}
else
{
LOG_DEBUG << "No signatures available for '" << filename
<< "'. Downloading without verifying artifacts.";
}
// else
// {
// LOG_DEBUG << "No signatures available for '" << filename
// << "'. Downloading without verifying artifacts.";
// }
}

[[nodiscard]] auto set_solvable(
Expand Down Expand Up @@ -388,7 +388,8 @@ namespace mamba::solver::libsolv
if (parsed)
{
on_parsed(fn);
LOG_DEBUG << "Adding package record to repo " << fn;
// LOG_DEBUG << "Adding package record to repo " <<
// fn;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion micromamba/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def install(*args, default_channel=True, no_rc=True, no_dry_run=False, **kwargs)
cmd += ["--offline"]
if (dry_run_tests == DryRun.DRY) and "--dry-run" not in args and not no_dry_run:
cmd += ["--dry-run"]
cmd += ["--log-level=info"]
cmd += ["--log-level=debug"] # maybe try with trace later?

res = subprocess_run(*cmd, **kwargs)

Expand Down
Loading