Skip to content

spack.relocate: further coverage for ELF related functions#16585

Merged
becker33 merged 11 commits intospack:developfrom
alalazo:qa/relocate_elf_binaries
May 26, 2020
Merged

spack.relocate: further coverage for ELF related functions#16585
becker33 merged 11 commits intospack:developfrom
alalazo:qa/relocate_elf_binaries

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented May 11, 2020

This PR:

  • Increase coverage for all the remaining ELF related functions in spack.relocate
  • Improve docstrings and naming for the same functions

@alalazo alalazo added tests General test capability(ies) coverage binary-packages labels May 11, 2020
@alalazo alalazo force-pushed the qa/relocate_elf_binaries branch 2 times, most recently from 1c55aa3 to 3725fdc Compare May 20, 2020 19:05
@alalazo alalazo marked this pull request as ready for review May 20, 2020 20:44
@scheibelp scheibelp self-assigned this May 20, 2020
Copy link
Copy Markdown
Member

@becker33 becker33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two requests/questions

_replace_prefix_text(file, orig_install_prefix, new_install_prefix)
for orig_dep_prefix, new_dep_prefix in new_prefixes.items():
_replace_prefix_text(file, orig_dep_prefix, new_dep_prefix)
_replace_prefix_text(file, orig_layout_root, new_layout_root)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do replace the layout root for text files but not binary files? Seems like this should be the same for both.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what is worth in this PR I didn't change any logic, only added unit tests, docstrings and made naming consistent for ELF related functions. If it is fine with you I can add a TODO like I did above for the number of arguments, and work on that in a following PR (so not to mix the trivial refactor done here with a change in logic).

Also, maybe @gartung has more to say on the rationale.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alalazo that works for me.

@becker33 becker33 assigned becker33 and unassigned scheibelp May 20, 2020
@alalazo alalazo force-pushed the qa/relocate_elf_binaries branch from ce8746c to b9de3b2 Compare May 26, 2020 10:29
@alalazo alalazo requested a review from becker33 May 26, 2020 10:56
@becker33 becker33 merged commit c01433f into spack:develop May 26, 2020
@alalazo alalazo deleted the qa/relocate_elf_binaries branch May 26, 2020 18:47
@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented May 26, 2020

Thanks @becker33 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

binary-packages tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants