Commit c5d2ccd
committed
fix: resolve heavy CI triggering on maintenance branches and git history issues
1. Remove *.*.x from continuous-integration.yml triggers
- Heavy CI/CD builds now only run on main branch
- Maintenance branches use only the fast workflow
2. Fix git history availability in maintenance-fast.yml
- Use fetch-depth: 2 to ensure HEAD~1 is available
- Add debug logging for git state
- Add fallback to "git show" when HEAD~1 not available
3. Improve error handling in test_discovery.py
- Test for HEAD~1 existence before using it
- Fallback to "git show --name-only HEAD" for shallow clones
This should resolve both the duplicate heavy workflows and the git diff failures.1 parent 2c748d9 commit c5d2ccd
File tree
3 files changed
+16
-6
lines changed- .github
- scripts
- workflows
3 files changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments