Commit 48108d2
feat: implement GitHub Actions job skipping system (Phase 4)
Implemented source-file-based job skipping with early exit pattern for
GitHub Actions, since it doesn't support CircleCI's dynamic continuation.
Key features:
- SHA-256 hash calculation of source files
- Early exit with 'exit 0' when job already completed for hash
- Skip cache stored in /tmp/cigen_skip_cache
- Architecture-aware skip markers
- Support for @group references and inline patterns
- Completion recording for successful runs
Implementation:
- Created src/providers/github_actions/job_skip.rs with JobSkipGenerator
- Integrated skip steps into workflow generator
- Three-step pattern: calculate hash → check skip → record completion
- Full test coverage with 3 test cases
How it works:
1. Calculate hash of source files and store in $GITHUB_ENV
2. Check if skip marker exists, exit 0 if found (saves ~5-30 sec)
3. Run job normally if not skipped
4. Record completion marker on success
Difference from CircleCI:
- CircleCI: Can completely skip job before container boots (saves minutes)
- GitHub Actions: Job starts but exits early (saves seconds)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 98c1048 commit 48108d2
File tree
3 files changed
+380
-10
lines changed- src/providers/github_actions
3 files changed
+380
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
251 | | - | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| |||
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
264 | 287 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
270 | 303 | | |
271 | 304 | | |
272 | 305 | | |
| |||
0 commit comments