Skip to content

Commit 0b13cda

Browse files
committed
Fix config
1 parent aa9c806 commit 0b13cda

2 files changed

Lines changed: 139 additions & 139 deletions

File tree

  • .github/workflows
  • DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt

.github/workflows/Test.yml

Lines changed: 138 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -16,71 +16,71 @@ concurrency:
1616
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1717

1818
jobs:
19-
test-DI-Core:
20-
name: ${{ matrix.version }} - DI Core (${{ matrix.group }})
21-
runs-on: ubuntu-latest
22-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
23-
timeout-minutes: 120
24-
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
25-
actions: write
26-
contents: read
27-
strategy:
28-
fail-fast: false # TODO: toggle
29-
matrix:
30-
version:
31-
- '1.10'
32-
- '1.11'
33-
- '1.12'
34-
group:
35-
- Internals
36-
- SimpleFiniteDiff
37-
- ZeroBackends
38-
skip_lts:
39-
- ${{ github.event.pull_request.draft }}
40-
skip_pre:
41-
- ${{ github.event.pull_request.draft }}
42-
exclude:
43-
- skip_lts: true
44-
version: '1.10'
45-
- skip_pre: true
46-
version: '1.12'
47-
env:
48-
JULIA_DI_TEST_TYPE: 'Core'
49-
JULIA_DI_TEST_GROUP: ${{ matrix.group }}
50-
JULIA_DI_PR_DRAFT: ${{ github.event.pull_request.draft }}
51-
steps:
52-
- uses: actions/checkout@v6
53-
- uses: julia-actions/setup-julia@v2
54-
with:
55-
version: ${{ matrix.version }}
56-
arch: x64
57-
- uses: julia-actions/cache@v2
58-
- name: Install dependencies & run tests
59-
run: julia --color=yes -e '
60-
using Pkg;
61-
Pkg.activate("./DifferentiationInterface/test");
62-
if VERSION < v"1.11";
63-
Pkg.rm("DifferentiationInterfaceTest");
64-
Pkg.resolve();
65-
else;
66-
Pkg.develop(; path="./DifferentiationInterfaceTest");
67-
end;
68-
Pkg.activate("./DifferentiationInterface");
69-
test_kwargs = (; allow_reresolve=false, coverage=true);
70-
if ENV["JULIA_DI_PR_DRAFT"] == "true";
71-
Pkg.test("DifferentiationInterface"; julia_args=["-O1"], test_kwargs...);
72-
else;
73-
Pkg.test("DifferentiationInterface"; test_kwargs...);
74-
end;'
75-
- uses: julia-actions/julia-processcoverage@v1
76-
with:
77-
directories: ./DifferentiationInterface/src,./DifferentiationInterface/ext,./DifferentiationInterface/test
78-
- uses: codecov/codecov-action@v5
79-
with:
80-
files: lcov.info
81-
flags: DI
82-
token: ${{ secrets.CODECOV_TOKEN }}
83-
fail_ci_if_error: false
19+
# test-DI-Core:
20+
# name: ${{ matrix.version }} - DI Core (${{ matrix.group }})
21+
# runs-on: ubuntu-latest
22+
# if: ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
23+
# timeout-minutes: 120
24+
# permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
25+
# actions: write
26+
# contents: read
27+
# strategy:
28+
# fail-fast: false # TODO: toggle
29+
# matrix:
30+
# version:
31+
# - '1.10'
32+
# - '1.11'
33+
# - '1.12'
34+
# group:
35+
# - Internals
36+
# - SimpleFiniteDiff
37+
# - ZeroBackends
38+
# skip_lts:
39+
# - ${{ github.event.pull_request.draft }}
40+
# skip_pre:
41+
# - ${{ github.event.pull_request.draft }}
42+
# exclude:
43+
# - skip_lts: true
44+
# version: '1.10'
45+
# - skip_pre: true
46+
# version: '1.12'
47+
# env:
48+
# JULIA_DI_TEST_TYPE: 'Core'
49+
# JULIA_DI_TEST_GROUP: ${{ matrix.group }}
50+
# JULIA_DI_PR_DRAFT: ${{ github.event.pull_request.draft }}
51+
# steps:
52+
# - uses: actions/checkout@v6
53+
# - uses: julia-actions/setup-julia@v2
54+
# with:
55+
# version: ${{ matrix.version }}
56+
# arch: x64
57+
# - uses: julia-actions/cache@v2
58+
# - name: Install dependencies & run tests
59+
# run: julia --color=yes -e '
60+
# using Pkg;
61+
# Pkg.activate("./DifferentiationInterface/test");
62+
# if VERSION < v"1.11";
63+
# Pkg.rm("DifferentiationInterfaceTest");
64+
# Pkg.resolve();
65+
# else;
66+
# Pkg.develop(; path="./DifferentiationInterfaceTest");
67+
# end;
68+
# Pkg.activate("./DifferentiationInterface");
69+
# test_kwargs = (; allow_reresolve=false, coverage=true);
70+
# if ENV["JULIA_DI_PR_DRAFT"] == "true";
71+
# Pkg.test("DifferentiationInterface"; julia_args=["-O1"], test_kwargs...);
72+
# else;
73+
# Pkg.test("DifferentiationInterface"; test_kwargs...);
74+
# end;'
75+
# - uses: julia-actions/julia-processcoverage@v1
76+
# with:
77+
# directories: ./DifferentiationInterface/src,./DifferentiationInterface/ext,./DifferentiationInterface/test
78+
# - uses: codecov/codecov-action@v5
79+
# with:
80+
# files: lcov.info
81+
# flags: DI
82+
# token: ${{ secrets.CODECOV_TOKEN }}
83+
# fail_ci_if_error: false
8484

8585
test-DI-Backend:
8686
name: ${{ matrix.version }} - DI Back (${{ matrix.group }})
@@ -98,22 +98,22 @@ jobs:
9898
- '1.11'
9999
- '1.12'
100100
group:
101-
- ChainRules
102-
- DifferentiateWith
103-
# - Diffractor
104-
- Enzyme
105-
- FastDifferentiation
106-
- FiniteDiff
107-
- FiniteDifferences
108-
- ForwardDiff
109-
- GTPSA
101+
# - ChainRules
102+
# - DifferentiateWith
103+
# # - Diffractor
104+
# - Enzyme
105+
# - FastDifferentiation
106+
# - FiniteDiff
107+
# - FiniteDifferences
108+
# - ForwardDiff
109+
# - GTPSA
110110
- Mooncake
111-
- PolyesterForwardDiff
112-
- ReverseDiff
113-
- SparsityDetector
114-
- Symbolics
115-
- Tracker
116-
- Zygote
111+
# - PolyesterForwardDiff
112+
# - ReverseDiff
113+
# - SparsityDetector
114+
# - Symbolics
115+
# - Tracker
116+
# - Zygote
117117
skip_lts:
118118
- ${{ github.event.pull_request.draft }}
119119
skip_pre:
@@ -157,61 +157,61 @@ jobs:
157157
token: ${{ secrets.CODECOV_TOKEN }}
158158
fail_ci_if_error: false
159159

160-
test-DIT:
161-
name: ${{ matrix.version }} - DIT (${{ matrix.group }})
162-
runs-on: ubuntu-latest
163-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
164-
timeout-minutes: 60
165-
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
166-
actions: write
167-
contents: read
168-
strategy:
169-
fail-fast: false # TODO: toggle
170-
matrix:
171-
version:
172-
- '1.10'
173-
- '1.11'
174-
- '1.12'
175-
group:
176-
- Formalities
177-
- Zero
178-
- Standard
179-
- Weird
180-
skip_lts:
181-
- ${{ github.event.pull_request.draft }}
182-
skip_pre:
183-
- ${{ github.event.pull_request.draft }}
184-
exclude:
185-
- skip_lts: true
186-
version: '1.10'
187-
- skip_pre: true
188-
version: '1.12'
189-
env:
190-
JULIA_DIT_TEST_GROUP: ${{ matrix.group }}
191-
JULIA_DI_PR_DRAFT: ${{ github.event.pull_request.draft }}
192-
steps:
193-
- uses: actions/checkout@v6
194-
- uses: julia-actions/setup-julia@v2
195-
with:
196-
version: ${{ matrix.version }}
197-
arch: x64
198-
- uses: julia-actions/cache@v2
199-
- name: Install dependencies & run tests
200-
run: julia --project=./DifferentiationInterfaceTest --color=yes -e '
201-
using Pkg;
202-
Pkg.Registry.update();
203-
Pkg.develop(path="./DifferentiationInterface");
204-
if ENV["JULIA_DI_PR_DRAFT"] == "true";
205-
Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false, coverage=true, julia_args=["-O1"]);
206-
else;
207-
Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false, coverage=true);
208-
end;'
209-
- uses: julia-actions/julia-processcoverage@v1
210-
with:
211-
directories: ./DifferentiationInterfaceTest/src,./DifferentiationInterfaceTest/ext,./DifferentiationInterfaceTest/test
212-
- uses: codecov/codecov-action@v5
213-
with:
214-
files: lcov.info
215-
flags: DIT
216-
token: ${{ secrets.CODECOV_TOKEN }}
217-
fail_ci_if_error: false
160+
# test-DIT:
161+
# name: ${{ matrix.version }} - DIT (${{ matrix.group }})
162+
# runs-on: ubuntu-latest
163+
# if: ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
164+
# timeout-minutes: 60
165+
# permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
166+
# actions: write
167+
# contents: read
168+
# strategy:
169+
# fail-fast: false # TODO: toggle
170+
# matrix:
171+
# version:
172+
# - '1.10'
173+
# - '1.11'
174+
# - '1.12'
175+
# group:
176+
# - Formalities
177+
# - Zero
178+
# - Standard
179+
# - Weird
180+
# skip_lts:
181+
# - ${{ github.event.pull_request.draft }}
182+
# skip_pre:
183+
# - ${{ github.event.pull_request.draft }}
184+
# exclude:
185+
# - skip_lts: true
186+
# version: '1.10'
187+
# - skip_pre: true
188+
# version: '1.12'
189+
# env:
190+
# JULIA_DIT_TEST_GROUP: ${{ matrix.group }}
191+
# JULIA_DI_PR_DRAFT: ${{ github.event.pull_request.draft }}
192+
# steps:
193+
# - uses: actions/checkout@v6
194+
# - uses: julia-actions/setup-julia@v2
195+
# with:
196+
# version: ${{ matrix.version }}
197+
# arch: x64
198+
# - uses: julia-actions/cache@v2
199+
# - name: Install dependencies & run tests
200+
# run: julia --project=./DifferentiationInterfaceTest --color=yes -e '
201+
# using Pkg;
202+
# Pkg.Registry.update();
203+
# Pkg.develop(path="./DifferentiationInterface");
204+
# if ENV["JULIA_DI_PR_DRAFT"] == "true";
205+
# Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false, coverage=true, julia_args=["-O1"]);
206+
# else;
207+
# Pkg.test("DifferentiationInterfaceTest"; allow_reresolve=false, coverage=true);
208+
# end;'
209+
# - uses: julia-actions/julia-processcoverage@v1
210+
# with:
211+
# directories: ./DifferentiationInterfaceTest/src,./DifferentiationInterfaceTest/ext,./DifferentiationInterfaceTest/test
212+
# - uses: codecov/codecov-action@v5
213+
# with:
214+
# files: lcov.info
215+
# flags: DIT
216+
# token: ${{ secrets.CODECOV_TOKEN }}
217+
# fail_ci_if_error: false

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function call_and_return(f!::F, y, x, contexts...) where {F}
1010
end
1111

1212
function zero_tangent_or_primal(x, backend::AnyAutoMooncake)
13-
if backend.config.friendly_tangents
13+
if get_config(backend).friendly_tangents
1414
# zero(x) but safer
1515
return tangent_to_primal!!(_copy_output(x), zero_tangent(x))
1616
else

0 commit comments

Comments
 (0)