Commit c11596f
authored
[serverless] Upload serverless assets to Azure so we can release for a layer (#6561)
## Summary of changes
Compiles the serverless assets to an artifact, uploads them, and uses
those when building the layer for a release
## Reason for change
The serverless layer has been unable to build for a while for releases.
The SSI artifacts (which similarly build in gitlab) pull the assets from
the GitHub release page, but we're hesitant to add the serverless assets
there, because of the risk of confusion for customers.
As a workaround, we upload the assets to a public blob store that can be
pulled from later. Various other workflows already use this store, so
this is just adding an additional asset, and sidesteps the issue.
## Implementation details
- Remove the "aggregation" logic out of GitLab (which chooses _which_
artifacts are required)
- Add a new stage to AzDo that does the aggregation logic for the
required artifacts.
- Upload the artifact as a zip file to Azure
- In gitlab, pull either directly from azdo (for build branches) or from
Azure (for tag branches)
## Test coverage
- [Tested the aggregation and upload
here](https://dev.azure.com/datadoghq/dd-trace-dotnet/_build/results?buildId=171807&view=results)
- [Tested the pulling from gitlab
here](https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-dotnet/-/pipelines/53167864)
(using a temporary hack to force calling the tag-related code)
## Other details
Supersedes
- #65431 parent 8fdb243 commit c11596f
File tree
2 files changed
+94
-36
lines changed- .azure-pipelines
- .gitlab
2 files changed
+94
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4257 | 4257 | | |
4258 | 4258 | | |
4259 | 4259 | | |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
| 4264 | + | |
| 4265 | + | |
| 4266 | + | |
| 4267 | + | |
| 4268 | + | |
| 4269 | + | |
| 4270 | + | |
| 4271 | + | |
| 4272 | + | |
| 4273 | + | |
| 4274 | + | |
| 4275 | + | |
| 4276 | + | |
| 4277 | + | |
| 4278 | + | |
| 4279 | + | |
| 4280 | + | |
| 4281 | + | |
| 4282 | + | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
4260 | 4300 | | |
4261 | 4301 | | |
4262 | | - | |
| 4302 | + | |
4263 | 4303 | | |
4264 | 4304 | | |
4265 | 4305 | | |
| |||
4485 | 4525 | | |
4486 | 4526 | | |
4487 | 4527 | | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
| 4534 | + | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
4488 | 4541 | | |
4489 | 4542 | | |
4490 | 4543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
13 | 27 | | |
| 28 | + | |
14 | 29 | | |
15 | 30 | | |
16 | 31 | | |
| |||
32 | 47 | | |
33 | 48 | | |
34 | 49 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
70 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
0 commit comments