Skip to content

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
Contributor

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
Contributor

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
Contributor

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_root(env):
return nimp.system.sanitize_path(os.path.join(env.format(env.publish_symbols), env.platform.lower()))

def get_symstore_tool_path(env, agestore=False):
Copy link
Contributor

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?


# 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
Contributor

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.

# 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
Contributor

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

@tdesveaux tdesveaux deleted the branch main April 4, 2025 09:12
@tdesveaux tdesveaux closed this Apr 4, 2025
@tdesveaux
Copy link
Contributor

Wrongly closed by dev branch deletion

@tdesveaux tdesveaux reopened this Apr 4, 2025
@tdesveaux tdesveaux changed the base branch from dev to main April 4, 2025 09:19
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.

3 participants