Commit 3ae17e4
authored
fix(ci): auto-update lockfiles and label release PRs (#483)
* fix(handlebarrz): use setup job for platform flags instead of env context
GitHub Actions doesn't allow using `env` context in job-level `if` conditions.
Refactored to use a setup job that outputs platform flags, which other jobs
reference via `needs.setup.outputs.*`.
Platform defaults are now configured in the setup job's shell script:
- DEFAULT_LINUX_ARM64="true"
- DEFAULT_LINUX_X86_64="true"
- DEFAULT_ALPINE_ARM64="true"
- DEFAULT_ALPINE_X86_64="true"
- DEFAULT_MACOS_ARM64="true"
- DEFAULT_MACOS_X86_64="true"
- DEFAULT_WINDOWS_X86_64="false"
For workflow_dispatch, inputs override these defaults.
For release events, these defaults are used.
* chore: update MODULE.bazel.lock for all platforms
Regenerate the Bazel module lock file to ensure consistency across
all language builds (Go, Java, Python, Rust, TypeScript).
* test(handlebarrz): add numeric and boolean value tests
Add TestNumericAndBooleanValues test class covering:
- Integer values (positive, zero, negative)
- Float values (decimal, zero, negative)
- Boolean values in conditionals
- None/null value handling
- Large numbers
- Scientific notation
* fix(ci): enable lockfile updates for release PRs
Re-enable the update-lockfiles job in release-please workflow to
automatically update MODULE.bazel.lock and other lockfiles when
release-please creates release PRs.
Changes:
- Use matrix strategy to process each separate release PR
- Add prs and prs_created outputs from release-please
- Update lockfiles: MODULE.bazel.lock, Cargo.lock, go.mod, uv.lock, pnpm-lock.yaml
- Use RELEASE_PLEASE_TOKEN for checkout and push permissions
* feat(ci): add automatic labels for release-please PRs
Add labeler rules to automatically label release PRs created by
release-please, making them easier to find and filter.
Labels added:
- release: All release-please PRs
- release/dotprompt: JS/TS dotprompt releases
- release/dotpromptz: Python dotpromptz releases
- release/dotpromptz-handlebars: Python handlebarrz releases
- release/dotprompt-go: Go releases
- release/dotprompt-rs: Rust releases
- release/dotprompt-java: Java releases
- release/vscode: VS Code extension releases
- release/vim: Vim plugin releases
- release/emacs: Emacs plugin releases
- release/jetbrains: JetBrains plugin releases
- release/monaco: Monaco editor releases
- release/codemirror: CodeMirror releases
- release/treesitter: Tree-sitter grammar releases
- release/promptly: Promptly CLI releases
Also fixed quoting on existing branch pattern regexes.
* fix(handlebarrz): correct float test expectation for 0.0
* perf(handlebarrz): add sccache to publish workflow for faster builds
Add sccache (Rust compiler cache) to all build jobs in the publish
workflow to speed up release builds:
- build_ubuntu_arm64
- build_ubuntu_x86_64
- build_alpine_arm64
- build_alpine_x86_64
- build_macos_arm64
- build_macos_x86_64
- build_windows_x86_64
Each job now has:
- SCCACHE_GHA_ENABLED: "true"
- RUSTC_WRAPPER: "sccache"
- mozilla-actions/sccache-action@v0.0.9
* perf(ci): enable Bazel caching for all workflows
Update all Bazel-using workflows to use bazel-contrib/setup-bazel@0.18.0
with optimized caching configuration:
- java.yml: Add disk-cache and repository-cache for test jobs
- publish_java.yml: Add caching for release builds
- release-please.yml: Upgrade from v0.14.0 to v0.18.0, enable disk-cache
Caching configuration:
- bazelisk-cache: true (cache Bazel downloads)
- disk-cache: workflow-specific key (cache build outputs)
- repository-cache: true (cache external dependencies)
- cache-save: Only on main branch for PRs, always for releases
* chore: re-enable mkdocs build in captainhook
Re-enable the eng docs build (mkdocs) in both pre-commit and pre-push
hooks. This was previously disabled with `echo 'disabled' ||` prefix.
* perf(ci): enable Bazel cache saving for all runs
Change cache-save from main-branch-only to always save, enabling
cache reuse across multiple pushes to the same PR branch.
This improves build times for iterative PR development where
subsequent pushes can reuse artifacts from previous builds.1 parent d892ce2 commit 3ae17e4
File tree
9 files changed
+828
-89
lines changed- .github
- workflows
- python/handlebarrz/tests
9 files changed
+828
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
177 | 229 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
0 commit comments