Skip to content

Commit

Permalink
Merge pull request #2976 from regro/cffo
Browse files Browse the repository at this point in the history
feat: move to conda-forge-feedstock-ops
  • Loading branch information
beckermr authored Sep 2, 2024
2 parents fa0a152 + 749dc4b commit 488d6ac
Show file tree
Hide file tree
Showing 21 changed files with 14,066 additions and 15,154 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ jobs:
push: false
load: true
tags: ${{ env.IMAGE_NAME }}:test
cache-from: type=gha
cache-to: type=gha,mode=max

- name: restore test durations
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
Expand Down Expand Up @@ -128,12 +126,14 @@ jobs:
with:
name: test-durations-${{ matrix.group }}
path: .test_durations.${{ matrix.group }}
include-hidden-files: true

- name: upload coverage
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
with:
name: coverage-${{ matrix.group }}
path: .coverage
include-hidden-files: true

test-coverage-and-durations:
name: test-coverage-and-durations
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ USER conda

# deal with git config for user and mounted directory
RUN conda activate cf-scripts && \
git config --global --add safe.directory /cf_tick_dir && \
git config --global --add safe.directory /cf_feedstock_ops_dir && \
git config --global init.defaultBranch main && \
git config --global user.email "conda@conda.conda" && \
git config --global user.name "conda conda" && \
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ If your migrator needs special configuration, you should write a new factory fun
- `CF_TICK_GRAPH_DATA_BACKENDS`: See [`LazyJson` Data Structures and Backends](#lazyjson-data-structures-and-backends) below.
- `CF_TICK_GRAPH_DATA_USE_FILE_CACHE`: See [`LazyJson` Data Structures and Backends](#lazyjson-data-structures-and-backends) below.
- `MONGODB_CONNECTION_STRING`: See [`LazyJson` Data Structures and Backends](#lazyjson-data-structures-and-backends) below.
- `CF_TICK_IN_CONTAINER`: set to `true` to indicate that the bot is running in a container, prevents container in container issues
- `CF_FEEDSTOCK_OPS_IN_CONTAINER`: set to `true` to indicate that the bot is running in a container, prevents container in container issues
- `TIMEOUT`: set to the number of seconds to wait before timing out the bot
- `RUN_URL`: set to the URL of the CI build (now set to a GHA run URL)
- `MEMORY_LIMIT_GB`: set to the memory limit in GB for the bot
- `BOT_TOKEN`: a GitHub token for the bot user
- `CF_TICK_CONTAINER_NAME`: the name of the container to use in the bot, otherwise defaults to `ghcr.io/regro/conda-forge-tick`
- `CF_TICK_CONTAINER_TAG`: set this to override the default container tag used in production runs, otherwise the value of `__version__` is used
- `CF_FEEDSTOCK_OPS_CONTAINER_NAME`: the name of the container to use in the bot, otherwise defaults to `ghcr.io/regro/conda-forge-tick`
- `CF_FEEDSTOCK_OPS_CONTAINER_TAG`: set this to override the default container tag used in production runs, otherwise the value of `__version__` is used

### Running Tests

Expand Down
8 changes: 7 additions & 1 deletion autotick-bot/install_bot_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ else
fi

bot_tag=$(python -c "import conda_forge_tick; print(conda_forge_tick.__version__)")
docker_tag=${CF_TICK_CONTAINER_TAG:-${bot_tag}}
docker_tag=${CF_FEEDSTOCK_OPS_CONTAINER_TAG:-${bot_tag}}
docker pull ghcr.io/regro/conda-forge-tick:${docker_tag}

export CF_FEEDSTOCK_OPS_CONTAINER_TAG=${docker_tag}
export CF_FEEDSTOCK_OPS_CONTAINER_NAME="ghcr.io/regro/conda-forge-tick"

echo "CF_FEEDSTOCK_OPS_CONTAINER_TAG=${CF_FEEDSTOCK_OPS_CONTAINER_TAG}" >> "$GITHUB_ENV"
echo "CF_FEEDSTOCK_OPS_CONTAINER_NAME=${CF_FEEDSTOCK_OPS_CONTAINER_NAME}" >> "$GITHUB_ENV"

echo -e "\n\n============================================\n============================================"
conda info
conda config --show-sources
Expand Down
Loading

0 comments on commit 488d6ac

Please sign in to comment.