Stub installer to first run conversion
See original GitHub issueDescription
We currently have stub installer download vs first run mismatch. This issue is to investigate how to improve that with a ping for stub installer successfully run, base installer downloaded, and installer run.
Test Plan
Tests require running a packet sniffer like Fiddler or coordinating with @aekeus to view server logs. You can set the BRAVE_UPDATE_SERVER
environment variable to point to the staging server for testing purposes.
Testing with No Referral Code
- Download a stub installer with no referral code
- Run the installer to completion
- Verify that we successfully sent a
startup
,download-complete
, andinstaller-run
ping to the update server - Verify that all 3 pings include
ref=none
Testing with Unwhitelisted Referral Code
Referral code whitelist is viewable here: https://github.com/brave/omaha/pull/19/files#diff-ce3476268c7af8bc284a899b3c716e29R187
- Download a stub installer with a referral code not appearing on our referral code whitelist
- Run the installer to completion
- Verify that we successfully sent a
startup
,download-complete
, andinstaller-run
ping to the update server - Verify that all 3 pings include
ref=none
Testing with Whitelisted Referral Code
- Download a stub installer with a referral code appearing on our referral code whitelist
- Run the installer to completion
- Verify that we successfully sent a
startup
,download-complete
, andinstaller-run
ping to the update server - Verify that all 3 pings include
ref=XXXYYY
, whereXXXYYY
is a whitelisted referral code
CC @aekeus
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Stubbing External Services in Rails
In the #setup method, we use Webmock to stub the request. This means that every time the Converter#convert! method is called and it...
Read more >How to Make a Bootable MacOS Mojave Installer Drive
Connect the MacOS Mojave installer USB drive to the Mac you want to boot it from · Reboot (or start up) the Mac...
Read more >rpcgen Tutorial (ONC+ Developer's Guide)
Converting Local Procedures to Remote Procedures. Assume that an application runs on a single computer and you want to convert it to run...
Read more >Creating and installing a Symantec Linux Agent ... - TechDocs
Create, download, and install a redistributable Linux installation package that contains the files necessary to install the Symantec Linux Agent ...
Read more >Installation Guide :: NVIDIA Deep Learning TensorRT ...
Please check your CUDA installation: ... If the preceding Python commands worked, then you should now be able to run any of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Big thanks to @emerick for helping out with the setup!
Fiddler Setup
In Fiddler go
Tools
->Options
->HTTPS
CheckDecrypt HTTPS traffic
and install all the certificates.Configuring WinHTTP’s Proxy
On Windows 8/10 x86 x64, Stub Installer 32 and 64 bit:
In cmd.exe with administrative privileges, run
On Windows 7 x64, Stub Installer 64 bit; On Windows 7 x86, Stub Installer 32 bit:
In cmd.exe with administrative privileges, run
On Windows 7 x64, Stub Installer 32 bit:
In cmd.exe with administrative privileges, run
Important: The server code is not on production yet, it will be 11-01-2019. So all the pings will have 404. Use env var:
BRAVE_UPDATE_SERVER=laptop-updates-pre.brave.com
to change server to preproductionThis is how it should look when everything is fine:
Notes:
BraveBrowserSilentSetup
and regularBraveBrowserSetup
). When it comes to pings, both should behave the same according to @emerickControl Panel
DeleteDownload
andInstall
from[user]\AppData\Local\BraveSoftware\Update\
Control Panel
DeleteDownload
andInstall
fromc:\Program Files (x86)\BraveSoftware\Update\
Thanks for gathering all the info and going through this issue @btlechowski 👍