Skip to content

Commit be133a6

Browse files
committed
Reverted back from state to acc
2 parents 594d7bb + 1f82da4 commit be133a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3176
-2513
lines changed

.buildkite/pipeline.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
steps:
2-
- label: "GPU integeration with julia v1.6" # change to "v1" when 1.6 is out
2+
- label: "GPU integration with julia v1.6"
3+
plugins:
4+
- JuliaCI/julia#v1:
5+
# Drop default "registries" directory, so it is not persisted from execution to execution
6+
# Taken from https://github.com/JuliaLang/julia/blob/v1.7.2/.buildkite/pipelines/main/platforms/package_linux.yml#L11-L12
7+
persist_depot_dirs: packages,artifacts,compiled
8+
version: "1.6"
9+
- JuliaCI/julia-test#v1: ~
10+
agents:
11+
queue: "juliagpu"
12+
cuda: "*"
13+
timeout_in_minutes: 60
14+
15+
- label: "GPU integration with julia v1"
316
plugins:
417
- JuliaCI/julia#v1:
518
version: "1"
619
- JuliaCI/julia-test#v1: ~
20+
- JuliaCI/julia-coverage#v1:
21+
codecov: true
722
agents:
823
queue: "juliagpu"
924
cuda: "*"
25+
env:
26+
JULIA_CUDA_USE_BINARYBUILDER: "true"
1027
timeout_in_minutes: 60
1128

1229
# - label: "GPU nightly"
@@ -18,3 +35,5 @@ steps:
1835
# queue: "juliagpu"
1936
# cuda: "*"
2037
# timeout_in_minutes: 60
38+
env:
39+
SECRET_CODECOV_TOKEN: "fAV/xwuaV0l5oaIYSAXRQIor8h7yHdlrpLUZFwNVnchn7rDk9UZoz0oORG9vlKLc1GK2HhaPRAy+fTkJ3GM/8Y0phHh3ANK8f5UsGm2DUTNsnf6u9izgnwnoRTcsWu+vSO0fyYrxBvBCoJwljL+yZbDFz3oE16DP7HPIzxfQagm+o/kMEszVuoUXhuLXXH0LxT6pXl214qjqs04HfMRmKIIiup48NB6fBLdhGlQz64MdMNHBfgDa/fafB7eNvn0X6pEOxysoy6bDQLUhKelOXgcDx1UsTo34Yiqr+QeJPAeKcO//PWurwQhPoUoHfLad2da9DN4uQk4YQLqAlcIuAA==;U2FsdGVkX1+mRXF2c9soCXT7DYymY3msM+vrpaifiTp8xA+gMpbQ0G63WY3tJ+6V/fJcVnxYoKZVXbjcg8fl4Q=="

.github/pull_request_template.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ the right direction since it can be hard to change later.]
99
- [ ] Tests are added
1010
- [ ] Entry in NEWS.md
1111
- [ ] Documentation, if applicable
12-
- [ ] API changes require approval from a committer (different from the author, if applicable)

.github/workflows/Downstream.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Downstream
2+
on:
3+
push:
4+
branches: [master]
5+
tags: [v*]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}
11+
runs-on: ${{ matrix.os }}
12+
env:
13+
GROUP: ${{ matrix.package.group }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
julia-version: [1]
18+
os: [ubuntu-latest]
19+
package:
20+
- {user: r3tex, repo: ObjectDetector.jl, group: All}
21+
- {user: chengchingwen, repo: Transformers.jl, group: All}
22+
- {user: FluxML, repo: GeometricFlux.jl, group: All}
23+
- {user: FluxML, repo: FastAI.jl, group: All}
24+
- {user: FluxML, repo: Flux3D.jl, group: All}
25+
- {user: FluxML, repo: Torch.jl, group: All}
26+
- {user: FluxML, repo: Metalhead.jl, group: All}
27+
- {user: Chemellia, repo: AtomicGraphNets.jl, group: All}
28+
- {user: SciML, repo: DiffEqFlux.jl, group: Layers}
29+
- {user: SciML, repo: NeuralPDE.jl, group: NNPDE}
30+
- {user: SciML, repo: OperatorLearning.jl, group: All}
31+
if: contains(github.event.pull_request.labels.*.name, 'run downstream test')
32+
steps:
33+
- uses: actions/checkout@v2
34+
- uses: julia-actions/setup-julia@v1
35+
with:
36+
version: ${{ matrix.julia-version }}
37+
arch: x64
38+
- uses: julia-actions/julia-buildpkg@latest
39+
- name: Clone Downstream
40+
uses: actions/checkout@v2
41+
with:
42+
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
43+
path: downstream
44+
- name: Load this and run the downstream tests
45+
shell: julia --color=yes --project=downstream {0}
46+
run: |
47+
using Pkg
48+
try
49+
# force it to use this PR's version of the package
50+
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
51+
Pkg.update()
52+
Pkg.test() # resolver may fail with test time deps
53+
catch err
54+
err isa Pkg.Resolve.ResolverError || rethrow()
55+
# If we can't resolve that means this is incompatible by SemVer and this is fine
56+
# It means we marked this as a breaking change, so we don't need to worry about
57+
# Mistakenly introducing a breaking change, as we have intentionally made one
58+
@info "Not compatible with this release. No problem." exception=err
59+
exit(0) # Exit immediately, as a success
60+
end

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
version:
20-
- '1' # Replace this with the minimum Julia version that your package supports.
20+
- '1.6' # Replace this with the minimum Julia version that your package supports.
21+
- '1'
2122
- 'nightly'
2223
os:
2324
- ubuntu-latest
24-
- macOS-latest
25-
- windows-latest
2625
arch:
2726
- x64
27+
include:
28+
- os: windows-latest
29+
version: '1'
30+
arch: x64
31+
- os: macOS-latest
32+
version: '1'
33+
arch: x64
2834
steps:
2935
- uses: actions/checkout@v2
3036
- uses: julia-actions/setup-julia@v1
@@ -58,7 +64,7 @@ jobs:
5864
Pkg.develop(PackageSpec(path=pwd()))
5965
Pkg.instantiate()'
6066
- run: |
61-
julia --project=docs/ -e '
67+
julia --color=yes --project=docs/ -e '
6268
using Flux
6369
# using Pkg; Pkg.activate("docs")
6470
using Documenter

.github/workflows/clean_preview.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# from https://github.com/CliMA/ClimaTimeSteppers.jl
2+
name: Doc Preview Cleanup
3+
4+
on:
5+
pull_request:
6+
types: [closed]
7+
8+
jobs:
9+
doc-preview-cleanup:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout gh-pages branch
13+
uses: actions/checkout@v2
14+
with:
15+
ref: gh-pages
16+
- name: Delete preview and history + push changes
17+
run: |
18+
if [ -d "previews/PR$PRNUM" ]; then
19+
git config user.name "Documenter.jl"
20+
git config user.email "[email protected]"
21+
git rm -rf "previews/PR$PRNUM"
22+
git commit -m "delete preview"
23+
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
24+
git push --force origin gh-pages-new:gh-pages
25+
fi
26+
env:
27+
PRNUM: ${{ github.event.number }}

.github/workflows/pr_comment.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: pr_comment
2+
on:
3+
pull_request:
4+
types: [labeled]
5+
jobs:
6+
pr_comment:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Create PR comment
10+
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name && github.event.label.name == 'documentation' # if this is a pull request build AND the pull request is NOT made from a fork
11+
uses: thollander/actions-comment-pull-request@71efef56b184328c7ef1f213577c3a90edaa4aff
12+
with:
13+
message: 'Once the build has completed, you can preview any updated documentation at this URL: https://fluxml.ai/Flux.jl/previews/PR${{ github.event.number }}/ in ~20 minutes'
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)