-
-
Notifications
You must be signed in to change notification settings - Fork 728
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge dask/main into martindurant/cy_scheduler_state
- Loading branch information
Showing
236 changed files
with
22,719 additions
and
6,682 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- [ ] Closes #xxxx | ||
- [ ] Tests added / passed | ||
- [ ] Passes `black distributed` / `flake8 distributed` / `isort distributed` | ||
- [ ] Passes `pre-commit run --all-files` |
This file contains 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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Conda build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
# When this workflow is queued, automatically cancel any previous running | ||
# or pending jobs from the same branch | ||
concurrency: | ||
group: conda-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
# Required shell entrypoint to have properly activated conda environments | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
jobs: | ||
conda: | ||
name: Build (and upload) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
use-mamba: true | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
mamba install boa conda-verify | ||
which python | ||
pip list | ||
mamba list | ||
- name: Build conda packages | ||
run: | | ||
# suffix for pre-release package versions | ||
export VERSION_SUFFIX=a`date +%y%m%d` | ||
# conda search for the latest dask-core pre-release | ||
arr=($(conda search --override-channels -c dask/label/dev dask-core | tail -n 1)) | ||
# extract dask-core pre-release version / build | ||
export DASK_CORE_VERSION=${arr[1]} | ||
# distributed pre-release build | ||
conda mambabuild continuous_integration/recipes/distributed \ | ||
--channel dask/label/dev \ | ||
--no-anaconda-upload \ | ||
--output-folder build | ||
# dask pre-release build | ||
conda mambabuild continuous_integration/recipes/dask \ | ||
--channel dask/label/dev \ | ||
--no-anaconda-upload \ | ||
--output-folder build | ||
- name: Upload conda packages | ||
if: | | ||
github.event_name == 'push' | ||
&& github.ref == 'refs/heads/main' | ||
&& github.repository == 'dask/distributed' | ||
env: | ||
ANACONDA_API_TOKEN: ${{ secrets.DASK_CONDA_TOKEN }} | ||
run: | | ||
# convert distributed to other architectures | ||
cd build && conda convert linux-64/*.tar.bz2 -p osx-64 \ | ||
-p osx-arm64 \ | ||
-p linux-ppc64le \ | ||
-p linux-aarch64 \ | ||
-p win-64 | ||
# install anaconda for upload | ||
mamba install anaconda-client | ||
anaconda upload --label dev noarch/*.tar.bz2 | ||
anaconda upload --label dev linux-64/*.tar.bz2 | ||
anaconda upload --label dev linux-aarch64/*.tar.bz2 | ||
anaconda upload --label dev linux-ppc64le/*.tar.bz2 | ||
anaconda upload --label dev osx-64/*.tar.bz2 | ||
anaconda upload --label dev osx-arm64/*.tar.bz2 | ||
anaconda upload --label dev win-64/*.tar.bz2 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copied from https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.23/README.md#support-fork-repositories-and-dependabot-branches | ||
# Warning: changes to this workflow will NOT be picked up until they land in the main branch! | ||
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run | ||
|
||
name: Publish test results | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Tests] | ||
types: [completed] | ||
|
||
jobs: | ||
publish-test-results: | ||
name: Publish test results | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion != 'skipped' | ||
|
||
# Needed to post comments on the PR | ||
permissions: | ||
checks: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Download and extract artifacts | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
run: | | ||
mkdir artifacts && cd artifacts | ||
artifacts_url=${{ github.event.workflow_run.artifacts_url }} | ||
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact | ||
do | ||
IFS=$'\t' read name url <<< "$artifact" | ||
gh api $url > "$name.zip" | ||
unzip -d "$name" "$name.zip" | ||
done | ||
- name: Publish Unit Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v1 | ||
with: | ||
commit: ${{ github.event.workflow_run.head_sha }} | ||
event_file: artifacts/Event File/event.json | ||
event_name: ${{ github.event.workflow_run.event }} | ||
files: artifacts/**/*.xml |
3 changes: 1 addition & 2 deletions
3
.github/workflows/ssh_debug.yaml → .github/workflows/ssh_debug.yaml.donotrun
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Test Report | ||
|
||
on: | ||
schedule: | ||
- cron: "47 6 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-report: | ||
name: Test Report | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Conda Environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
condarc-file: continuous_integration/condarc | ||
use-mamba: true | ||
python-version: 3.9 | ||
environment-file: continuous_integration/scripts/test-report-environment.yml | ||
activate-environment: dask-distributed | ||
|
||
- name: Show conda options | ||
shell: bash -l {0} | ||
run: conda config --show | ||
|
||
- name: mamba list | ||
shell: bash -l {0} | ||
run: mamba list | ||
|
||
- name: Generate report | ||
shell: bash -l {0} | ||
run: | | ||
python continuous_integration/scripts/test_report.py | ||
mkdir deploy | ||
mv test_report.html deploy/ | ||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: deploy |
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Check for gpuCI updates | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # Daily “At 00:00” UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-gpuci: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'dask/distributed' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get latest cuDF nightly version | ||
id: latest_version | ||
uses: jacobtomlinson/[email protected] | ||
with: | ||
org: "rapidsai-nightly" | ||
package: "cudf" | ||
version_system: "CalVer" | ||
|
||
- name: Strip git tags from versions | ||
env: | ||
FULL_RAPIDS_VER: ${{ steps.latest_version.outputs.version }} | ||
run: echo "RAPIDS_VER=${FULL_RAPIDS_VER::-10}" >> $GITHUB_ENV | ||
|
||
- name: Find and Replace Release | ||
uses: jacobtomlinson/[email protected] | ||
with: | ||
include: 'continuous_integration\/gpuci\/axis\.yaml' | ||
find: "RAPIDS_VER:\n- .*" | ||
replace: |- | ||
RAPIDS_VER: | ||
- "${{ env.RAPIDS_VER }}" | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: true | ||
commit-message: "Update gpuCI `RAPIDS_VER` to `${{ env.RAPIDS_VER }}`" | ||
title: "Update gpuCI `RAPIDS_VER` to `${{ env.RAPIDS_VER }}`" | ||
team-reviewers: "dask/gpu" | ||
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | ||
branch: "upgrade-gpuci-rapids" | ||
body: | | ||
A new cuDF nightly version has been detected. | ||
Updated `axis.yaml` to use `${{ env.RAPIDS_VER }}`. |
Oops, something went wrong.