Skip to content

Instantly share code, notes, and snippets.

View srinidhiprabandham's full-sized avatar

srinidhiprabandham

View GitHub Profile
@srinidhiprabandham
srinidhiprabandham / target-stats.md
Last active January 25, 2018 12:55
Target Partial Payment - Stats

Problem statement.

Stats for Target Direct billing shows lower values than expected.

Maartje says :- "We saw that the billing for retro games with target was lower than expected. No real changes were made die target so far right? So it might be in their side"

Further on Maartje gave more examples on what the she ment by "Lower than expected" with the below examples.

So if we look at the two thursdays in the weeks before
@srinidhiprabandham
srinidhiprabandham / target-partial-payment.md
Last active January 11, 2018 11:57
Target Partial payment understanding.

Problem :- Target has some instances where there are contracts that are not able to process the partial payments thus impacting Stats in Orsedd.

Steps that I took to see what was wrong :-

  1. Check if we are getting the "PaymentStatus" notification from target. [This is coming along from Target side].
  2. Checked the difference b/w several notifications that has successfull Payment and those that had failed.

Taught that this was happening due to the fact that some of the failed payments did not have a call with status open

12-14 17:20:30.937 4584-4613/com.games_plaza D/Billing Manager: Starting new payment
12-14 17:20:30.937 4584-4613/com.games_plaza W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
12-14 17:20:30.941 4584-4613/com.games_plaza D/Payment 0: Changing to state: INITIAL
12-14 17:20:31.215 4584-4609/com.games_plaza D/EGL_emulation: eglMakeCurrent: 0xf0f05780: ver 2 0 (tinfo 0xf0f036e0)
12-14 17:20:31.419 1311-2295/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 73728
12-14 17:20:31.496 4584-4609/com.games_plaza D/EGL_emulation: eglMakeCurrent: 0xf0f05780: ver 2 0 (tinfo 0xf0f036e0)
12-14 17:20:31.637 4584-4586/com.games_plaza I/art: Do partial code cache collection, code=117KB, data=84KB
12-14 17:20:31.642 4584-4586/com.games_plaza I/art: After code cache collection, code=100KB, data=75KB
12-14 17:20:31.643 4584-4586/com.games_plaza I/art: Increasing code cache capacity to 512KB
12-14 17:20:31.861 131
12-13 13:34:52.265 5249-5279/com.games_plaza D/Billing Manager: Starting new payment
12-13 13:34:52.265 5249-5279/com.games_plaza W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
12-13 13:34:52.267 5249-5279/com.games_plaza D/Payment 0: Changing to state: INITIAL
12-13 13:34:52.355 5249-5273/com.games_plaza D/EGL_emulation: eglMakeCurrent: 0xe704b300: ver 2 0 (tinfo 0xf0c2a1b0)
12-13 13:34:52.475 1311-1359/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 73728
12-13 13:34:52.493 5249-5273/com.games_plaza D/EGL_emulation: eglMakeCurrent: 0xe704b300: ver 2 0 (tinfo 0xf0c2a1b0)
12-13 13:34:52.716 1311-1359/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 73728
12-13 13:34:52.837 1311-2034/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 73728
12-13 13:34:54.553 5249-5303/com.games_plaza I/GalConnection: connection.getResponseCode() 200
12-13 13:34:54.868 5249-530
package com.games_plaza;
import com.globalcharge.android.PaymentListener;
import com.globalcharge.android.BillingManager;
import com.globalcharge.android.products.Product;
import com.globalcharge.android.Environment;
import com.globalcharge.android.AbTestScreenType;
import android.support.v7.app.AppCompatActivity;
import android.content.pm.PackageManager;
package com.games_plaza;
import com.globalcharge.android.PaymentListener;
import com.globalcharge.android.BillingManager;
import com.globalcharge.android.products.Product;
import com.globalcharge.android.Environment;
import com.globalcharge.android.AbTestScreenType;
import android.support.v7.app.AppCompatActivity;
import android.content.pm.PackageManager;
package com.games_plaza;
import com.globalcharge.android.PaymentListener;
import com.globalcharge.android.BillingManager;
import com.globalcharge.android.products.Product;
import com.globalcharge.android.Environment;
import android.support.v7.app.AppCompatActivity;
import android.content.pm.PackageManager;
2-07 17:07:28.543 5440-5467/com.games_plaza D/Billing Manager: Starting new payment
12-07 17:07:28.543 5440-5467/com.games_plaza W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
12-07 17:07:28.544 5440-5467/com.games_plaza D/Payment 0: Changing to state: INITIAL
12-07 17:07:28.702 5440-5460/com.games_plaza D/EGL_emulation: eglMakeCurrent: 0xee4547e0: ver 2 0 (tinfo 0xee4529f0)
12-07 17:07:28.705 5440-5460/com.games_plaza D/EGL_emulation: eglMakeCurrent: 0xee4547e0: ver 2 0 (tinfo 0xee4529f0)
12-07 17:07:28.799 5440-5460/com.games_plaza D/EGL_emulation: eglMakeCurrent: 0xee4547e0: ver 2 0 (tinfo 0xee4529f0)
12-07 17:07:28.842 5440-5460/com.games_plaza V/RenderScript: 0xd6f26000 Launching thread(s), CPUs 2
12-07 17:07:28.860 5440-5460/com.games_plaza D/EGL_emulation: eglMakeCurrent: 0xee4547e0: ver 2 0 (tinfo 0xee4529f0)
12-07 17:07:31.665 5440-5487/com.games_plaza I/GalConnection: connection.getResponseCode() 2
/app $ cat /data//var/db/pkgin/pkg_install-err.log
---Nov 13 07:21:44: installing m4-1.4.17...
---Nov 13 07:21:44: installing flex-2.6.3nb1...
---Nov 13 07:21:44: installing db4-4.8.30...
---Nov 13 07:21:45: installing p5-Net-SSLeay-1.80...
---Nov 13 07:21:46: installing p5-Net-LibIDN-0.12nb8...
---Nov 13 07:21:46: installing p5-Mozilla-CA-20160104nb1...
---Nov 13 07:21:46: installing p5-Socket6-0.27nb1...
---Nov 13 07:21:46: installing p5-Net-IP-1.26nb4...
---Nov 13 07:21:46: installing p5-IO-Socket-INET6-2.72nb2...
$ nanobox build-runtime --debug system
Building runtime :
✓ Starting docker container
! Preparing environment for build
- Copying ssh keys into the build environment...
- Setting up directories and permissions...
- Cloning engine :
Cloning into 'engine'...
remote: Counting objects: 495, done.
remote: Total 495 (delta 0), reused 0 (delta 0), pack-reused 495