Skip to content

Commit 4c5b1b2

Browse files
bsnymanMongoDB Bot
authored andcommitted
SERVER-91334 Onboard Server to papertrail service on v7.0 (#32428)
GitOrigin-RevId: 505547cf315001a08b8ac307da1f2cbf8b386793
1 parent 9ad0ee4 commit 4c5b1b2

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

etc/evergreen_yml_components/definitions.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7804,6 +7804,28 @@ tasks:
78047804
EVERGREEN_TASK_ID: ${task_id}
78057805
args:
78067806
- "./src/evergreen/run_upload_lock_push.sh"
7807+
#Trace artifacts (binaries, cryptd, debug, MSI) using Papertrail
7808+
- command: subprocess.exec
7809+
params:
7810+
binary: bash
7811+
env:
7812+
IS_RELEASE: ${is_release}
7813+
args:
7814+
- "./src/evergreen/papertrail_generate_expansions.sh"
7815+
- command: expansions.update
7816+
params:
7817+
file: src/papertrail-expansions.yml
7818+
- func: "f_expansions_write"
7819+
- command: papertrail.trace
7820+
params:
7821+
key_id: ${papertrail_key_id}
7822+
secret_key: ${papertrail_secret_key}
7823+
product: ${product_for_papertrail}
7824+
version: ${release_version}
7825+
filenames:
7826+
- "src/mongodb-${push_name}-${push_arch}*"
7827+
- "src/mongodb-cryptd-${push_name}-${push_arch}*"
7828+
- "src/mh-${push_name}-${push_arch}*"
78077829

78087830
- name: crypt_push
78097831
run_on: rhel8.7-small
@@ -7911,6 +7933,26 @@ tasks:
79117933
content_type: text/plain
79127934
remote_file: ${push_path}/mongo_crypt_shared_v1-${push_name}-${push_arch}-${suffix}.${ext|tgz}.md5
79137935
skip_existing: ${is_release}
7936+
#Trace artifacts (crypt) using Papertrail
7937+
- command: subprocess.exec
7938+
params:
7939+
binary: bash
7940+
env:
7941+
IS_RELEASE: ${is_release}
7942+
args:
7943+
- "./src/evergreen/papertrail_generate_expansions.sh"
7944+
- command: expansions.update
7945+
params:
7946+
file: src/papertrail-expansions.yml
7947+
- func: "f_expansions_write"
7948+
- command: papertrail.trace
7949+
params:
7950+
key_id: ${papertrail_key_id}
7951+
secret_key: ${papertrail_secret_key}
7952+
product: ${product_for_papertrail}
7953+
version: ${release_version}
7954+
filenames:
7955+
- "src/mongo_crypt_shared_v1-${push_name}-${push_arch}*"
79147956

79157957
- <<: *task_template
79167958
name: search
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
cd src
2+
3+
set -o errexit
4+
set -o verbose
5+
6+
version=$(git describe --tags --always --dirty)
7+
8+
if [ ${IS_RELEASE} = 'true' ]; then
9+
version="${version#r}"
10+
fi
11+
12+
cat << EOT > papertrail-expansions.yml
13+
release_version: "$version"
14+
EOT
15+
cat papertrail-expansions.yml

0 commit comments

Comments
 (0)