15:00:27 #startmeeting Tor Browser Weekly Meeting 2022-03-21 15:00:27 Meeting started Mon Mar 21 15:00:27 2022 UTC. The chair is richard. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:00:27 Useful Commands: #action #agreed #help #info #idea #link #topic. 15:01:19 o/ 15:01:28 Hi! 15:01:30 okay 15:01:46 we'll do the usual for some minutes 15:02:04 update the pad, update your boards/tasks, bring up discussion topics, etc 15:03:55 o/ 15:06:19 ok then 15:07:54 ok PieroV, looks like you're up re Discussion topics 15:08:00 what's all this about apk alignment issues? 15:08:16 a user tried to build Tor Browser from source for all platforms 15:08:32 (I don't know why, if they are also auditing, or if they just don't trust our builds...) 15:08:51 anyway, they had some problems with the Android one, they told they couldn't install it 15:09:10 Because Android 11 changed format/requires APK/zip alignment or something like this 15:09:32 Certainly a good thing to have people from outside of Tor trying to reproduce our builds. Wish it were more common.... 15:09:44 PieroV: i have encountered this on API 30 and above 15:09:49 is there a reproducibility problem here? 15:09:54 cannot side load 15:09:54 So, my question is: at the signing phase, do we do something that could be moved to tor-browser-build? 15:10:10 i have to do all my QA work on API 29 or below 15:10:17 since starting 15:10:29 is API 30 Android 11? 15:10:42 * aguestuser goes to look it up 15:11:11 yes 15:11:28 api 29 is android 10 (last one i can manually isntall apks for) 15:11:39 ok interesting 15:11:43 okay, then probably as the user was saying, it is just that we are using an old sdk/toolchain and they should have done their tests with API 29 as well 15:11:45 but: can install from playstore or update just fine 15:11:59 well, this is a standing issue we need to fix 15:12:03 * aguestuser digs up issue 15:12:09 aguestuser: could you please answer the user? 15:12:32 the issue is tor-browser-build#40463 15:12:34 PieroV: where is ticket? 15:12:51 otherwise if you prefer, I'll just write what came up here 15:13:24 PieroV: I can try to reproduce it tomorrow on an Android 11 device. 15:13:43 here is issue: http://eweiibe6tdjsdprb4px6rqrzzcsi22m4koia44kc5pcjr7nec2rlxyad.onion/tpo/applications/fenix/-/issues/40202 15:14:16 kwadronaut[m]: you would need to build an apk with tor-browser-build :) If it already known, I don't think we need to reproduce it further, but thanks anyway :) 15:14:25 aguestuser: huh. our signed releases can be installed on 30+? it's only QA where we see this error? 15:14:30 aguestuser: I can tell you a joke now, how I can't open onion links from my phone ;) 15:14:50 (ha!) 15:14:57 lolol 15:15:02 :( 15:15:05 anyway 15:15:22 Piero: good point, thanks. 15:15:23 kwadronaut: https://gitlab.torproject.org/tpo/applications/fenix/-/issues/40202 15:15:46 well, that was all for my discussion point 15:15:54 aguestuser: huh. our signed releases can be installed on 30+? it's only QA where we see this error? 15:16:00 sysrqb: i don't know if it's also signed releases. just flagged this when honestly too fresh to parse distinctions in what apks were being spit out by tor-browser-build. was just surprised that i could not side-load its output 15:16:14 i think it's worth investigating1 15:16:27 yeah 15:16:35 i remember that initial discussioh 15:16:45 but i assumed this issue included signed apks 15:17:00 if it's only QA, then there's probably an easy fix 15:17:04 i would assume it does? 15:17:12 okay 15:17:15 is it for nightly builds only? 15:17:34 actually, i can check this right now 15:17:40 have tons of signed apks lying around lol 15:18:05 boklm: i think the issue wanted "testbuilds based on nightly" 15:18:23 the issue I've linked is also on release 15:18:28 but with the self-built apks 15:18:55 (according to the report, but I haven't checked) 15:19:05 okay, aguestuser can verify this affects all apks, and we can make progress on that point 15:20:28 is a potential fix for this likely to interact at all with the rebase to 99, or is the problem more likely to be in the later packaging stages 15:20:40 (it sounds like more the latter) 15:20:43 sysrqb: okay, so i was just able to install a signed release apk 15:20:45 richard: yeah, unrelated 15:20:52 for last alpha release 15:20:55 neat 15:21:06 yesneat 15:21:29 that explains why we haven't gotten complains about installation failing on newer Androids 15:22:08 sysrqb: cannot install unsigned (qa) apks 15:22:31 1adb: failed to install tor-browser-11.5a7-android-x86-multi-qa.apk: Failure [-124: Failed parse during installPackageLI: Targeting R+ (version 30 and above) requires the resources.arsc of installed APKs to be stored uncompressed and aligned on a 4-byte boundary] 15:22:32 okay, so PieroV's question seems correct 15:22:40 aguestuser, I believe Electrum's Android build scripts sign with a test key when building a test APK, rather than leaving unsigned. 15:22:49 Maybe this is why? 15:22:56 we are doing something during package signing that corrrects this 15:23:04 also we sign with a test key 15:23:20 ok 15:23:40 aguestuser and I can experiement with this and find the solution 15:23:44 it seems the user was able to fix it with zipalign 15:23:52 it shouldn't be too difficult now that we know the signed releases work 15:24:01 boklm: also interesting 15:24:13 http://eweiibe6tdjsdprb4px6rqrzzcsi22m4koia44kc5pcjr7nec2rlxyad.onion/tpo/applications/tor-browser-build/-/issues/40463#note_2788931 15:24:42 ok, so it sounds like we have some avenues to explore here 15:24:53 yep 15:25:14 linked the 2 issues 15:25:20 (just now) 15:25:26 it seems to me this rates lower in priority than getting android rebased to latest and all of that fun stuff 15:25:45 yes! 15:25:55 but if it's one of those things that can be worked on semi-simultaneously, then go for it 15:26:09 (I have a q also on that, but I think that boklm comes first with the nightly emails) 15:26:14 so highest of the low priority issues :p 15:26:37 ok, boklm you're up 15:27:09 ok, so does anyone wants to receive emails for nightly build and/or nightly tests emails? (a daily email saying if builds were succesful, and if tests were sucessful) 15:27:24 sure! 15:27:31 I think i used to be signed up, but haven't gotten them recently 15:27:39 or my email filters are too agressive... 15:27:54 I'd like to sign up as well 15:28:53 ok, so I will add you all 3 15:28:58 thanks 15:29:01 thanks! 15:29:33 ok and finally 15:29:56 it looks like our 11.0.9 release happened over the weekend 15:30:15 and 11.5a8 should be coming along soon once signing is complete 15:30:28 which i think means we have a week of rest when it comes to builds and releases 15:30:46 except TBA! 15:30:50 ;) 15:30:54 gah ffs yes 15:31:09 11.5a9 scheduled for friday? 15:31:17 or is the calendar out of date? 15:31:25 yup friday 15:31:42 ok great 15:31:52 if PieroV gets unblocked on GV and testbuilds go well we *could* in theory ship mid-week 15:31:54 but... 15:32:03 goal with this release is to fix crashing error 15:32:17 which is in the *extreme* complexity/uncertainty bucket 15:32:34 boklm: should I plan on pushing the blog/website updates tomorow'ish? 15:32:38 I've finished the MR on Friday, and this morning I reviewed it... so I'm quite sure it is okay... But I can't build it 15:32:40 so... that seems to be the main thing that will influence when the release goes out (depending on whether we want to hold the alpha release for fixing it?) 15:32:46 (which i think we do?) 15:33:12 aguestuser: fix'd the crashing error by rebasing to to latest right? 15:33:13 PieroV: sorry typed over you! 15:33:21 or did something change over the weekend? 15:33:25 richard: we are *trying* to fix the crashing error that way 15:33:30 ah ok 15:33:32 richard: we have no idea whether it will succeed 15:33:34 god speed 15:33:43 as the segfault is more or less 100% blackbox ATM 15:33:51 richard: yes, I think signing/upload will be finished sometime tomorrow 15:33:54 mmhm ok that's what I thought :) 15:34:01 hope is that at v99 it is either (1) gone magically or (2) easier to ask moz engineers for help 15:34:03 (I'd like to understand what caused the sigsegv anyway) 15:35:01 PieroV: did you want to ask about GV stuff? (sorry i just took us on some tangents!) 15:35:04 boklm: ok great, it seems like mechanizations are happening in th ebackground getting me access to the signing machine, so we should be able to trade off in the relatively near future on signing duties 15:36:00 aguestuser: yep, I have some nasty cbindgen errors while trying to build GV with mach (so without the additional complications of getting the dependencies first and similar amenities) 15:36:02 https://share.riseup.net/#EvYIF3J1aeUMbpfHgevosg 15:36:50 richard: I think maybe you want to try signing an alpha release first (as it may take some time to do it the first time, to avoid delaying the stable release) 15:37:15 alright let's tentatively plan on my signing the next alpha 15:37:27 PieroV, aguestuser: what is GV in his context? 15:37:31 in particular this `Conflicting name for constant ...` (on `wgpu-hal`, which is a third-party project) 15:37:37 richard: "geckoview" sorry! 15:37:38 geckoview 15:37:45 ah of course 15:38:13 wrong rust compiler version? 15:38:16 vOv 15:38:24 I've already updated to 1.59.0 15:38:36 That is what we'll use for `tor-browser-build` 15:39:02 `rustc --version` is `rustc 1.59.0 (9d1b2106e 2022-02-23)` 15:39:18 hello I am jan jan from Poland, currently mounting a project, has anyone experience or can refer me to lawyers who worked on EU regulations and possibly on the new EU regulations about dual use research 15:39:19 And I've also updated cbdindgen 15:39:53 JanJan: maybe try #tor if this is tor related? 15:39:57 otherwise this is a meeting 15:40:49 yes let's meet! (good luck JanJan!) 15:41:33 PieroV: you were saying? ... 15:41:37 I've also tried `./mach vendor rust` 15:41:59 So, has any of you had similar errors? Otherwise I think I'll have to ask on Moz channels 15:42:11 Because I have this error also on gecko-dev/beta 15:42:12 i've never seen anything like it 15:42:41 first thought would be to just try building the crate outside of ./mach environment, but pinging mozdevs probablya better idea 15:42:50 PieroV: if you do wind up asking on Moz channels could you point me to that communication? (i'd like to follow along to prep for asking for help on the crash if needed!) 15:43:50 okay, so in case, which channel would be the best one to ask help for an error like this? Also, should I try to get their exact toolchains, first? 15:44:26 (and maybe try to build for desktop as well, I think this isn't an android-only issue) 15:44:46 PieroV: at which stage do you see this error? `mach build ...` ? 15:45:04 sysrqb: yep, mach build and within a few seconds 15:45:38 hrm. okay 15:46:28 i don't know why you;d see this, off the top of my head 15:46:38 "Skip wgpu-hal::ORDERED - (Unsupported expression. [...]" 15:46:50 leads me to think it is due to using an older rust version 15:47:02 but you already said that isn't the case 15:47:14 I haven't tried with nightly - but we couldn't use nightly anyway 15:47:35 yeah, that's something else wrong 15:47:38 there's 15:47:53 Then I also have some errors on servo 15:48:00 ERROR: Parsing crate `style`:`/home/piero/Tor/gv2/servo/components/style/stylesheets/page_rule.rs`: 15:48:05 Error("expected identifier or integer") 15:48:33 and I've just tried with the mozconfig we use for desktop, without the TB options, and I still get the error, so it isn't an Android-related thing either 15:49:43 did you already try clobbering the objdir from older builds? 15:49:47 boklm: thanks for merging my mr (assuming this was you) :) 15:49:50 or did you use a new objdir for 99? 15:50:09 I created a new one, because I wanted to keep v96 objs in case we wanted to do some other tests 15:50:15 GeKo: yes, that was me :) 15:50:25 PieroV: okay, (good), hrm 15:50:31 interesting problem. 15:50:41 hmm 15:51:00 and notice that rustc -Z parse-only /home/piero/Tor/gv2/servo/components/style/stylesheets/page_rule.rs works only on nightly... 15:51:11 in my experience moving the obj dir hasn't always worked in terms of creating a fresh build :/ 15:51:33 richard: no, I moved entirely the geckoview directory 15:51:50 mkdir gv2; cd gv2; cp -R ../geckoview/.git ./; git checkout -- . 15:51:57 oh wow ok 15:52:44 well i'm out of ideas 15:52:54 does anyone have anything else, or shall we wrap this up? 15:52:54 PieroV: i don't know if this will make a difference, but you could try going through `mach bootrap` again 15:53:20 sysrqb: I don't know if mach bootstrap ever worked for me :) 15:53:27 i don't have any other ideas right now, after that 15:53:35 ah, hrm 15:53:37 E.g., I don't have sudo on my PC 15:53:41 boklm, anything needed from me regarding ARM/POWER? 15:53:55 okay 15:54:16 Well, I'll come up with something (e.g., trying in a container that is more mozilla-standard) 15:54:23 yeah 15:54:28 thanks for the help in the meantime :) 15:55:51 Jeremy_Rand_Talos_: I still need to do the rebase/continue the review, hopefuly this week (sorry for taking time to do it) 15:56:30 boklm, ok, no worries 15:58:09 alright then I'm going to call it there 15:58:16 have a good week everyone! 15:58:19 #endmeeting