Skip to content

Commit

Permalink
ci: minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 3, 2024
1 parent 277513d commit 910fb3a
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 10 deletions.
66 changes: 62 additions & 4 deletions .buildkite/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,44 @@ steps:
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.julia}}"
- JuliaCI/julia-test#v1:
test_args: "--quickfail"
- JuliaCI/julia-coverage#v1:
codecov: true
dirs:
- src
- ext
- lib/LuxCore/src
- lib/LuxCore/ext
- lib/MLDataDevices/src
- lib/MLDataDevices/ext
- lib/WeightInitializers/src
- lib/WeightInitializers/ext
- lib/LuxLib/src
- lib/LuxLib/ext
- lib/LuxTestUtils/src
agents:
queue: "juliagpu"
cuda: "*"
command: |
julia --color=yes --code-coverage=user --depwarn=yes --project=. -e '
import Pkg;
dev_pkgs = Pkg.PackageSpec[];
for pkg in ("lib/LuxCore", "lib/MLDataDevices", "lib/WeightInitializers", "lib/LuxLib",)
push!(dev_pkgs, Pkg.PackageSpec(path=pkg));
end
Pkg.develop(dev_pkgs);
Pkg.Registry.update();
Pkg.instantiate();
Pkg.activate("test");
dev_pkgs = Pkg.PackageSpec[];
for pkg in ("lib/LuxTestUtils", "lib/LuxLib", "lib/MLDataDevices", "lib/LuxCore", ".")
push!(dev_pkgs, Pkg.PackageSpec(path=pkg))
end
Pkg.develop(dev_pkgs);
Pkg.instantiate();'
julia --color=yes --code-coverage=user --depwarn=yes --project=test -e '
import Pkg, Lux;
dir = dirname(pathof(Lux));
include(joinpath(dir, "../test/runtests.jl"))'
env:
BACKEND_GROUP: "CUDA"
if: build.message !~ /\[skip tests\]/ && build.message !~ /\[skip ci\]/
Expand All @@ -23,20 +51,49 @@ steps:
setup:
julia:
- "1.10"
- "1"

- group: ":julia: AMD GPU"
steps:
- label: ":julia: Julia: {{matrix.julia}} + AMD GPU"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.julia}}"
- JuliaCI/julia-test#v1:
test_args: "--quickfail"
- JuliaCI/julia-coverage#v1:
codecov: true
dirs:
- src
- ext
- lib/LuxCore/src
- lib/LuxCore/ext
- lib/MLDataDevices/src
- lib/MLDataDevices/ext
- lib/WeightInitializers/src
- lib/WeightInitializers/ext
- lib/LuxLib/src
- lib/LuxLib/ext
- lib/LuxTestUtils/src
command: |
julia --color=yes --code-coverage=user --depwarn=yes --project=. -e '
import Pkg;
dev_pkgs = Pkg.PackageSpec[];
for pkg in ("lib/LuxCore", "lib/MLDataDevices", "lib/WeightInitializers", "lib/LuxLib",)
push!(dev_pkgs, Pkg.PackageSpec(path=pkg));
end
Pkg.develop(dev_pkgs);
Pkg.Registry.update();
Pkg.instantiate();
Pkg.activate("test");
dev_pkgs = Pkg.PackageSpec[];
for pkg in ("lib/LuxTestUtils", "lib/LuxLib", "lib/MLDataDevices", "lib/LuxCore", ".")
push!(dev_pkgs, Pkg.PackageSpec(path=pkg))
end
Pkg.develop(dev_pkgs);
Pkg.instantiate();'
julia --color=yes --code-coverage=user --depwarn=yes --project=test -e '
import Pkg, Lux;
dir = dirname(pathof(Lux));
include(joinpath(dir, "../test/runtests.jl"))'
env:
BACKEND_GROUP: "AMDGPU"
agents:
Expand All @@ -49,6 +106,7 @@ steps:
setup:
julia:
- "1.10"
- "1"

env:
SECRET_CODECOV_TOKEN: "jQ0BMTQgyZx7QGyU0Q2Ec7qB9mtE2q/tDu0FsfxvEG7/zOAGvXkyXrzIFFOQxvDoFcP+K2+hYZKMxicYdNqzr5wcxu505aNGN2GM3wyegAr+hO6q12bCFYx6qXzU9FLCCdeqINqn9gUSSOlGtWNFrbAlrTyz/D4Yo66TqBDzvaLL63FMnhCLaXW/zJt3hNuEAJaPY2O6Ze1rX2WZ3Y+i+s3uQ8aLImtoCJhPe8CRx+OhuYiTzGhynFfGntZ0738/1RN4gNM0S/hTC4gLE7XMVBanJpGh32rFaiDwW4zAyXKBrDkL3QA3MS1RvLTJxGJ085S16hCk0C4ddAhZCvIM9Q==;U2FsdGVkX1+bXdFeKMs5G79catOCyby2n07A2fg0FjVAvrjQLZ0yfvDS4paJiFikLkodho0khz2YALKb2Y0K6w=="
6 changes: 4 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
push!(dev_pkgs, Pkg.PackageSpec(path=pkg))
end
Pkg.develop(dev_pkgs)
Pkg.instantiate()
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0}
- name: "Run Tests"
run: |
Expand All @@ -91,7 +92,7 @@ jobs:
LUX_TEST_GROUP: ${{ matrix.test_group }}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,ext
directories: src,ext,lib/LuxCore/src,lib/LuxCore/ext,lib/MLDataDevices/src,lib/MLDataDevices/ext,lib/WeightInitializers/src,lib/WeightInitializers/ext,lib/LuxLib/src,lib/LuxLib/ext,lib/LuxTestUtils/src
- uses: codecov/codecov-action@v4
with:
files: lcov.info
Expand Down Expand Up @@ -126,6 +127,7 @@ jobs:
push!(dev_pkgs, Pkg.PackageSpec(path=pkg))
end
Pkg.develop(dev_pkgs)
Pkg.instantiate()
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0}
- name: "Run Tests"
run: |
Expand All @@ -135,7 +137,7 @@ jobs:
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=test {0}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,ext
directories: src,ext,lib/LuxCore/src,lib/LuxCore/ext,lib/MLDataDevices/src,lib/MLDataDevices/ext,lib/WeightInitializers/src,lib/WeightInitializers/ext,lib/LuxLib/src,lib/LuxLib/ext,lib/LuxTestUtils/src
- uses: codecov/codecov-action@v4
with:
files: lcov.info
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/CI_LuxCore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ jobs:

downgrade:
if: ${{ !contains(github.event.head_commit.message, '[skip tests]') && github.base_ref == github.event.repository.default_branch }}
name: Downgrade Julia ${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CI_LuxTestUtils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=lib/LuxTestUtils {0}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: lib/LuxTestUtils/src,lib/LuxTestUtils/ext
directories: lib/LuxTestUtils/src
- uses: codecov/codecov-action@v4
with:
files: lcov.info
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=lib/LuxTestUtils {0}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: lib/LuxTestUtils/src,lib/LuxTestUtils/ext
directories: lib/LuxTestUtils/src
- uses: codecov/codecov-action@v4
with:
files: lcov.info
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ concurrency:

jobs:
downstream:
name: Downstream ${{ matrix.package.repo }}/${{ matrix.package.group }}
if: ${{ !contains(github.event.head_commit.message, '[skip tests]') && contains(github.event.pull_request.labels.*.name, 'run downstream test') }}
runs-on: ubuntu-latest
timeout-minutes: 60
Expand Down

0 comments on commit 910fb3a

Please sign in to comment.