summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-10-08 14:25:13 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-10-08 14:25:13 -0700
commit109a45c2261b9778b48ba170b6df4da90749cfce (patch)
tree22bacfb10d9c26c1b300a93ec52c7d8eb7d3b5fa
parent369468f3619a93136f1ba2490b5308930f3c4ee2 (diff)
downloadqtlocation-mapboxgl-109a45c2261b9778b48ba170b6df4da90749cfce.tar.gz
[ios] more debugging
-rwxr-xr-xplatform/ios/scripts/metrics.sh2
-rwxr-xr-xscripts/check_binary_size.js2
-rwxr-xr-xscripts/publish_binary_size.js68
3 files changed, 36 insertions, 36 deletions
diff --git a/platform/ios/scripts/metrics.sh b/platform/ios/scripts/metrics.sh
index 5839fd002c..4836e0ff16 100755
--- a/platform/ios/scripts/metrics.sh
+++ b/platform/ios/scripts/metrics.sh
@@ -21,6 +21,6 @@ scripts/check_binary_size.js "build/ios/pkg/dynamic/Mapbox-stripped" "iO
# if [[ $CIRCLE_BRANCH == master ]]; then
# # Build source data for http://mapbox.github.io/mapbox-gl-native/metrics/binary-size/
# # and log binary sizes to metrics warehouse
-# scripts/publish_binary_size.js
+ scripts/publish_binary_size.js
# fi
diff --git a/scripts/check_binary_size.js b/scripts/check_binary_size.js
index 6483fcfb04..b26796b021 100755
--- a/scripts/check_binary_size.js
+++ b/scripts/check_binary_size.js
@@ -47,7 +47,7 @@ function getPriorSize() {
return github.checks.listForRef({
owner: 'mapbox',
repo: 'mapbox-gl-native',
- ref: 'master'
+ ref: mergeBase
}).then(({data}) => {
const run = data.check_runs.find(run => run.name === name);
if (!run) {
diff --git a/scripts/publish_binary_size.js b/scripts/publish_binary_size.js
index ee4c849223..30bc54fff6 100755
--- a/scripts/publish_binary_size.js
+++ b/scripts/publish_binary_size.js
@@ -140,39 +140,39 @@ function query(after) {
});
}
-github.apps.createInstallationToken({installation_id: SIZE_CHECK_APP_INSTALLATION_ID})
- .then(({data}) => {
- github.authenticate({type: 'token', token: data.token});
-
- return query().then(function() {
- // Uploads to data source used by
- // http://mapbox.github.io/mapbox-gl-native/metrics/binary-size/
- var firstPromise = new AWS.S3({region: 'us-east-1'}).putObject({
- Body: zlib.gzipSync(JSON.stringify(rows.reverse())),
- Bucket: 'mapbox',
- Key: 'mapbox-gl-native/metrics/binary-size/data.json',
- ACL: 'public-read',
- CacheControl: 'max-age=300',
- ContentEncoding: 'gzip',
- ContentType: 'application/json'
- }).promise();
- // Uploads to data source used by Mapbox internal metrics dashboards
- var secondPromise = new AWS.S3({region: 'us-east-1'}).putObject({
- Body: zlib.gzipSync(sizeCheckInfo.join('\n')),
- Bucket: 'mapbox-loading-dock',
- Key: `raw/mobile.binarysize/${date.substring(0,10)}/mapbox-maps-ios-android-${process.env['CIRCLE_SHA1']}.json.gz`,
- CacheControl: 'max-age=300',
- ContentEncoding: 'gzip',
- ContentType: 'application/json'
- }).promise();
-
- return Promise.all([firstPromise, secondPromise]).then(data => {
- return console.log("Successfully uploaded all binary size metrics to S3");
- }).catch(err => {
- console.log("Error uploading binary size metrics to S3 " + err.message);
- return err;
- });
- });
-});
+// github.apps.createInstallationToken({installation_id: SIZE_CHECK_APP_INSTALLATION_ID})
+// .then(({data}) => {
+// github.authenticate({type: 'token', token: data.token});
+//
+// return query().then(function() {
+// // Uploads to data source used by
+// // http://mapbox.github.io/mapbox-gl-native/metrics/binary-size/
+// // var firstPromise = new AWS.S3({region: 'us-east-1'}).putObject({
+// // Body: zlib.gzipSync(JSON.stringify(rows.reverse())),
+// // Bucket: 'mapbox',
+// // Key: 'mapbox-gl-native/metrics/binary-size/data.json',
+// // ACL: 'public-read',
+// // CacheControl: 'max-age=300',
+// // ContentEncoding: 'gzip',
+// // ContentType: 'application/json'
+// // }).promise();
+// // // Uploads to data source used by Mapbox internal metrics dashboards
+// // var secondPromise = new AWS.S3({region: 'us-east-1'}).putObject({
+// // Body: zlib.gzipSync(sizeCheckInfo.join('\n')),
+// // Bucket: 'mapbox-loading-dock',
+// // Key: `raw/mobile.binarysize/${date.substring(0,10)}/mapbox-maps-ios-android-${process.env['CIRCLE_SHA1']}.json.gz`,
+// // CacheControl: 'max-age=300',
+// // ContentEncoding: 'gzip',
+// // ContentType: 'application/json'
+// // }).promise();
+// //
+// // return Promise.all([firstPromise, secondPromise]).then(data => {
+// // return console.log("Successfully uploaded all binary size metrics to S3");
+// // }).catch(err => {
+// // console.log("Error uploading binary size metrics to S3 " + err.message);
+// // return err;
+// // });
+// });
+// });
\ No newline at end of file