Commit 20bd067
authored
fix: support workflow_dispatch in commit-recordings via PR metadata artifact (#5202)
## Summary
- Adds `upload-pr-metadata` job to record-integration-tests workflow
that creates an artifact with PR information
- Updates commit-recordings workflow to download and use this metadata
artifact
- Enables workflow_dispatch triggers to properly commit recordings back
to PRs
## Problem
When recording tests are triggered via `workflow_dispatch`, the
commit-recordings companion workflow skips committing because it can't
determine which PR to commit to.
Example of skipped run:
https://github.com/llamastack/llama-stack/actions/runs/23264433521/job/67641289839
## Solution
The record-integration-tests workflow now creates a metadata artifact
containing PR information (number, branch, SHA, repo). The
commit-recordings workflow downloads this artifact and uses it to
determine where to commit, falling back to the original pull_request
event logic if no metadata is found.
## Note
After this merges, the pinned SHAs in record-integration-tests.yml will
need to be updated again to point to the commit that includes this
change.
## Test plan
- [ ] Manual workflow_dispatch trigger should now commit recordings to
the specified PR
- [ ] Auto-trigger on pull_request should continue to work as before
---------
Signed-off-by: Charlie Doern <cdoern@redhat.com>1 parent 5a9b9f2 commit 20bd067
File tree
2 files changed
+102
-19
lines changed- .github/workflows
2 files changed
+102
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
68 | | - | |
| 66 | + | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
74 | 104 | | |
75 | 105 | | |
76 | 106 | | |
77 | 107 | | |
78 | 108 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
83 | 122 | | |
84 | | - | |
85 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
86 | 126 | | |
87 | 127 | | |
88 | | - | |
| 128 | + | |
89 | 129 | | |
90 | 130 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
99 | 149 | | |
100 | 150 | | |
101 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
143 | 176 | | |
144 | 177 | | |
145 | 178 | | |
| |||
0 commit comments