Skip to content

Commit cc890b4

Browse files
committed
run read-only test when the distribution is readonly
1 parent a238371 commit cc890b4

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.evergreen/functions.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,11 @@ functions:
677677
npm i -w packages/compass-smoke-tests https://x-access-token:${generated_token}@github.com/10gen/compass-mongodb-com --engine-strict=false
678678
679679
if [[ "$IS_WINDOWS" == "true" ]]; then
680-
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=windows_setup --tests time-to-first-query
680+
if [[ "$HADRON_DISTRIBUTION" == "compass-readonly" ]]; then
681+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=windows_setup --tests read-only
682+
else
683+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=windows_setup --tests time-to-first-query
684+
fi
681685
if [[ "$HADRON_DISTRIBUTION" == "compass-isolated" ]]; then
682686
# auto-update is not supported on isolated
683687
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=windows_zip --tests time-to-first-query
@@ -694,18 +698,31 @@ functions:
694698
# NOTE: We're also skipping auto-update of the macOS app in CI
695699
# because it doesn't work. Running a different test to make sure it
696700
# can install and run successfully at least.
697-
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=osx_zip --tests=time-to-first-query
698-
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=osx_dmg --tests=time-to-first-query
701+
if [[ "$HADRON_DISTRIBUTION" == "compass-readonly" ]]; then
702+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=osx_zip --tests=read-only
703+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=osx_dmg --tests=read-only
704+
else
705+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=osx_zip --tests=time-to-first-query
706+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=osx_dmg --tests=time-to-first-query
707+
fi
699708
fi
700709
701710
if [[ "$IS_UBUNTU" == "true" ]]; then
702711
# TODO: linux_deb
703-
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=linux_tar --tests=time-to-first-query
712+
if [[ "$HADRON_DISTRIBUTION" == "compass-readonly" ]]; then
713+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=linux_tar --tests=read-only
714+
else
715+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=linux_tar --tests=time-to-first-query
716+
fi
704717
fi
705718
706719
if [[ "$IS_RHEL" == "true" ]]; then
707720
# TODO: linux_rpm
708-
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=linux_tar --tests=time-to-first-query
721+
if [[ "$HADRON_DISTRIBUTION" == "compass-readonly" ]]; then
722+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=linux_tar --tests=read-only
723+
else
724+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=linux_tar --tests=time-to-first-query
725+
fi
709726
fi
710727
711728
test-web-sandbox:

0 commit comments

Comments
 (0)