Skip to content
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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Lca/age symstore #25

wants to merge 1 commit into from

Conversation

jasugun
Copy link
Contributor

@jasugun jasugun commented Mar 1, 2022

No description provided.

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
Copy link
Member

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.

Copy link
Contributor Author

@jasugun jasugun Mar 10, 2022

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?

Copy link
Member

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.

Copy link
Contributor Author

@jasugun jasugun Mar 10, 2022

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

Copy link
Contributor Author

@jasugun jasugun Mar 10, 2022

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.

Copy link
Member

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):
Copy link
Member

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)
Copy link
Member

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'
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants