-
Notifications
You must be signed in to change notification settings - Fork 134
fix: success check does not consider pkg_dir #836 #838
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
fb369fc
fix #836
jpfeuffer f53f7d0
forgot sys import
jpfeuffer a61b5b7
forgot module
jpfeuffer 05cfe98
Merge branch 'master' into jpfeuffer-patch-1
daler 39e92b7
try to add some tests
jpfeuffer 0e66d3b
forgot comma
jpfeuffer 8369757
mark test for a test category
jpfeuffer f26f4ed
rearrange new test
jpfeuffer 0bcf881
retrigger CI which is instable.. I do not have permissions to retrigger
jpfeuffer 2167739
forgot test prefix
jpfeuffer 28ed120
depend on recipes fixture
jpfeuffer b599538
skip on osx
jpfeuffer 06fd75c
try to use repodata
jpfeuffer 11f812c
do not instatiate RepoData, as the required methods are static
johanneskoester c8e0895
Merge branch 'master' into jpfeuffer-patch-1
johanneskoester abf648d
Merge branch 'master' into jpfeuffer-patch-1
bgruening 386b376
Update bioconda_utils/build.py
bgruening File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,9 +4,10 @@ | |
|
|
||
| import subprocess as sp | ||
| from collections import defaultdict, namedtuple | ||
| import os | ||
| import logging | ||
| import itertools | ||
| import logging | ||
| import os | ||
| import sys | ||
|
|
||
| from typing import List | ||
|
|
||
|
|
@@ -116,6 +117,16 @@ def build(recipe: str, pkg_paths: List[str] = None, | |
| env=whitelisted_env, | ||
| noarch=is_noarch) | ||
| # Use presence of expected packages to check for success | ||
| if (docker_builder.pkg_dir is not None): | ||
| platform = os.environ.get('OSTYPE', sys.platform) | ||
| if platform.startswith("darwin"): | ||
| platform = 'osx' | ||
| elif platform == "linux-gnu": | ||
| platform = "linux" | ||
|
||
|
|
||
| config = utils.load_conda_build_config(platform=platform) | ||
| pkg_paths = [p.replace(config.output_folder, docker_builder.pkg_dir) for p in pkg_paths] | ||
|
|
||
| for pkg_path in pkg_paths: | ||
| if not os.path.exists(pkg_path): | ||
| logger.error( | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.