Commit 39d4a9f
authored
Fix release pipeline failures (#3423)
* Fix release pipeline failures in pythonpublish and build_image workflows
The v1.16.17 release failed because a transient PyPI connection error
during plugin upload killed the entire deploy job, and re-runs failed
because already-uploaded packages return 400. The manual build_image
workflow also failed because it passed github.sha as the package version
instead of the actual semver.
Changes:
- Upgrade actions/setup-python from v1 to v5 and pin Python to 3.12
(3.x resolved to unstable Python 3.14)
- Add --verbose --skip-existing to all twine upload commands so re-runs
skip already-uploaded packages instead of failing
- Fix build_image.yml to derive VERSION from branch/tag name instead of
github.sha, which is not a valid PyPI version
- Use safer shell parameter expansion for GITHUB_REF parsing
Signed-off-by: Kevin Su <kevin@union.ai>
Signed-off-by: Kevin Su <pingsutw@apache.org>
* Fail early if build_image.yml is not run from a version tag/branch
If triggered from a non-version ref like 'master', error out with a
clear message instead of silently using an invalid PyPI version.
Signed-off-by: Kevin Su <pingsutw@apache.org>
---------
Signed-off-by: Kevin Su <kevin@union.ai>
Signed-off-by: Kevin Su <pingsutw@apache.org>1 parent 54b82e5 commit 39d4a9f
3 files changed
Lines changed: 38 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
7 | 26 | | |
8 | 27 | | |
| 28 | + | |
9 | 29 | | |
10 | 30 | | |
11 | 31 | | |
| |||
32 | 52 | | |
33 | 53 | | |
34 | 54 | | |
| 55 | + | |
35 | 56 | | |
36 | 57 | | |
37 | 58 | | |
| |||
40 | 61 | | |
41 | 62 | | |
42 | 63 | | |
43 | | - | |
44 | | - | |
| 64 | + | |
| 65 | + | |
45 | 66 | | |
46 | 67 | | |
47 | 68 | | |
48 | 69 | | |
49 | 70 | | |
50 | 71 | | |
51 | 72 | | |
| 73 | + | |
52 | 74 | | |
53 | 75 | | |
54 | 76 | | |
| |||
72 | 94 | | |
73 | 95 | | |
74 | 96 | | |
| 97 | + | |
75 | 98 | | |
76 | 99 | | |
77 | 100 | | |
| |||
80 | 103 | | |
81 | 104 | | |
82 | 105 | | |
83 | | - | |
| 106 | + | |
84 | 107 | | |
85 | 108 | | |
86 | 109 | | |
87 | 110 | | |
88 | 111 | | |
89 | 112 | | |
| 113 | + | |
90 | 114 | | |
91 | 115 | | |
92 | 116 | | |
| |||
110 | 134 | | |
111 | 135 | | |
112 | 136 | | |
| 137 | + | |
113 | 138 | | |
114 | 139 | | |
115 | 140 | | |
| |||
118 | 143 | | |
119 | 144 | | |
120 | 145 | | |
121 | | - | |
| 146 | + | |
122 | 147 | | |
123 | 148 | | |
124 | 149 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | | - | |
39 | | - | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments