You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2022-09-27T14:55:53.857Z] (on apm-ci-immutable-ubuntu-1804-1664290081867003348):
120
-
container: {
121
-
"image": {
122
-
"name": "mongo:6"
123
-
}
124
-
}
125
-
docker: {
126
-
"healthcheck": {
127
-
"status": "unhealthy",
128
-
"failingstreak": 49,
129
-
"event": {
130
-
"start_date": "2022-09-27T14:55:53.012Z",
131
-
"end_date": "2022-09-27T14:55:53.153Z",
132
-
"exit_code": -1,
133
-
"output": "OCI runtime exec failed: exec failed: unable to start container process: exec: \"mongo\": executable file not found in $PATH: unknown"
134
-
}
135
-
}
136
-
}
137
-
```
138
-
139
-
Second, most of the time you should be able to reproduce a "Test" step failure
140
-
locally. Sometimes this requires forcing an update to the latest Docker image
141
-
for some services.
93
+
Most of the time you should be able to reproduce a CI test step failure locally.
94
+
Sometimes this requires forcing an update to the latest Docker image for some
95
+
services.
142
96
143
97
```
144
98
$ docker system prune --all --force --volumes # heavy-handed purge of all local Docker data
145
99
...
146
100
147
-
$ .ci/scripts/test.sh -b "release" -t "" "16" # or a different value for "16" depending which stage failed
101
+
$ .ci/scripts/test.sh -b "release" "16" # or a different value for "16" depending which stage failed
148
102
...
149
103
```
150
104
@@ -191,7 +145,7 @@ Two maintenance tasks are (a) to keep these three places in sync and (b) to
191
145
know when support for newer versions ofmodule needs to be added. The latter
192
146
is partially handled by automated dependabot PRs (see ".github/dependabot.yml").
193
147
Both tasks are also partially supported by the **`./dev-utils/bitrot.js`** tool.
194
-
It will list inconsistences between ".tav.yaml" and
148
+
It will list inconsistences between ".tav.yml" and
195
149
"supported-technologies.asciidoc", and will note newer releases of a module
196
150
that isn't covered. For example, redis@5 is not covered by the ranges above,
197
151
so the tool looks like this:
@@ -204,27 +158,6 @@ redis bitrot: latest [email protected] (released 2022-09-06): is not in .tav.yml range
204
158
205
159
# Other tips
206
160
207
-
## How to trigger a benchmark run for a PR
208
-
209
-
1. Go to the [apm-ci list of apm-agent-nodejs PRs](https://apm-ci.elastic.co/job/apm-agent-nodejs/job/apm-agent-nodejs-mbp/view/change-requests/) and click on your PR.
210
-
2. Click "Build with Parameters" in the left sidebar. (If you don't have "Build with Parameters" then you aren't logged in.)
211
-
3. Select these options to (mostly) *only* run the ["Benchmarks" step](https://github.com/elastic/apm-agent-nodejs/blob/v3.14.0/.ci/Jenkinsfile#L311-L330):
212
-
- [x] Run\_As\_Main\_Branch
213
-
- [x] bench\_ci
214
-
- [ ] tav\_ci
215
-
- [ ] tests\_ci
216
-
- [ ] test\_edge\_ci
217
-
218
-
Limitation: The current dashboard for benchmark results only shows datapoints
219
-
from the "main" branch. It would be useful to have a separate chart that
220
-
showed PR values.
221
-
222
-
(Another way to start the "Benchmarks" step is via a GitHub comment
223
-
"run benchmark tests". However, that also triggers the "Test" step
224
-
and, depending on other conditions, the "TAV Test" step -- both of which are
225
-
long and will run before getting to the Benchmarks run.)
226
-
227
-
228
161
## How to test your local agent in Docker
229
162
230
163
If you are developing on macOS, it can be convenient to test your local
0 commit comments