Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion design/developer-workflows/validation-and-runtime-proof.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Confirm the logs show actual repository initialization and dependency extraction

## Daemon JDK Artifact Maintenance

[Refresh Gradle Daemon JDK](../../.github/workflows/refresh-gradle-daemon-jvm.yml) runs weekly from the default branch and can be dispatched from `develop`. Its [bounded helper](../../dev-tools/maintenance/refresh-gradle-daemon-jvm.py) invokes the repository wrapper's `updateDaemonJvm --jvm-version=21 --jvm-vendor=adoptium`. The helper reads official Adoptium Java 21 HotSpot metadata and requires one common release/build for Linux, macOS, and Windows on x64 and AArch64. It rejects malformed, duplicate, missing, or inconsistent platform metadata and download URLs outside the versioned `adoptium/temurin21-binaries` GitHub releases. It supplies those six URLs as data to Gradle's native `UpdateDaemonJvm.toolchainDownloadUrls`; Gradle generates the criteria file, and the helper verifies exact Java 21/Adoptium criteria and a one-file change boundary. Unsupported FreeBSD and generic Unix aliases are not synthesized. This maintenance path avoids Foojay's observed missing Temurin 21 metadata; the configured resolver remains available for other Gradle toolchain uses. Renovate maintains the Gradle wrapper and resolver plugin; it does not maintain the generated daemon artifact IDs. Changing `toolchainVersion` alone does not refresh JDK patch artifacts.
[Refresh Gradle Daemon JDK](../../.github/workflows/refresh-gradle-daemon-jvm.yml) runs weekly from the default branch and can be dispatched from `develop`. Its [bounded helper](../../dev-tools/maintenance/refresh-gradle-daemon-jvm.py) enters the existing `run-locked-gradle.sh --resource-session` before snapshotting outside edits, reading daemon criteria, or querying release metadata; nested Gradle generation reuses the verified resource lease. In `--check-only` mode, the helper derives one exact approved release from the six existing daemon criteria URLs, fetches official Java 21 GA metadata for that release on each supported platform, and validates the same full release/build, platform, vendor, and immutable URL constraints before generation. Exact-release queries request Adoptium's `DEFAULT`/`DESC` ordering in deterministic zero-based pages of at most 20 records; they stop at the first exact match, treat HTTP 404 as pagination exhaustion, and fail after ten pages or exhaustion. Each response remains limited to 8 MiB. An explicit refresh without `--check-only` uses official latest-per-platform metadata and fails closed when those latest artifacts do not share one release/build; it never selects an older common release automatically. Both modes pass the six validated URLs to Gradle's native `UpdateDaemonJvm.toolchainDownloadUrls`; Gradle generates the criteria file, and the helper verifies exact Java 21/Adoptium criteria and a one-file change boundary. The outside-artifact snapshot retains tracked changes and records contents/modes for Git-enumerated untracked regular files plus targets for Git-enumerated symlinks; it refuses an unsupported special file if Git enumerates one. The check-only workflow therefore proves the committed pin during a staggered upstream rollout, while an explicit refresh waits for all platform latests to converge. Unsupported FreeBSD and generic Unix aliases are not synthesized. This maintenance path avoids Foojay's observed missing Temurin 21 metadata; the configured resolver remains available for other Gradle toolchain uses. Renovate maintains the Gradle wrapper and resolver plugin; it does not maintain the generated daemon artifact IDs. Changing `toolchainVersion` alone does not refresh JDK patch artifacts.

**Setup required:** install a dedicated GitHub App on this repository with only repository Contents and Pull requests write access, store its private key first in repository secret `DEPENDENCY_MAINTENANCE_APP_PRIVATE_KEY`, then set repository variable `DEPENDENCY_MAINTENANCE_APP_CLIENT_ID` to its client ID. Setting the client ID deliberately enables scheduled publication; without it the scheduled publishing job skips. A manual dispatch from `develop` still runs the setup check and fails visibly if either field is missing, and enabled scheduled publication also fails on incomplete configuration. Keep private-key material in GitHub Secrets, never in chat or source. Its ordinary `GITHUB_TOKEN` has Contents and Pull requests read access; a short-lived, current-repository-only App token is minted only after successful generation for publication. The App-backed PR events trigger the existing exact-head Validation, Security, License, CodeQL, and Smoke gates. A `GITHUB_TOKEN` publisher would suppress those ordinary events; manual CI activation is not this workflow's maintenance contract. Credential provisioning and live hosted execution remain separate setup/proof steps. A separate path-filtered pull-request job in the same workflow runs the real generator and criteria guard with read-only permissions and no App credentials or publication steps; fork PRs cannot select the publishing job. `--check-only` generates and validates the candidate artifact without remote writes and preserves existing edits outside that artifact; publication requires a clean checkout.

Expand Down
Loading
Loading