-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lca/age symstore #25
base: dev
Are you sure you want to change the base?
Lca/age symstore #25
Conversation
This takes the numbers of days we want to keep (through files modification times).
if env.age_symstore: | ||
if not nimp.build.age_symstore(env): | ||
success = False | ||
return success |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
providing the --age-symstore
arg will completely change this command behaviour.
I think it'd be better to have a separate command for this rather than integrating it as such.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean outside of the nimp upload
command?
To be fair, we could have a more specfic command for this whole symstoring thing like nimp symstore
with subcommands:
nimp symstore upload
nimp symostore clean
Or do you mean adding a subcommand to the existing like nimp upload cleanup
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both sounds fine to me. Whichever you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd rather rewrite the command as symstore
:
- upload sounds awfuly vague to me (and we already have upload-fileset)
- looks like we only use this in one place in buildbot in _update_symbol_server() so not a hassle to follow up changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moreover, don't you think the upload / symstore related stuff in nimp.build could moved into the symstore command itself?
I don't think they serve any purpose outside of symstoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, being in build doesn't make much sense.
|
||
def get_symstore_tool_path(env, agestore=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really not a fan of this new arg here.
Maybe splitting these functions would help?
Like
def get_symstore_tool_path
and get_agestore_tool_path
which both would be implement as
def func():
if env.is_ps5:
return get_ps5_symupload_tool_path()
elif microsoft:
return get_win_tool_path([agestore | symstore])
What do you think?
@@ -313,24 +313,73 @@ def _discover_latest_autosdk(platform): | |||
return auto_sdk_root | |||
|
|||
# create store if not available yet | |||
store_root = nimp.system.sanitize_path(os.path.join(env.format(env.publish_symbols), env.platform.lower())) | |||
store_root = get_symstore_root(env) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this store_root
logic is not in the correct function anymore.
if not os.path.exists(store_root): | ||
nimp.system.safe_makedirs(store_root) | ||
|
||
# find the tool to upload our symbols | ||
sym_tool_path = "C:/Program Files (x86)/Windows Kits/10/Debuggers/x64/symstore.exe" | ||
win64_tool = 'agestore' if agestore else 'symstore' | ||
sym_tool_path = f'C:/Program Files (x86)/Windows Kits/10/Debuggers/x64/{win64_tool}.exe' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two lines would be better in the else L330
No description provided.