Skip to content

Commit 8807c5f

Browse files
authored
Merge branch 'master' into feature/fix-ncc
2 parents 3a5a12d + 45de1db commit 8807c5f

File tree

7 files changed

+53
-17
lines changed

7 files changed

+53
-17
lines changed

.ci/Jenkinsfile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ pipeline {
5353
"^test/instrumentation/modules/"
5454
]
5555
env.TAV_UPDATED = isGitRegionMatch(patterns: regexps)
56+
57+
// Skip all the stages except docs for PR's with asciidoc or md changes only
58+
env.ONLY_DOCS = isGitRegionMatch(patterns: [ '.*\\.(asciidoc|md)' ], shouldMatchAll: true)
5659
}
5760
}
5861
}
@@ -67,7 +70,10 @@ pipeline {
6770
}
6871
when {
6972
beforeAgent true
70-
expression { return params.tests_ci }
73+
allOf {
74+
expression { return env.ONLY_DOCS == "false" }
75+
expression { return params.tests_ci }
76+
}
7177
}
7278
steps {
7379
withGithubNotify(context: 'Test', tab: 'tests') {
@@ -120,6 +126,7 @@ pipeline {
120126
expression { return env.TAV_UPDATED != "false" }
121127
}
122128
expression { return params.tav_ci }
129+
expression { return env.ONLY_DOCS == "false" }
123130
}
124131
}
125132
steps {
@@ -157,6 +164,7 @@ pipeline {
157164
triggeredBy 'TimerTrigger'
158165
}
159166
expression { return params.test_edge_ci }
167+
expression { return env.ONLY_DOCS == "false" }
160168
}
161169
}
162170
parallel {
@@ -254,9 +262,12 @@ pipeline {
254262
agent none
255263
when {
256264
beforeAgent true
257-
anyOf {
258-
changeRequest()
259-
expression { return !params.Run_As_Master_Branch }
265+
allOf {
266+
expression { return env.ONLY_DOCS == "false" }
267+
anyOf {
268+
changeRequest()
269+
expression { return !params.Run_As_Master_Branch }
270+
}
260271
}
261272
}
262273
steps {
@@ -471,7 +482,7 @@ def generateStepForWindows(Map params = [:]){
471482
deleteDir()
472483
unstash 'source'
473484
dir(BASE_DIR) {
474-
installTools([ [tool: 'nodejs', version: "${version}" ] ])
485+
installTools([ [tool: 'nodejs-lts', version: "${version}" ] ])
475486
bat label: 'Tool versions', script: '''
476487
npm --version
477488
node --version

CHANGELOG.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ endif::[]
2424
[[release-notes-3.5.0]]
2525
==== 3.5.0 - 2020/3/9
2626
27-
* feat(error): get stack trace from Error-like objects {pull}1613)[#1613)]
28-
* fix: add logUncaughtExceptions conf option to TypeScript typings {pull}1668)[#1668)]
27+
* feat(error): get stack trace from Error-like objects {pull}1613[#1613]
28+
* fix: add logUncaughtExceptions conf option to TypeScript typings {pull}1668[#1668]
2929
3030
[[release-notes-3.4.0]]
3131
==== 3.4.0 - 2020/2/21

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Contributions are welcome,
5656
but we recommend that you take a moment and read our [contribution guide](CONTRIBUTING.md) first.
5757

5858
To see what data is being sent to the APM Server,
59-
use the environment variable `ELASTIC_APM_PAYLOAD_LOG_FILE` (or the config option `payloadLogFile`) to speicfy a log file,
59+
use the environment variable `ELASTIC_APM_PAYLOAD_LOG_FILE` (or the config option `payloadLogFile`) to specify a log file,
6060
e.g:
6161

6262
```

TESTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,29 @@ Run the benchmarks:
130130
```
131131
npm run bench
132132
```
133+
134+
## Jenkins
135+
136+
Below are some useful GitHub PR comments that will trigger Jenkins
137+
builds for the current PR (you need to be a project member for these to
138+
have any effect).
139+
140+
Run the regular test suite:
141+
142+
```
143+
jenkins run the tests please
144+
```
145+
146+
Run the lint tests only:
147+
148+
```
149+
jenkins run lint please
150+
```
151+
152+
Run TAV tests for one or more modules, where `<modules>` can be either a
153+
comma separated list of modules (e.g. `memcached,redis`) or the
154+
string literal `ALL` to test _all_ modules:
155+
156+
```
157+
jenkins run the module tests for <modules>
158+
```

docs/intro.asciidoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ You can then use the APM app in Kibana to gain insight into latency issues and e
3030
[[additional-components]]
3131
=== Additional Components
3232

33-
APM Agents work in conjunction with the {apm-server-ref-v}/index.html[APM Server],
34-
{ref}/index.html[Elasticsearch],
35-
and {kibana-ref}/index.html[Kibana].
36-
Please view the {apm-overview-ref-v}/index.html[APM Overview] for details on how these components work together.
33+
APM Agents work in conjunction with the {apm-server-ref-v}/index.html[APM Server], {ref}/index.html[Elasticsearch], and {kibana-ref}/index.html[Kibana].
34+
The {apm-overview-ref-v}/index.html[APM Overview] provides details on how these components work together,
35+
and provides a matrix outlining {apm-overview-ref-v}/agent-server-compatibility.html[Agent and Server compatibility].

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@
103103
"set-cookie-serde": "^1.0.0",
104104
"shallow-clone-shim": "^2.0.0",
105105
"sql-summary": "^1.0.1",
106-
"stackman": "^4.0.0",
106+
"stackman": "^4.0.1",
107107
"traceparent": "^1.0.0",
108108
"unicode-byte-truncate": "^1.0.0"
109109
},
110110
"devDependencies": {
111+
"@apidevtools/json-schema-ref-parser": "^8.0.0",
111112
"@babel/cli": "^7.8.4",
112113
"@babel/core": "^7.8.4",
113114
"@babel/preset-env": "^7.8.4",
@@ -119,7 +120,7 @@
119120
"@types/node": "^13.7.4",
120121
"apollo-server-express": "^2.10.1",
121122
"aws-sdk": "^2.622.0",
122-
"backport": "^4.9.0",
123+
"backport": "^5.1.2",
123124
"benchmark": "^2.1.4",
124125
"bluebird": "^3.7.2",
125126
"cassandra-driver": "^4.4.0",
@@ -145,7 +146,6 @@
145146
"ioredis": "^4.16.0",
146147
"is-my-json-valid": "^2.20.0",
147148
"jade": "^1.11.0",
148-
"json-schema-ref-parser": "^7.1.3",
149149
"knex": "^0.20.10",
150150
"koa": "^2.11.0",
151151
"koa-router": "^8.0.8",
@@ -170,7 +170,7 @@
170170
"restify-clients": "^2.6.9",
171171
"rimraf": "^3.0.2",
172172
"send": "^0.17.1",
173-
"standard": "^14.3.1",
173+
"standard": "^14.3.3",
174174
"tape": "^4.13.0",
175175
"tedious": "^8.0.1",
176176
"test-all-versions": "^4.1.1",

test/integration/api-schema/_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const tmpdir = require('os').tmpdir
66
const join = require('path').join
77

88
const validator = require('is-my-json-valid')
9-
const refParser = require('json-schema-ref-parser')
9+
const refParser = require('@apidevtools/json-schema-ref-parser')
1010
const rimraf = require('rimraf')
1111
const thunky = require('thunky')
1212

0 commit comments

Comments
 (0)