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

entire a-c not going through due to missing delays #7709

Closed
kjozwiak opened this issue Jan 13, 2020 · 10 comments · Fixed by brave/brave-core#4372
Closed

entire a-c not going through due to missing delays #7709

kjozwiak opened this issue Jan 13, 2020 · 10 comments · Fixed by brave/brave-core#4372

Comments

@kjozwiak
Copy link
Member

kjozwiak commented Jan 13, 2020

Description

The entire a-c amount not going through because it's being blocked server side due to missing delays.

Example:

  • received 2.5 BAT from ad grant
  • received 17.5 BAT from UGP grant
  • Total BAT: 20 BAT
  • a-c setup as Up to 15 BAT via brave://settings

Only 8 BAT went through rather than the 15 BAT

Created issues for iOS & Android:

Steps to Reproduce

Case #1

  • launch Brave using --enable-logging=stderr --rewards=staging=true,reconcile-interval=5
  • set Monthly Payment to 10 BAT (should be already selected as the default)
  • accept the UGP grant
  • spend ~1.5mins on https://duckduckgo.com/ and ensure it's being displayed in the a-c table
  • spend ~1.5mins on https://laurenwags.github.io/ and ensure it's being displayed in the a-c table
  • spend ~1.5mins on https://yachtcaptain23.github.io and ensure it's being displayed in the a-c table
  • ensure that a-c goes through and the correct amount is deducted from the total
  • ensured that the correct amount of BAT has been deducted from Brave

Case #2

Actual result:

Using UGP without any ad grants:

Screen Shot 2020-01-13 at 12 00 56 AM

Using UGP without any ad grants:

Screen Shot 2020-01-12 at 11 35 59 PM

Expected result:

If the user has the required funds, the entire a-c should go through.

Reproduces how often:

100% reproducible using the above STR.

Brave version (brave://version info)

Brave 1.5.27 Chromium: 79.0.3945.117 (Official Build) nightly (64-bit)
Revision 04f0a055010adab4484f7497fbfdbf312c307f1d-refs/branch-heads/3945@{#1019}
OS macOS Version 10.15.2 (Build 19C57
Brave 1.3.89 Chromium: 79.0.3945.117 (Official Build) beta (64-bit)
Revision 04f0a055010adab4484f7497fbfdbf312c307f1d-refs/branch-heads/3945@{#1019}
OS macOS Version 10.15.2 (Build 19C57)

Version/Channel Information:

  • Can you reproduce this issue with the current release? Couldn't reproduce with 1.2.42 CR: 79.0.3945.117
  • Can you reproduce this issue with the beta channel? Yes
  • Can you reproduce this issue with the dev channel? Yes
  • Can you reproduce this issue with the nightly channel? Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? N/A
  • Does the issue resolve itself when disabling Brave Rewards? N/A
  • Is the issue reproducible on the latest version of Chrome? N/A

Miscellaneous Information:

CCing @brave/legacy_qa @evq @NejcZdovc @rebron @mandar-brave

@kjozwiak
Copy link
Member Author

Labeling as release/blocking for now till @evq and @NejcZdovc investigate.

@LaurenWags
Copy link
Member

LaurenWags commented Jan 13, 2020

This should also be checked in with a monthly tip (monthly contribution) - so have a monthly tip set up along with AC. So something like:

  • launch Brave using --enable-logging=stderr --rewards=staging=true,reconcile-interval=5
  • set Monthly Payment to 10 BAT (should be already selected as the default)
  • accept the UGP grant
  • set up a monthly tip for a site like 3zsistemi.si, confirm it is shown on Monthly Contributions panel on brave://rewards
  • spend ~1min on https://duckduckgo.com/ and ensure it's being displayed in the a-c table
  • spend ~1min on https://laurenwags.github.io/ and ensure it's being displayed in the a-c table
  • spend ~1min on https://yachtcaptain23.github.io and ensure it's being displayed in the a-c table
  • ensure monthly tip goes thru and correct amount is deducted from the total
  • ensure that a-c goes through and the correct amount is deducted from the total

@LaurenWags
Copy link
Member

@GeetaSarvadnya also ran into the following scenario, which sounds related to this issue and should be retested once this issue is resolved:

  1. Clean profile with 1.2.x, launch with staging parameters & quick reconcile
  2. Set up data for AC, but before AC occurs upgrade to 1.3.x
    --> After upgrade AC is not occurring but wallet balance is being reduced

@GeetaSarvadnya please update this scenario with any additional relevant details so we can retest once this issue is resolved 👍

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Jan 14, 2020

AC and monthly Tip values are not reflected in Panel/Summary/NTP widget after the auto contribution

Case 1:

  1. Clean profile 1.2.39 - launch brave with staging flag and with reconcile interval
  2. Claim UGP grants
  3. Set monthly Tip for https://duckduckgo.com/
  4. Send a one-time tip to https://duckduckgo.com/
  5. Before the auto contribution upgrade profile to 1.3.91
  6. Wait until auto contribution completes

Actual:

  • AC is going through and correct balance is getting deducted but it's not shown in panel or summary or NTP widget
  • Monthly tip is processing and the correct amount is deducted but the monthly tip isn't shown in panel or summary or NTP widget
  • There is no AC notification
  • AC table is getting cleared only after brave://rewards page reload

Case 2:

  1. Clean profile 0.71.104 launch brave with staging flag with short reconcile interval
  2. Claim UGP grants
  3. Set monthly Tip for https://duckduckgo.com/
  4. Send a one-time tip to https://duckduckgo.com/
  5. Trigger auto contribution and ensured AC amount is reflected in panel and summary
  6. Upgrade 1.3.91
  7. Add https://duckduckgo.com/ to auto contribution table
  8. Trigger auto contribution

Actual:

  • AC is going through and correct balance is getting deducted but it's not shown in panel or summary or NTP widget
  • Monthly tip is processing and the correct amount is deducted but the monthly tip isn't shown in panel or summary or NTP widget
  • There is no AC notification

@LaurenWags
Copy link
Member

reproduced #7709 (comment) on macOS

Brave 1.3.91 Chromium: 79.0.3945.117 (Official Build) beta (64-bit)
Revision 04f0a055010adab4484f7497fbfdbf312c307f1d-refs/branch-heads/3945@{#1019}
OS macOS Version 10.14.6 (Build 18G103)

@NejcZdovc will the fix for this issue also address @GeetaSarvadnya finding that the summary (panel and on brave://rewards) is not reflecting the Auto-Contribute and Monthly Contribution amounts? For example, in the below image, the AC and Monthly Contribution amounts were from 1.2.39. When I upgraded to 1.3.91 and AC occurred again, the AC and Monthly Contribution amounts should have increased (5--> 10 and 1--> 2), however they did not.

Please let us know if this should be logged separately.

cc @kjozwiak

@NejcZdovc
Copy link
Contributor

@LaurenWags if I understand correctly just UI is not updated, but everything else works as expected?

@NejcZdovc
Copy link
Contributor

could be this issue #7526?

@LaurenWags
Copy link
Member

I think so. will add comment on that issue as well. thanks @NejcZdovc !

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Jan 20, 2020

One-time tips are not shown in the Tips panel.

Case 1: #7608 (comment)

Case 2: Please note this case is intermittent but 80% is a reproducible rate

  1. Clean profile 1.3.94 - launch Brave using --enable-logging=stderr --rewards=staging=true
  2. Restore Ads grants
  3. Claim Ads grants
  4. Claim UGP grants
  5. Open https://duckduckgo.com/
  6. Send a one-time tip of 1 BAT to DDG
  7. One-time is not displayed under Tips panel, Tips panel is empty, reload brave://rewards multiple times didn't help

One-time tip issue

@LaurenWags
Copy link
Member

LaurenWags commented Feb 3, 2020

Verified passed with

Brave 1.3.108 Chromium: 79.0.3945.130 (Official Build) beta (64-bit)
Revision e22de67c28798d98833a7137c0e22876237fc40a-refs/branch-heads/3945@{#1047}
OS macOS Version 10.14.6 (Build 18G103)

7709-PR-TestPlan1

Test Plan 2:
7709-PR-TestPlan2-pt1
7709-PR-TestPlan2-pt2

  • Verified Case 1 from description:

7709-case1

  • Verified Case 2 from description:

7709-case2

  • Verified example from description:

7709-example case

Additional testing notes can be found here:

Verification passed on

Brave 1.3.109 Chromium: 79.0.3945.130 (Official Build) beta (64-bit)
Revision e22de67c28798d98833a7137c0e22876237fc40a-refs/branch-heads/3945@{#1047}
OS Windows 10 OS Version 1803 (Build 17134.1006)
  • Verified the test plan from
    Plan 1:
    image

Plan 2:
Logged #8041
image
image
image

Verification passed on

Brave 1.3.110 Chromium: 80.0.3987.78 (Official Build) (64-bit)
Revision cb5aa81cb0a3a2c674b93bc7ffb34a86cd3b4802-refs/branch-heads/3987@{#752}
OS Ubuntu 18.04 LTS

Test Plan 2:
image

Also verified test plan from the description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment