From b2f4540e07196f7cfb48371f631e91dff655493b Mon Sep 17 00:00:00 2001 From: aliciaaevans Date: Fri, 3 May 2024 12:14:14 -0400 Subject: [PATCH 1/2] fix: Use circleci API v1.1 to avoid login error --- images/bot/src/bioconda_bot/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/images/bot/src/bioconda_bot/common.py b/images/bot/src/bioconda_bot/common.py index bce8075..c465f47 100644 --- a/images/bot/src/bioconda_bot/common.py +++ b/images/bot/src/bioconda_bot/common.py @@ -160,13 +160,13 @@ async def fetch_circleci_artifacts(session: ClientSession, workflowId: str) -> [ for job in res_wf_object["items"]: if job["name"].startswith(f"build_and_test-"): circleci_job_num = job["job_number"] - url = f"https://circleci.com/api/v2/project/gh/bioconda/bioconda-recipes/{circleci_job_num}/artifacts" + url = f"https://circleci.com/api/v1.1/project/gh/bioconda/bioconda-recipes/{circleci_job_num}/artifacts" async with session.get(url) as response: + response.raise_for_status() res = await response.text() - res_object = safe_load(res) - for artifact in res_object["items"]: + for artifact in res_object: zipUrl = artifact["url"] pkg = artifact["path"] if zipUrl.endswith((".conda", ".tar.bz2")): # (currently excluding container images) or zipUrl.endswith(".tar.gz"): From 71fc29e83311ca58f7f9cdc8e5078bf78486724d Mon Sep 17 00:00:00 2001 From: aliciaaevans Date: Fri, 3 May 2024 12:20:10 -0400 Subject: [PATCH 2/2] update version numbers --- .github/workflows/bot.yaml | 2 +- images/bot/setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bot.yaml b/.github/workflows/bot.yaml index 1a9a94b..ef625cd 100644 --- a/.github/workflows/bot.yaml +++ b/.github/workflows/bot.yaml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-22.04 env: IMAGE_NAME: bot - IMAGE_VERSION: '1.3.0' + IMAGE_VERSION: '1.3.1' steps: - uses: actions/checkout@v2 diff --git a/images/bot/setup.cfg b/images/bot/setup.cfg index a8c6278..3b6fde4 100644 --- a/images/bot/setup.cfg +++ b/images/bot/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = bioconda-bot -version = 0.0.4 +version = 0.0.5 [options] python_requires = >=3.8