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

bug 1784290: accept dashes in the ID, and compress and serve files named "debuginfo" and "executable" #2598

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mstange
Copy link
Contributor

@mstange mstange commented Aug 20, 2022

These are the changes for https://bugzilla.mozilla.org/show_bug.cgi?id=1784290.

At the moment these patches fail tests, and I haven't had a chance to debug those failures.
I'm pushing this branch now in case someone else wants to take a look while I'm on PTO.

The following paths in the zip file are now accepted during upload, in
addition to what's accepted today:

 - uuid/05E23BCB-EFB0-330B-809B-1EEAC8884B86/executable
 - uuid/05E23BCB-EFB0-330B-809B-1EEAC8884B86/debuginfo.dSYM.tar.bz2

TODO: The test still needs to be adapted.
I've added 6 files to the sample.zip:

 - The native and sym files for a Linux libfakeopenh264.so (this was the
   smallest .so I could find):
    - buildid/<hex>/executable
    - buildid/<hex>/debuginfo
    - libfakeopenh264.so/<hex>/libfakeopenh264.so.sym
 - The same for a macOS libfakeopenh264.dylib:
    - uuid/<uuid>/executable
    - uuid/<uuid>.dSYM.tar.bz2
    - libfakeopenh264.dylib/<hex>/libfakeopenh264.dylib.sym

The full contents are now:

```
sample % find . -type f
./build-symbols.txt
./flag/deadbeef/flag.jpeg
./xpcshell.dbg/A7D6F1BB18CD4CB48/xpcshell.sym
./libfakeopenh264.so/E889C906E35FA12037F27850399FC12A0/libfakeopenh264.so.sym
./buildid/06c989e85fe320a137f27850399fc12ad889ddc9/executable
./buildid/06c989e85fe320a137f27850399fc12ad889ddc9/debuginfo
./libnssckbi.so/DFDDFE2B9D3AF892658B766CC9230B320/libnssckbi.so.sym
./uuid/4C862AB7-AB9A-3B6F-9CAB-3FE44CB6FB97/executable
./uuid/4C862AB7-AB9A-3B6F-9CAB-3FE44CB6FB97/debuginfo.dSYM.tar
./libfakeopenh264.dylib/4C862AB7AB9A3B6F9CAB3FE44CB6FB970/libfakeopenh264.dylib.sym
```
These are the filenames used by the debuginfod protocol.
In bug 1779439 and bug 1429871 I intend to make the
Firefox build system upload files with these names for
Linux and macOS native symbols.
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.

1 participant