39
39
# TODO: Re-enable (see https://github.com/mongodb-js/compass/actions/runs/13281152689/job/37079619474)
40
40
# - linux_tar
41
41
# TODO: Enable (needs a docker container)
42
- # - linux_rpm
42
+ - linux_rpm
43
43
hadron-distribution :
44
44
- compass
45
45
- compass-readonly
@@ -78,10 +78,21 @@ jobs:
78
78
# runs-on: ubuntu-latest
79
79
# arch: x64
80
80
# hadron-platform: linux
81
- # - package: linux_rpm
82
- # runs-on: ubuntu-latest
83
- # arch: x64
84
- # hadron-platform: linux
81
+ - package : linux_rpm
82
+ runs-on : ubuntu-latest
83
+ arch : x64
84
+ hadron-platform : linux
85
+ distro-id : rhel80
86
+ post-checkout-command : |
87
+ dnf install -y gcc gcc-c++ make git nss dbus xorg-x11-server-Xvfb yum-utils
88
+ # Enable the devel repo to install compat-openssl11 (bringing libcrupto.so.1.1 to run mongod)
89
+ dnf config-manager --set-enabled devel
90
+ dnf update -y
91
+ dnf install -y compat-openssl11
92
+ container :
93
+ image : rockylinux:9
94
+ volumes :
95
+ - ${{ github.workspace }}:/compass
85
96
86
97
# Install the update server for auto-update tests
87
98
- test : auto-update-from
@@ -115,15 +126,19 @@ jobs:
115
126
package : windows_msi
116
127
- test : auto-update-to
117
128
package : windows_setup
129
+ # Waiting for https://github.com/10gen/compass-mongodb-com/pull/122 to be released
118
130
- test : auto-update-to
119
131
package : linux_deb
132
+ - test : auto-update-to
133
+ package : linux_rpm
120
134
121
135
# Skip time-to-first-query tests for readonly because it doesn't have editable documents
122
136
# See https://github.com/mongodb-js/compass/actions/runs/13286945911/job/37097791601
123
137
- hadron-distribution : compass-readonly
124
138
test : time-to-first-query
125
139
126
140
runs-on : ${{ matrix.runs-on }}
141
+ container : ${{ matrix.container }}
127
142
env :
128
143
DEBUG : compass:smoketests:*
129
144
steps :
@@ -134,6 +149,11 @@ jobs:
134
149
with :
135
150
node-version : 20
136
151
cache : " npm"
152
+
153
+ - name : Run post-checkout command
154
+ if : matrix.post-checkout-command
155
+ run : ${{ matrix.post-checkout-command }}
156
+
137
157
- name : Cache downloads
138
158
uses : actions/cache@v4
139
159
with :
@@ -161,10 +181,10 @@ jobs:
161
181
token : ${{ steps.app-token.outputs.token }}
162
182
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
163
183
persist-credentials : false
164
- path : ' compass-mongodb-com'
184
+ path : compass-mongodb-com
165
185
- name : Install Compass Update server
166
186
if : matrix.install-update-server
167
- run : npm install --no-save --workspace packages/compass-smoke-tests ${{ github.workspace }} /compass-mongodb-com
187
+ run : npm install --no-save --workspace packages/compass-smoke-tests . /compass-mongodb-com
168
188
169
189
- name : Run tests
170
190
env :
@@ -174,6 +194,9 @@ jobs:
174
194
HADRON_DISTRIBUTION : ${{ matrix.hadron-distribution }}
175
195
PLATFORM : ${{ matrix.hadron-platform }}
176
196
ARCH : ${{ matrix.arch }}
197
+ # Useful to pass a "fake" DISTRO_ID environment to inform the "mongodb-download-url" package
198
+ # See https://github.com/mongodb-js/devtools-shared/blob/aff66db7b7fc4f8ecaec2383fd4e8c116733a7e4/packages/download-url/src/linux-distro.ts#L14
199
+ DISTRO_ID : ${{ matrix.distro-id }}
177
200
# Exposing token to prevent update server from being rate limited
178
201
GITHUB_TOKEN : ${{ github.token }}
179
202
working-directory : packages/compass-smoke-tests
0 commit comments