nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: iopipe/iopipe-js-core
Pull request #211 (2018-01-26 15:54:35)

Schema update
Add vendor and vm keys relevant for java


Patch:
diff --git a/src/config/util.js b/src/config/util.js
index 87564a4..79bd7eb 100644
--- a/src/config/util.js
+++ b/src/config/util.js
@@ -39,10 +39,9 @@ function requireFromString(src, args) {
     if (args && Array.isArray(args)) return mod.apply(null, args);
 
     if (typeof mod === 'function') return mod();
-
     return mod;
   } catch (err) {
-    console.warn('Failed to import ${src}');
+    void 0; // noop
   }
 
   return undefined;
diff --git a/src/schema.json b/src/schema.json
index c83454d..abf9b9c 100644
--- a/src/schema.json
+++ b/src/schema.json
@@ -30,7 +30,10 @@
     },
     "runtime": {
       "name": "s",
-      "version": "s"
+      "version": "s",
+      "vendor": "s",
+      "vmVersion": "s",
+      "vmVendor": "s"
     },
     "nodejs": {
       "version": "s",


Test patch:
diff --git a/src/report.test.js b/src/report.test.js
index 9069983..5b206f7 100644
--- a/src/report.test.js
+++ b/src/report.test.js
@@ -42,6 +42,9 @@ describe('Report creation', () => {
         'memory.rssMiB',
         'memory.totalMiB',
         'memory.rssTotalPercentage',
+        'environment.runtime.vendor',
+        'environment.runtime.vmVersion',
+        'environment.runtime.vmVendor',
         'environment.python.version',
         'errors.stackHash',
         'errors.count',
Repository: iopipe/iopipe-js-core
Pull request #249 (2018-03-22 17:42:19)

Add label support to schema
Add "labels" to schema


Patch:
diff --git a/src/schema.json b/src/schema.json
index 1e8c08b..b49ac3d 100644
--- a/src/schema.json
+++ b/src/schema.json
@@ -103,6 +103,7 @@
       "n": "n"
     }
   ],
+  "labels": "s",
   "performanceEntries": [
     {
       "name": "s",


Test patch:
diff --git a/src/report.test.js b/src/report.test.js
index 41fd239..d80e3fa 100644
--- a/src/report.test.js
+++ b/src/report.test.js
@@ -57,6 +57,7 @@ describe('Report creation', () => {
         'environment.python.version',
         'errors.stackHash',
         'errors.count',
+        'labels',
         'performanceEntries.0.name',
         'performanceEntries.0.startTime',
         'performanceEntries.0.duration',
Repository: iopipe/iopipe-js-core
Pull request #254 (2018-04-06 21:51:13)

Update labels schema
Labels are an array


Patch:
diff --git a/src/schema.json b/src/schema.json
index b49ac3d..ec0230e 100644
--- a/src/schema.json
+++ b/src/schema.json
@@ -103,7 +103,7 @@
       "n": "n"
     }
   ],
-  "labels": "s",
+  "labels": ["s"],
   "performanceEntries": [
     {
       "name": "s",


Test patch:
diff --git a/src/report.test.js b/src/report.test.js
index 41fd239..5116977 100644
--- a/src/report.test.js
+++ b/src/report.test.js
@@ -32,6 +32,7 @@ describe('Report creation', () => {
 
   test('creates a report that matches the schema', async done => {
     const r = new Report({
+      labels: ['a-label'],
       metrics: [{ name: 'foo-metric', s: 'wow-string', n: 99 }]
     });
     await r.prepare(new Error('Holy smokes!'));
Repository: iopipe/iopipe-js-core
Pull request #282 (2018-07-19 17:25:27)

feat(schema): add httpTraceEntries

coreylight: @pselle can you review?
Data should look like this for alignment:
https://github.com/iopipe/switchboard/blob/master/elasticsearch-write/__snapshots__/index.test.js.snap#L11

Patch:
diff --git a/src/schema.json b/src/schema.json
index 5c8dd02..50177b4 100644
--- a/src/schema.json
+++ b/src/schema.json
@@ -126,5 +126,49 @@
       "enabled": "b",
       "uploads": ["s"]
     }
+  ],
+  "httpTraceEntries": [
+    {
+      "startTime": "n",
+      "name": "s",
+      "duration": "n",
+      "timestamp": "n",
+      "type": "s",
+      "request": {
+        "hash": "s",
+        "hostname": "s",
+        "method": "s",
+        "path": "s",
+        "pathname": "s",
+        "port": "n",
+        "protocol": "s",
+        "query": "s",
+        "url": "s",
+        "headers": [
+          {
+            "key": "s",
+            "string": "s"
+          },
+          {
+            "key": "s",
+            "string": "s"
+          }
+        ]
+      },
+      "response": {
+        "headers": [
+          {
+            "key": "s",
+            "string": "s"
+          },
+          {
+            "key": "s",
+            "number": "n"
+          }
+        ],
+        "statusCode": "n",
+        "statusMessage": "s"
+      }
+    }
   ]
 }


Test patch:
diff --git a/src/report.test.js b/src/report.test.js
index e3dd6ba..3bd3f84 100644
--- a/src/report.test.js
+++ b/src/report.test.js
@@ -70,7 +70,31 @@ describe('Report creation', () => {
         'plugins.0.version',
         'plugins.0.homepage',
         'plugins.0.enabled',
-        'plugins.0.uploads.0'
+        'plugins.0.uploads.0',
+        'httpTraceEntries.0.startTime',
+        'httpTraceEntries.0.name',
+        'httpTraceEntries.0.duration',
+        'httpTraceEntries.0.timestamp',
+        'httpTraceEntries.0.type',
+        'httpTraceEntries.0.request.hash',
+        'httpTraceEntries.0.request.hostname',
+        'httpTraceEntries.0.request.method',
+        'httpTraceEntries.0.request.path',
+        'httpTraceEntries.0.request.pathname',
+        'httpTraceEntries.0.request.port',
+        'httpTraceEntries.0.request.protocol',
+        'httpTraceEntries.0.request.query',
+        'httpTraceEntries.0.request.url',
+        'httpTraceEntries.0.request.headers.0.key',
+        'httpTraceEntries.0.request.headers.0.string',
+        'httpTraceEntries.0.request.headers.1.key',
+        'httpTraceEntries.0.request.headers.1.string',
+        'httpTraceEntries.0.response.headers.0.key',
+        'httpTraceEntries.0.response.headers.0.string',
+        'httpTraceEntries.0.response.headers.1.key',
+        'httpTraceEntries.0.response.headers.1.number',
+        'httpTraceEntries.0.response.statusCode',
+        'httpTraceEntries.0.response.statusMessage'
       ];
 
       expect(_.isEqual(allowedMissingFields, diff)).toBe(true);