Skip to content

Commit 32c5dba

Browse files
committed
Add extra column to record the 'real' application name for proprietary applications
1 parent 5a8d340 commit 32c5dba

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

etl/js/config/supremm/dataset_maps/pcp.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,21 @@ module.exports = function(config) {
195195
};
196196
}
197197
},
198+
real_application: {
199+
formula: function (job) {
200+
var app = getProcInfo(job);
201+
if (app) {
202+
return {
203+
value: app.realname,
204+
error: 0
205+
};
206+
}
207+
return {
208+
value: null,
209+
error: this.metricErrors.codes.metricMissingUnknownReason.value
210+
};
211+
}
212+
},
198213
"exit_status": {
199214
formula: function(job) {
200215
var exit = this.ref(job, "acct.exit_status");

etl/js/config/supremm/etl.schema.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,16 @@ module.exports = {
343343
comments: "The name of the application that ran",
344344
per: "job",
345345
},
346+
real_application: {
347+
unit: null,
348+
type: 'string',
349+
dtype: 'accounting',
350+
group: 'Executable',
351+
nullable: false,
352+
def: 'NA',
353+
comments: 'The actual name of the application that ran.',
354+
per: 'job'
355+
},
346356
exit_status: {
347357
unit: null,
348358
type: "string",

tests/integration_tests/scripts/validate.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ checkForColumn netdir_util_write
5151
checkForColumn gpus
5252
checkForColumn gpu_time
5353
checkForColumn gpu_usage
54+
checkForColumn real_application
5455

5556
# Check that the catastrophe buckets table has the extra column
5657
if [ -z "$(echo "show columns from modw_supremm.catastrophe_buckets LIKE 'h_description'" | mysql -N modw_supremm)" ];

0 commit comments

Comments
 (0)