This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new d750df3f2f Bring the local action along in the Groovy build's sparse
checkout
d750df3f2f is described below
commit d750df3f2f2e6f2732215efad52629587d87cf21
Author: James Daugherty <[email protected]>
AuthorDate: Thu Oct 15 02:24:17 2026 +0100
Bring the local action along in the Groovy build's sparse checkout
The Groovy joint build fetches this repository with a sparse checkout of
settings.gradle alone, so the gradle-cache-policy action that every
Setup Gradle step now runs first was not there, and the job failed before
building anything. The sparse checkout lists .github/actions as well.
AGENTS.md's Gradle caching section says a sparse checkout must.
---
.github/workflows/groovy-joint-workflow.yml | 5 ++++-
AGENTS.md | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/groovy-joint-workflow.yml
b/.github/workflows/groovy-joint-workflow.yml
index 0fa03beefe..8294c269f0 100644
--- a/.github/workflows/groovy-joint-workflow.yml
+++ b/.github/workflows/groovy-joint-workflow.yml
@@ -44,7 +44,10 @@ jobs:
uses: actions/[email protected]
with:
sparse-checkout-cone-mode: false
- sparse-checkout: settings.gradle
+ # .github/actions holds the local gradle-cache-policy action the
Setup Gradle step runs first
+ sparse-checkout: |
+ settings.gradle
+ .github/actions
- name: "📝 Store the Gradle Plugin versions used in this project"
id: gradle-plugin-versions
run: |
diff --git a/AGENTS.md b/AGENTS.md
index 954b742a19..606d38120d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -251,7 +251,7 @@ Rules:
GitHub keeps about 10 GB of Actions cache per repository and evicts the least
recently used entries. A run can restore entries only from its own branch and
the default branch, and a pull request also from its base branch. The workflows
are arranged around those two limits:
- The Gradle User Home is cached only by `gradle/actions/setup-gradle`, with
its default provider. Do not add an `actions/cache` step for `~/.gradle`,
`cache-disabled`, or `cache-provider: basic`; release verification is the one
job left uncached on purpose.
-- Every `setup-gradle` step is preceded by the local action
`.github/actions/gradle-cache-policy` and takes `cache-read-only` from its
`read-only` output. Do not write `true` or `false` there: the policy lives in
that action, so changing it means editing one file on the oldest release branch
and merging up.
+- Every `setup-gradle` step is preceded by the local action
`.github/actions/gradle-cache-policy` and takes `cache-read-only` from its
`read-only` output. A job that fetches this repository with a sparse checkout
must list `.github/actions` in it, or the action is not there to run. Do not
write `true` or `false` there: the policy lives in that action, so changing it
means editing one file on the oldest release branch and merging up.
- Only the core build job (`build` in `gradle.yml`) passes `cache-writer`,
from the one matrix entry per OS flagged `cache_writer: true`. A new job or
workflow never passes it.
- The action lets a writer save only on a push or dispatch, only on a branch
whose major version is at least the default branch's, and, for Windows and
macOS, only on that major's first branch (`x.0.x`). With 8.0.x as the default
branch, 7.x never writes, Linux writes on every 8.x and 9.x branch, and Windows
and macOS write on 8.0.x and 9.0.x. The rule follows the default branch: when a
new one is promoted, older majors stop writing without an edit.