From 97dc98148db1a4c5b90ae67b4631d9275a210842 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:23:15 +0000 Subject: [PATCH 1/8] build(deps): bump crate-ci/typos from 1.17.2 to 1.18.0 Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.17.2 to 1.18.0. - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](https://github.com/crate-ci/typos/compare/v1.17.2...v1.18.0) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/SpellCheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml index 473706be..9246edd2 100644 --- a/.github/workflows/SpellCheck.yml +++ b/.github/workflows/SpellCheck.yml @@ -10,4 +10,4 @@ jobs: - name: Checkout Actions Repository uses: actions/checkout@v4 - name: Check spelling - uses: crate-ci/typos@v1.17.2 \ No newline at end of file + uses: crate-ci/typos@v1.18.0 \ No newline at end of file From ec011fb7d1f1260c5593c55ef11a3afc813949d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:23:19 +0000 Subject: [PATCH 2/8] build(deps): bump codecov/codecov-action from 3 to 4 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v4) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/CI.yml | 2 +- .github/workflows/Documentation.yml | 2 +- .github/workflows/Downstream.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2903b709..ba93558b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -42,6 +42,6 @@ jobs: - uses: julia-actions/julia-processcoverage@v1 with: directories: src,ext - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: file: lcov.info diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 6a08fca1..8df36d1e 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -24,6 +24,6 @@ jobs: DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key run: julia --project=docs/ --code-coverage=user docs/make.jl - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: file: lcov.info diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index 0ba79820..0f087381 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -61,6 +61,6 @@ jobs: exit(0) # Exit immediately, as a success end - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: file: lcov.info From fb371ce8e7f67e0c23a03ffbb6f1b6b5f85b4e05 Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Tue, 6 Feb 2024 04:41:08 +0100 Subject: [PATCH 3/8] [skip ci] Update dependabot.yml --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1e8a051e..ec3b005a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,4 +7,4 @@ updates: interval: "weekly" ignore: - dependency-name: "crate-ci/typos" - update-types: ["version-update:semver-patch"] + update-types: ["version-update:semver-patch", "version-update:semver-minor"] From 6a8ac27d0d5659b32729ea18361494ae7059dca2 Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam <47104651+thazhemadam@users.noreply.github.com> Date: Fri, 9 Feb 2024 23:28:37 +0530 Subject: [PATCH 4/8] ci: explicitly specify token for codecov Explicitly specify the codecov token to be used (i.e., `CODECOV_TOKEN`), given that the latest v4 release of the codecov action requires it to be able to generate coverage reports. Additionally, fail CI if coverage reporting fails, since coverage is an important enough metric for us to ensure that it's tracked consistently. --- .github/workflows/CI.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ba93558b..9173becd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -45,3 +45,5 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true From d6d6fb060f918e53d7fc45c5573a923e2962b82b Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam <47104651+thazhemadam@users.noreply.github.com> Date: Fri, 9 Feb 2024 23:29:08 +0530 Subject: [PATCH 5/8] ci: explicitly specify token for codecov Explicitly specify the codecov token to be used (i.e., `CODECOV_TOKEN`), given that the latest v4 release of the codecov action requires it to be able to generate coverage reports. Additionally, fail CI if coverage reporting fails, since coverage is an important enough metric for us to ensure that it's tracked consistently. --- .github/workflows/Documentation.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 8df36d1e..00f2aea7 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -27,3 +27,5 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true From 415fdf17706efb1c932fe82e2eb154a58193f7d8 Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam <47104651+thazhemadam@users.noreply.github.com> Date: Fri, 9 Feb 2024 23:29:24 +0530 Subject: [PATCH 6/8] ci: explicitly specify token for codecov Explicitly specify the codecov token to be used (i.e., `CODECOV_TOKEN`), given that the latest v4 release of the codecov action requires it to be able to generate coverage reports. Additionally, fail CI if coverage reporting fails, since coverage is an important enough metric for us to ensure that it's tracked consistently. --- .github/workflows/Downstream.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index 0f087381..f6c2e3bb 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -64,3 +64,5 @@ jobs: - uses: codecov/codecov-action@v4 with: file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true From 765c29cfc62d237125b4e3081e133b50e320eb1d Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Tue, 13 Feb 2024 15:44:22 +0530 Subject: [PATCH 7/8] fix: fix inference of `getindex(::ArrayPartition, ::Int)` --- src/array_partition.jl | 1 + test/partitions_test.jl | 1 + 2 files changed, 2 insertions(+) diff --git a/src/array_partition.jl b/src/array_partition.jl index 0bfdd68b..23ab35b9 100644 --- a/src/array_partition.jl +++ b/src/array_partition.jl @@ -219,6 +219,7 @@ Base.@propagate_inbounds function Base.getindex(A::ArrayPartition, i::Int) return A.x[j][length(A.x[j]) + i] end end + throw(BoundsError(A, i)) end """ diff --git a/test/partitions_test.jl b/test/partitions_test.jl index 9f7aeb59..15c31655 100644 --- a/test/partitions_test.jl +++ b/test/partitions_test.jl @@ -1,6 +1,7 @@ using RecursiveArrayTools, Test, Statistics, ArrayInterface A = (rand(5), rand(5)) p = ArrayPartition(A) +@inferred p[1] @test (p.x[1][1], p.x[2][1]) == (p[1], p[6]) p = ArrayPartition(A, Val{true}) From 68829ab6911e506fa05099b5cf3df6c4a67307e4 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Tue, 13 Feb 2024 05:40:42 -0500 Subject: [PATCH 8/8] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index fc448943..21e7a199 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "RecursiveArrayTools" uuid = "731186ca-8d62-57ce-b412-fbd966d074cd" authors = ["Chris Rackauckas "] -version = "3.8.0" +version = "3.8.1" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"