Commit 18639f1
committed
fix: keep the Blender prefix world-readable, and report what actually failed
Three findings from running the sample end to end in a container, which is what
the new workflow does. All three were caught by that workflow rather than
reasoned about, which is the argument for having it.
The staged extraction introduced earlier in this branch made the prefix
root-only. mktemp -d creates a directory 0700 and mv preserves that, where the
mkdir it replaced took 0755 from the umask, so the artist could not traverse
/opt/blender and the add-on step failed with "Permission denied". Blender is a
system-wide install every user runs, so the staging directory is widened before
the move.
The add-on step then discarded Blender's output and reported only "failed to
enable the Blender add-on", which is how the permission error stayed invisible
for a run. Both the enable and the verify step now report what Blender said.
The library list the workflow installs was derived rather than guessed, and the
last of it took four rounds to find, because qtpy reports any failure to import
PySide6 as "No Qt bindings could be found" -- so a missing libglib, then a
missing libfontconfig, then the missing xcb platform libraries all present as a
missing PySide6 that is in fact bundled and present. The final list comes from
the closure of unresolved libraries across the installed tree under ldd. The
sample's README documents the whole set and how to diagnose it, since a customer
on a minimal image hits exactly this and the message points the wrong way.
Verified: exit 0 with all eight independent assertions passing -- Blender runs,
the add-on reads back from Blender's preferences as the artist, the CLI is on the
artist's login PATH, the profile has the right region, a non-empty monitor_id and
artist ownership, and auth status reports NEEDS_LOGIN -- and a second run also
exits 0, which exercises the prefix guard and staged extract on a re-run.
Signed-off-by: Stephen Crowe <6042774+crowecawcaw@users.noreply.github.com>1 parent a00b7fb commit 18639f1
3 files changed
Lines changed: 57 additions & 12 deletions
File tree
- .github/workflows
- utility_scripts/virtual_workstation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
76 | 90 | | |
77 | 91 | | |
78 | 92 | | |
| |||
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
84 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
85 | 103 | | |
86 | 104 | | |
87 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
177 | 193 | | |
178 | 194 | | |
179 | 195 | | |
| |||
Lines changed: 20 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
257 | 264 | | |
258 | 265 | | |
259 | 266 | | |
| |||
340 | 347 | | |
341 | 348 | | |
342 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
343 | 353 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
348 | 359 | | |
349 | 360 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
355 | 366 | | |
356 | 367 | | |
357 | 368 | | |
| |||
0 commit comments