Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2336 +/- ##
=======================================
Coverage 34.30% 34.30%
=======================================
Files 87 87
Lines 27669 27683 +14
=======================================
+ Hits 9491 9497 +6
- Misses 18178 18186 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
udelej na clientovi taky PR, az budes ready |
Review: Isolate Blendkit-Client directory from Global DirectoryClient PR (branch SummaryThe goal is good. Moving the client's binaries, log and
As written, though, the two PRs break the released add-ons, don't work as intended on Windows, and split the machine ID between the add-on and the client. Details below. Client PR: blocking1. Removing the 2. The Windows branch never runs: 3. 4. Missing Client PR:
|
| Add-on | Client | Result |
|---|---|---|
released (passes --global_dir) |
this client PR as-is | broken: client exits on the unknown flag |
| released | client PR with (1) fixed | works |
| #2336 | old client | works (old client accepts --global_dir) |
| #2336 | client PR with (1)(2) fixed | works, but system_id is split until (11) is fixed |
Other effects to be aware of:
- Old binaries and logs in
<global_dir>/client/bin/v*and<global_dir>/client/*.logare never cleaned up. Harmless, but it uses disk space and may confuse support when users send logs. - The client config/settings JSON sits next to the binary, so the first start in
<client_dir>uses fresh files. Please check that the shared usage-data opt-out isn't pushed back to the add-on as the default (sharing allowed) on that first start. - Merge order: the client PR first (it must stay backward compatible with released add-ons), then WIP feat(client): Isolate client directory and global directory #2336 pinned to the new client version.
Suggested checklist before merge
- Client: keep
--global_dir(ignored, or used only for migration) - Client:
runtime.GOOS == "windows",filepath.Join, guard an emptyLOCALAPPDATA - Client: restore migration from
~/blenderkit_data/client/system_id(and<global_dir>/client/system_id) - Client: copy the legacy
system_id, don't delete it - Client tests: fix scenario-name typos, set
LOCALAPPDATAin tests, fix the unwritable-dir test, remove the debug print - Add-on: point
get_system_id_filepath()at the new client dir, keep the old paths as fallbacks - Add-on: guard
os.getenv('LOCALAPPDATA')beingNone - Re-run the add-on test matrix against the new client build
Tweekazoid
left a comment
There was a problem hiding this comment.
bohuzel kdyby se to ted mergnulo tak to zpusobi dost komplikaci.
Je treba tam zafixovat par veci
4fc0657 to
4f7d8f8
Compare
4f7d8f8 to
ae77dea
Compare
TBH BS
good catch
yep, fixed
this gonna be rare, but I have added a fallback to
imho enough to get the location from few last gold releases, no need to cover edgy alphas for few tens of users
ok
ok
was there from before, seems like nobody runs the tests on windows
Problem is somewhere else... this was actually false positive test from before.
a draft right...
Bullshit. ofc get_system_id_filepath() did not change. def get_system_id_filepath() -> str:
"""Where Blendkit-Client keeps the machine ID; the add-on only reads it.
Mirrors bk_client:utils.go-systemIDFilePath()."""
client_dir = client_lib.get_client_directory()
return os.path.join(client_dir, "system_id")
lets add a fallback of
todo on a draft |
bude ještě potřeba syncnout na straně clienta