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

[7.17] Remove Agent Debug Info (#187126) #187805

Merged
merged 1 commit into from
Jul 9, 2024

Remove Agent Debug Info (#187126)

a29ce7a
Select commit
Loading
Failed to load commit list.
Merged

[7.17] Remove Agent Debug Info (#187126) #187805

Remove Agent Debug Info (#187126)
a29ce7a
Select commit
Loading
Failed to load commit list.
checks-reporter / Test Hardening succeeded Jul 8, 2024 in 7s

node scripts/test_hardening

Details

/opt/buildkite-agent/.kibana/node/20.13.1/bin/node test/harden/child_process.js
TAP version 13
# test setup ok
ok 1 should be strictly equal
# exec()
ok 2 should throw
# execFile()
ok 3 should throw
# fork()
ok 4 should throw
# spawn()
ok 5 should throw
# execFileSync()
ok 6 should throw
# execSync()
ok 7 should throw
# spawnSync()
ok 8 should throw
# exec(command)
ok 9 should be strictly equal
ok 10 should be strictly equal
# exec(command, callback)
ok 11 null
ok 12 should be strictly equal
ok 13 should be strictly equal
# exec(command, options)
ok 14 should be strictly equal
ok 15 should be strictly equal
# exec(command, options) - with custom env
ok 16 should be strictly equal
ok 17 should be strictly equal
# exec(command, options, callback)
ok 18 null
ok 19 should be strictly equal
ok 20 should be strictly equal
# exec(command, options, callback) - with custom env
ok 21 null
ok 22 should be strictly equal
ok 23 should be strictly equal
# exec(command, null)
ok 24 should be strictly equal
ok 25 should be strictly equal
# exec(command, null, callback)
ok 26 null
ok 27 should be strictly equal
ok 28 should be strictly equal
# exec(command, undefined)
ok 29 should be strictly equal
ok 30 should be strictly equal
# exec(command, undefined, callback)
ok 31 null
ok 32 should be strictly equal
ok 33 should be strictly equal
# execFile(file)
ok 34 should be strictly equal
ok 35 should be strictly equal
# execFile(file, args)
ok 36 should be strictly equal
ok 37 should be strictly equal
# execFile(file, callback)
ok 38 null
ok 39 should be strictly equal
ok 40 should be strictly equal
# execFile(file, options)
ok 41 should be strictly equal
ok 42 should be strictly equal
# execFile(file, options) - with custom env
ok 43 should be strictly equal
ok 44 should be strictly equal
# execFile(file, options, callback)
ok 45 null
ok 46 should be strictly equal
ok 47 should be strictly equal
# execFile(file, options, callback) - with custom env
ok 48 null
ok 49 should be strictly equal
ok 50 should be strictly equal
# execFile(file, args, callback)
ok 51 null
ok 52 should be strictly equal
ok 53 should be strictly equal
# execFile(file, args, options)
ok 54 should be strictly equal
ok 55 should be strictly equal
# execFile(file, args, options) - with custom env
ok 56 should be strictly equal
ok 57 should be strictly equal
# execFile(file, args, options, callback)
ok 58 null
ok 59 should be strictly equal
ok 60 should be strictly equal
# execFile(file, args, options, callback) - with custom env
ok 61 null
ok 62 should be strictly equal
ok 63 should be strictly equal
# execFile(file, null)
ok 64 should be strictly equal
ok 65 should be strictly equal
# execFile(file, null, null)
ok 66 should be strictly equal
ok 67 should be strictly equal
# execFile(file, null, callback)
ok 68 null
ok 69 should be strictly equal
ok 70 should be strictly equal
# execFile(file, null, null, callback)
ok 71 null
ok 72 should be strictly equal
ok 73 should be strictly equal
# execFile(file, null, options)
ok 74 should be strictly equal
ok 75 should be strictly equal
# execFile(file, undefined)
ok 76 should be strictly equal
ok 77 should be strictly equal
# execFile(file, undefined, undefined)
ok 78 should be strictly equal
ok 79 should be strictly equal
# execFile(file, undefined, callback)
ok 80 null
ok 81 should be strictly equal
ok 82 should be strictly equal
# execFile(file, undefined, undefined, callback)
ok 83 null
ok 84 should be strictly equal
ok 85 should be strictly equal
# execFile(file, undefined, options)
ok 86 should be strictly equal
ok 87 should be strictly equal
# fork(modulePath, options)
ok 88 should be strictly equal
ok 89 should be strictly equal
# fork(modulePath, options) - with custom env
ok 90 should be strictly equal
ok 91 should be strictly equal
# fork(modulePath, args, options)
ok 92 should be strictly equal
ok 93 should be strictly equal
# fork(modulePath, args, options) - with custom env
ok 94 should be strictly equal
ok 95 should be strictly equal
# fork(modulePath, null, options)
ok 96 should be strictly equal
ok 97 should be strictly equal
# fork(modulePath, undefined, options)
ok 98 should be strictly equal
ok 99 should be strictly equal
# spawn(command)
ok 100 should be strictly equal
ok 101 should be strictly equal
# spawn(command, args)
ok 102 should be strictly equal
ok 103 should be strictly equal
# spawn(command, options)
ok 104 should be strictly equal
ok 105 should be strictly equal
# spawn(command, options) - with custom env
ok 106 should be strictly equal
ok 107 should be strictly equal
# spawn(command, args, options)
ok 108 should be strictly equal
ok 109 should be strictly equal
# spawn(command, args, options) - with custom env
ok 110 should be strictly equal
ok 111 should be strictly equal
# spawn(command, options) - prevent object prototype pollution
ok 112 Prototype should be polluted with the object at index 2
ok 113 should be strictly equal
ok 114 should be strictly equal
# spawn(command, null)
ok 115 should be strictly equal
ok 116 should be strictly equal
# spawn(command, null, null)
ok 117 should be strictly equal
ok 118 should be strictly equal
# spawn(command, null, options)
ok 119 should be strictly equal
ok 120 should be strictly equal
# spawn(command, undefined)
ok 121 should be strictly equal
ok 122 should be strictly equal
# spawn(command, undefined, undefined)
ok 123 should be strictly equal
ok 124 should be strictly equal
# spawn(command, undefined, options)
ok 125 should be strictly equal
ok 126 should be strictly equal
# execFileSync(file)
ok 127 should be strictly equal
# execFileSync(file, args)
ok 128 should be strictly equal
# execFileSync(file, options)
ok 129 should be strictly equal
# execFileSync(file, options) - with custom env
ok 130 should be strictly equal
# execFileSync(file, args, options)
ok 131 should be strictly equal
# execFileSync(file, args, options) - with custom env
ok 132 should be strictly equal
# execFileSync(file, null)
ok 133 should be strictly equal
# execFileSync(file, null, null)
ok 134 should be strictly equal
# execFileSync(file, null, options)
ok 135 should be strictly equal
# execFileSync(file, undefined)
ok 136 should be strictly equal
# execFileSync(file, undefined, undefined)
ok 137 should be strictly equal
# execFileSync(file, undefined, options)
ok 138 should be strictly equal
# execSync(command)
ok 139 should be strictly equal
# execSync(command, options)
ok 140 should be strictly equal
# execSync(command, options) - with custom env
ok 141 should be strictly equal
# execSync(command, null)
ok 142 should be strictly equal
# execSync(command, undefined)
ok 143 should be strictly equal
# spawnSync(command)
ok 144 undefined
ok 145 should be strictly equal
ok 146 should be strictly equal
# spawnSync(command, args)
ok 147 undefined
ok 148 should be strictly equal
ok 149 should be strictly equal
# spawnSync(command, options)
ok 150 undefined
ok 151 should be strictly equal
ok 152 should be strictly equal
# spawnSync(command, options) - with custom env
ok 153 undefined
ok 154 should be strictly equal
ok 155 should be strictly equal
# spawnSync(command, args, options)
ok 156 undefined
ok 157 should be strictly equal
ok 158 should be strictly equal
# spawnSync(command, args, options) - with custom env
ok 159 undefined
ok 160 should be strictly equal
ok 161 should be strictly equal
# spawnSync(command, null)
ok 162 undefined
ok 163 should be strictly equal
ok 164 should be strictly equal
# spawnSync(command, null, null)
ok 165 undefined
ok 166 should be strictly equal
ok 167 should be strictly equal
# spawnSync(command, null, options)
ok 168 undefined
ok 169 should be strictly equal
ok 170 should be strictly equal
# spawnSync(command, undefined)
ok 171 undefined
ok 172 should be strictly equal
ok 173 should be strictly equal
# spawnSync(command, undefined, undefined)
ok 174 undefined
ok 175 should be strictly equal
ok 176 should be strictly equal
# spawnSync(command, undefined, options)
ok 177 undefined
ok 178 should be strictly equal
ok 179 should be strictly equal

1..179
# tests 179
# pass  179

# ok

/opt/buildkite-agent/.kibana/node/20.13.1/bin/node test/harden/lodash_template.js
TAP version 13
# test setup ok
ok 1 should be strictly equal
# _.template('<%= foo %>')
ok 2 should be strictly equal
ok 3 should be strictly equal
# _.template('<%= foo %>', {})
ok 4 should be strictly equal
ok 5 should be strictly equal
# _.template('<%= data.foo %>', { variable: 'data' })
ok 6 should be strictly equal
ok 7 should be strictly equal
# _.template('<%= foo %>', { sourceURL: '/foo/bar' })
ok 8 should be strictly equal
ok 9 should be strictly equal
# _.template('<%= foo %>', { sourceURL: '\u2028\u2029\nglobal.whoops=true' })
ok 10 should be strictly equal
ok 11 should be strictly equal
# _.template used as an iteratee call(
ok 12 should be strictly equal
ok 13 should be strictly equal
ok 14 should be strictly equal
# _.template('<%= foo %>')
ok 15 should be strictly equal
ok 16 should be strictly equal
# _.template('<%= foo %>', {})
ok 17 should be strictly equal
ok 18 should be strictly equal
# _.template('<%= data.foo %>', { variable: 'data' })
ok 19 should be strictly equal
ok 20 should be strictly equal
# _.template('<%= foo %>', { sourceURL: '/foo/bar' })
ok 21 should be strictly equal
ok 22 should be strictly equal
# _.template('<%= foo %>', { sourceURL: '\u2028\u2029\nglobal.whoops=true' })
ok 23 should be strictly equal
ok 24 should be strictly equal
# _.template used as an iteratee call(
ok 25 should be strictly equal
ok 26 should be strictly equal
ok 27 should be strictly equal
# fp.template('<%= foo %>')
ok 28 should be strictly equal
ok 29 should be strictly equal
# fp.template('<%= foo %>', {})
ok 30 should be strictly equal
ok 31 should be strictly equal
# fp.template('<%= data.foo %>', { variable: 'data' })
ok 32 should be strictly equal
ok 33 should be strictly equal
# fp.template('<%= foo %>', { sourceURL: '/foo/bar' })
ok 34 The input matched the regular expression /^eval at <anonymous> /. Input: 'eval at <anonymous> (/opt/local-ssd/buildkite/builds/bk-agent-prod-gcp-1720477056196365155/elastic/kibana-pull-request/kibana/node_modules/lodash/lodash.js'
ok 35 The input did not match the regular expression /\/foo\/bar/. Input: 'eval at <anonymous> (/opt/local-ssd/buildkite/builds/bk-agent-prod-gcp-1720477056196365155/elastic/kibana-pull-request/kibana/node_modules/lodash/lodash.js'
ok 36 should be strictly equal
# fp.template('<%= foo %>', { sourceURL: '\u2028\u2029\nglobal.whoops=true' })
ok 37 The input matched the regular expression /^eval at <anonymous> /. Input: 'eval at <anonymous> (/opt/local-ssd/buildkite/builds/bk-agent-prod-gcp-1720477056196365155/elastic/kibana-pull-request/kibana/node_modules/lodash/lodash.js'
ok 38 The input did not match the regular expression /\/foo\/bar/. Input: 'eval at <anonymous> (/opt/local-ssd/buildkite/builds/bk-agent-prod-gcp-1720477056196365155/elastic/kibana-pull-request/kibana/node_modules/lodash/lodash.js'
ok 39 should be strictly equal
# fp.template used as an iteratee call(
ok 40 should be strictly equal
ok 41 should be strictly equal
ok 42 should be strictly equal
# fp.template('<%= foo %>')
ok 43 should be strictly equal
ok 44 should be strictly equal
# fp.template('<%= foo %>', {})
ok 45 should be strictly equal
ok 46 should be strictly equal
# fp.template('<%= data.foo %>', { variable: 'data' })
ok 47 should be strictly equal
ok 48 should be strictly equal
# fp.template('<%= foo %>', { sourceURL: '/foo/bar' })
ok 49 The input matched the regular expression /^eval at <anonymous> /. Input: 'eval at <anonymous> (/opt/local-ssd/buildkite/builds/bk-agent-prod-gcp-1720477056196365155/elastic/kibana-pull-request/kibana/node_modules/lodash/lodash.js'
ok 50 The input did not match the regular expression /\/foo\/bar/. Input: 'eval at <anonymous> (/opt/local-ssd/buildkite/builds/bk-agent-prod-gcp-1720477056196365155/elastic/kibana-pull-request/kibana/node_modules/lodash/lodash.js'
ok 51 should be strictly equal
# fp.template('<%= foo %>', { sourceURL: '\u2028\u2029\nglobal.whoops=true' })
ok 52 The input matched the regular expression /^eval at <anonymous> /. Input: 'eval at <anonymous> (/opt/local-ssd/buildkite/builds/bk-agent-prod-gcp-1720477056196365155/elastic/kibana-pull-request/kibana/node_modules/lodash/lodash.js'
ok 53 The input did not match the regular expression /\/foo\/bar/. Input: 'eval at <anonymous> (/opt/local-ssd/buildkite/builds/bk-agent-prod-gcp-1720477056196365155/elastic/kibana-pull-request/kibana/node_modules/lodash/lodash.js'
ok 54 should be strictly equal
# fp.template used as an iteratee call(
ok 55 should be strictly equal
ok 56 should be strictly equal
ok 57 should be strictly equal

1..57
# tests 57
# pass  57

# ok