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

Fix is_consistent again #140

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Conversation

AlbertDeFusco
Copy link
Contributor

A bug was discovered in the revised is_consistent since the tests had only checked on one platform. The deduplication (necessary when the same package exists in conda and pip lock specs) was being performed globally on the lockfile and would return an incorrect unique collection for the current platform. Moving the filter before deduplication fixes the issue. test_is_installed has been revised to lock for default_platforms rather than the current_platform.

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #140 (3148a51) into main (fbedab0) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #140   +/-   ##
=======================================
  Coverage   97.75%   97.75%           
=======================================
  Files           9        9           
  Lines         846      846           
=======================================
  Hits          827      827           
  Misses         19       19           
Files Changed Coverage Δ
src/conda_project/project.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@mattkram mattkram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@AlbertDeFusco AlbertDeFusco enabled auto-merge (squash) August 24, 2023 02:38
@AlbertDeFusco AlbertDeFusco merged commit 2854a1b into main Aug 24, 2023
86 checks passed
@AlbertDeFusco AlbertDeFusco deleted the fix/is-consistent-mutli-platform branch August 24, 2023 12:43
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.

2 participants