Repository navigation
Commit c3f429b
ci(snap): build the snap in the snapcraft container instead of LXD (#5893)
The snap build launched an LXD instance, which first downloads its
Ubuntu base image. That download can hang: a Release Dev run sat at
"Creating new base instance from remote" for 49 minutes until it was
cancelled, against the usual 3 to 6 minutes, and Pre-release builds the
snap too.
Build with Canonical's snapcraft image instead, on the same runners.
It runs `snapcraft pack` on the container itself
(SNAPCRAFT_BUILD_ENVIRONMENT=host), so no LXD or snapd setup is needed.
The inputs are copied into a Docker volume, packed there, and the .snap
and .comp files copied back out. Snapcraft's logs are bind-mounted to
the workspace for the failure upload, which is now named per
architecture. The pack step times out after 20 minutes.
Refs #4554
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
Co-authored-by: Evan Lezar <elezar@nvidia.com>1 parent 68b1796 commit c3f429b
1 file changed
Lines changed: 33 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 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 | 40 | | |
68 | 41 | | |
69 | 42 | | |
| |||
117 | 90 | | |
118 | 91 | | |
119 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
120 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
121 | 101 | | |
122 | 102 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
| 132 | + | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments