question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stub installer to first run conversion

See original GitHub issue

Description

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, and installer-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, and installer-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, and installer-run ping to the update server
  • Verify that all 3 pings include ref=XXXYYY, where XXXYYY is a whitelisted referral code

CC @aekeus

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
btlechowskicommented, Jan 11, 2019

Big thanks to @emerick for helping out with the setup!

Fiddler Setup

In Fiddler go Tools -> Options -> HTTPS Check Decrypt 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

cd C:\Windows\system32
netsh winhttp set proxy 127.0.0.1:8888 "<-loopback>"

On Windows 7 x64, Stub Installer 64 bit; On Windows 7 x86, Stub Installer 32 bit:

In cmd.exe with administrative privileges, run

cd C:\Windows\system32
netsh winhttp set proxy 127.0.0.1:8888 "<-loopback>"

On Windows 7 x64, Stub Installer 32 bit:

In cmd.exe with administrative privileges, run

cd c:\Windows\SysWOW64
netsh winhttp set proxy 127.0.0.1:8888 "<-loopback>"

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 preproduction

This is how it should look when everything is fine: fiddler_stub

Notes:

  • There are two types of stub installers(silent: BraveBrowserSilentSetup and regular BraveBrowserSetup). When it comes to pings, both should behave the same according to @emerick
  • Currently the stub installer downloads 0.58.18 version of brave, but this doesn’t matter because all the pings are done by stub installer and helper process(braveupdate.exe). Info verified by @emerick .
  • Clean install for silent installer: Uninstall Brave though Control Panel Delete Download and Install from [user]\AppData\Local\BraveSoftware\Update\
  • Clean install for regular installer: Uninstall Brave though Control Panel Delete Download and Install from c:\Program Files (x86)\BraveSoftware\Update\
0reactions
kjozwiakcommented, Jan 11, 2019

Thanks for gathering all the info and going through this issue @btlechowski 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found