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: various little fixes for build failure records and automatic skiplisting #894

Merged
merged 47 commits into from
Jun 7, 2023

Conversation

johanneskoester
Copy link
Contributor

No description provided.

@johanneskoester
Copy link
Contributor Author

There is a seemingly temporal problem with the https certificate of bioconductor that makes the test fail, which is definitely unrelated to this PR. Hence, I will merge this now.

@johanneskoester johanneskoester merged commit 715efc2 into master Jun 7, 2023
@johanneskoester johanneskoester deleted the fix/build-failure-logs branch June 7, 2023 11:18
johanneskoester pushed a commit that referenced this pull request Jun 7, 2023
🤖 I have created a release \*beep\* \*boop\*
---
##
[2.3.0](https://www.github.com/bioconda/bioconda-utils/compare/v2.2.1...v2.3.0)
(2023-06-07)


### Features

* always add a fallback archive URL to the meta.yaml when using
bioconductor-skeleton
([#886](https://www.github.com/bioconda/bioconda-utils/issues/886))
([d885495](https://www.github.com/bioconda/bioconda-utils/commit/d885495d54b177411863fdca3bdfa35ca781457f))


### Bug Fixes

* various little fixes for build failure records and automatic
skiplisting
([#894](https://www.github.com/bioconda/bioconda-utils/issues/894))
([715efc2](https://www.github.com/bioconda/bioconda-utils/commit/715efc27319afda8b7fe19a0d112a84e8b8569c9))
---


This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Yikun added a commit to Yikun/bioconda-utils that referenced this pull request Jul 25, 2023
In the bioconda#866 we introduced the `--docker-base-image` to help user to specify customized build docker image (such as Linux aarch64 build).

But we noticed that it doesn’t work after the bioconda#894 , because a local var introduced and the `docker-base-image` arguments is ignored:
https://github.com/bioconda/bioconda-utils/blame/9a85115ae306f58c8b4e65e5f92f6cbdb5b68f04/bioconda_utils/cli.py#L468

This PR try to recover it, if user specify the `--docker-base-image`, it will be used directly otherwise use the local var.

Signed-off-by: Yikun Jiang <[email protected]>
johanneskoester pushed a commit that referenced this pull request Aug 9, 2023
In the #866 we introduced
the `--docker-base-image` to help user to specify customized build
docker image (such as Linux aarch64 build).

But we noticed that it doesn’t work after the
#894 , because a local
var introduced and the `docker-base-image` arguments is ignored.

This PR try to recover it, if user specify the `--docker-base-image`, it
will be used directly otherwise use the local var.

Test:
```
[root@kunpeng bioconda-recipes]# bioconda-utils build --docker --packages bamstats --docker-base-image ghcr.io/yikun/bioconda-utils-build-env-cos7-aarch64

11:50:12 BIOCONDA INFO Considering total of 1 recipes (bamstats).
11:50:12 BIOCONDA INFO Processing 1 recipes (bamstats).
11:50:12 BIOCONDA WARNING Using tag 2.3.4 for docker image, since there is no image for a not yet release version (2.3.4+0.g9a85115.dirty).
11:50:12 BIOCONDA INFO Using docker image ghcr.io/yikun/bioconda-utils-build-env-cos7-aarch64 for building.
// ... ...
```

Signed-off-by: Yikun Jiang <[email protected]>
@@ -561,8 +570,8 @@ def temp_os(platform):
sys.platform = original


def run(cmds: List[str], env: Dict[str, str]=None, mask: List[str]=None, live: bool=True,
mylogger: logging.Logger=logger, loglevel: int=logging.INFO,
def run(cmds: List[str], env: Dict[str, str]=None, mask: List[str]=None, mask_envvars: bool=False, live: bool=False,
Copy link
Contributor

Choose a reason for hiding this comment

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

@johanneskoester The log messages from inside docker are not getting to stdout. What was the reasoning for this change of default to live=False? Would there be an issue to pass in live=True for the docker build?

p = utils.run(cmd, mask=False)

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