Skip to content

Commit

Permalink
feat: report Otel data on Python tests (elastic#29424) (elastic#30951)
Browse files Browse the repository at this point in the history
(cherry picked from commit bd1f579)

Co-authored-by: Ivan Fernandez Calvo <kuisathaverat@users.noreply.github.com>
  • Loading branch information
mergify[bot] and kuisathaverat authored Mar 23, 2022
1 parent 7fb3670 commit 9977093
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,9 @@ def withBeatsEnv(Map args = [:], Closure body) {
if (cmd(label: 'Download modules to local cache', script: 'go mod download', returnStatus: true) > 0) {
cmd(label: 'Download modules to local cache - retry', script: 'go mod download', returnStatus: true)
}
body()
withOtelEnv() {
body()
}
} catch(err) {
// Upload the generated files ONLY if the step failed. This will avoid any overhead with Google Storage
upload = true
Expand Down
1 change: 1 addition & 0 deletions libbeat/tests/system/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pycodestyle==2.6.0
pyparsing==2.4.7
pyrsistent==0.16.0
pytest==6.2.4
pytest-otel>=0.0.4
pytest-rerunfailures==9.1.1
pytest-timeout==1.4.2
PyYAML==5.4.1
Expand Down
1 change: 1 addition & 0 deletions libbeat/tests/system/requirements_aix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pycodestyle==2.6.0
pyparsing==2.4.7
pyrsistent==0.16.0
pytest==6.2.4
pytest-otel>=0.0.4
pytest-rerunfailures==9.1.1
pytest-timeout==1.4.2
PyYAML==5.4.1
Expand Down

0 comments on commit 9977093

Please # to comment.