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

pack: Restore behavior with no passed trace dirs #3842

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

Keno
Copy link
Member

@Keno Keno commented Oct 1, 2024

This is a bit of an embarassing bug-fix, but as pointed out in #3834 (comment), I accidentally broke rr pack without trace dir specified (which is supposed to pack the latest dir). We do actually have a test for it, which does fail for me locally (which I didn't notice - sorry), but not on CI. I'm not entirely sure why it doesn't fail on CI, but I imagine we might be copying more things in the CI environment, rather than cloning/linking them. To try to catch similar regressions in the future, this also adds an extra check to the test to make sure that there is some mmap_pack_* file in the trace after packing. I think we should always be packing at least libc or ld-linux, so hopefully there shouldn't be any false positives there.

This is a bit of an embarassing bug-fix, but as pointed out in
rr-debugger#3834 (comment),
I accidentally broke `rr pack` without trace dir specified (which is
supposed to pack the latest dir). We do actually have a test for it,
which does fail for me locally (which I didn't notice - sorry),
but not on CI. I'm not entirely sure why it doesn't fail on CI, but
I imagine we might be copying more things in the CI environment, rather
than cloning/linking them. To try to catch similar regressions in the future,
this also adds an extra check to the test to make sure that there is
some `mmap_pack_*` file in the trace after packing. I think we should
always be packing at least libc or ld-linux, so hopefully there
shouldn't be any false positives there.
@rocallahan rocallahan merged commit c7761d1 into rr-debugger:master Oct 2, 2024
4 of 5 checks passed
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