-
-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into decide_worker/ignor…
…e-common-deps
- Loading branch information
Showing
284 changed files
with
35,418 additions
and
16,459 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,4 @@ | ||
- [ ] Closes #xxxx | ||
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,77 @@ | ||
name: Conda build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
paths: | ||
- setup.py | ||
- requirements.txt | ||
- continuous_integration/recipes/** | ||
- .github/workflows/conda.yml | ||
|
||
# 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 . | ||
# dask pre-release build | ||
conda mambabuild continuous_integration/recipes/dask \ | ||
--channel dask/label/dev \ | ||
--no-anaconda-upload \ | ||
--output-folder . | ||
- 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: | | ||
# install anaconda for upload | ||
mamba install anaconda-client | ||
anaconda upload --label dev noarch/*.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,51 @@ | ||
name: Test Report | ||
|
||
on: | ||
schedule: | ||
# Run 2h after the daily tests.yaml | ||
- cron: "0 8,20 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-report: | ||
name: Test Report | ||
# Do not run the report job on forks | ||
if: github.repository == 'dask/distributed' || github.event_name == 'workflow_dispatch' | ||
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 --days 90 --nfails 1 -o test_report.html | ||
python continuous_integration/scripts/test_report.py --days 7 --nfails 2 -o test_short_report.html | ||
mkdir deploy | ||
mv test_report.html test_short_report.html deploy/ | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@4.1.7 | ||
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
Oops, something went wrong.