Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b0a5f01
fix(mongodb-security): Remove .eslintrc from .gitignore
gribnoysup Apr 30, 2021
960733b
ci(monorepo): Use separate set of npm scripts for evergreen in hopes …
gribnoysup Apr 30, 2021
7ad11cf
chore(@mongodb-js/compass-auto-updates): Update package-lock
gribnoysup Apr 30, 2021
eb2e09f
ci(monorepo): Do not upload monorepo to s3 with all deps installed
gribnoysup Apr 30, 2021
b237f4e
chore(monorepo): Do not print webpack progress so our CI logs are les…
gribnoysup Apr 30, 2021
08db3cc
fix(@mongodb-js/compass-crud, @mongodb-js/compass-schema, mongodb-dat…
gribnoysup Apr 30, 2021
708036b
chore(monorepo): Move download-akzidenz to top level and use make-fet…
gribnoysup Apr 30, 2021
f34c718
chore(monorepo): Pre-warm akzidenz cache before installing package deps
gribnoysup Apr 30, 2021
0302aaf
fix(mongodb-compass): Add its own download font script to compass so …
gribnoysup Apr 30, 2021
ee0056c
fix(@mongodb-js/compass-export-to-language): Update package-lock.json
gribnoysup Apr 30, 2021
56a9609
chore(@mongodb-js/compass-license, @mongodb-js/compass-plugin-info, @…
gribnoysup Apr 30, 2021
ffddf48
fix(hadron-react-utils): Ignore lib when linting
gribnoysup Apr 30, 2021
adedfc7
ci(monorepo): Other steps depend on save
gribnoysup Apr 30, 2021
ad688ef
ci(monorepo): Use 'oneshot' tasks for all variants
gribnoysup Apr 30, 2021
b68b0b2
ci(monorepo): Skip tests on rhel
gribnoysup Apr 30, 2021
07de2db
fix(evergreen): Remove extraneous 'save on macos' for compass variations
gribnoysup May 3, 2021
77bb543
test(hadron-module-cache): Increase test timeout
gribnoysup May 3, 2021
11231d5
test(@mongodb-js/compass-import-export, electron-squirrel-startup, ha…
gribnoysup May 3, 2021
b945495
ci(monorepo): Try bigger machines
gribnoysup May 3, 2021
c5084c9
fix(ci): Only use double-quotes for eslint globs
gribnoysup May 3, 2021
beef67d
fix(ci): Do not try no install python gnome keyring on Ubuntu
gribnoysup May 3, 2021
ecf38f9
chore(monorepo): Add a script to quickly identify what tests are fail…
gribnoysup Apr 29, 2021
736487c
test(monorepo): Bump timeout for all mocha test suites to 15s
gribnoysup May 3, 2021
53cd435
fix(evergreen): Add an echo to empty if block
gribnoysup May 3, 2021
b45ed6a
ci(evergreem): Back to Ubuntu 14
gribnoysup May 3, 2021
4a5d314
test(storage-mixin): Make sure that secure storage tests are running …
gribnoysup May 3, 2021
101d3ad
test(storage-mixin): Use only one global temp keychain for the whole …
gribnoysup May 4, 2021
eaed9a3
test(hadron-plugin-manager): Escape file path so that regex works cor…
gribnoysup May 4, 2021
f83e02d
test(hadron-spectron): Maybe use virtual buffer when running tests fo…
gribnoysup May 4, 2021
1d08d9e
chore(monorepo): Scope test/check/bootstrap back compass to unblock t…
gribnoysup May 4, 2021
3714d8f
test(storage-mixin): Remove extraneous exec call
gribnoysup May 4, 2021
8787074
ci(github): Disable GitHub Actions for now
gribnoysup May 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 54 additions & 47 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ functions:

echo "If npm ci fails, debug.log will be uploaded to S3."
npm ci --unsafe-perm
# Make sure that cache is populated when other packages are pulling the font
npm run update-akzidenz-cache
# Run npm ci in all the packages
npm run bootstrap-evergreen

save:
- command: shell.exec
params:
Expand Down Expand Up @@ -177,7 +182,7 @@ functions:
source ~/compass_env.sh

echo "Run static analysis..."
npm run check;
npm run check-evergreen

test:
- command: shell.exec
Expand All @@ -197,7 +202,9 @@ functions:
# have dropped support for macOS 10.10 because it is now outside
# of the supported version range.
# https://docs.google.com/document/d/1IfQGC7wTtrlsc2SqURirvt_4uMuU606nXNbu-stw6bQ/edit
DEBUG=* MONGODB_VERSION=${mongodb_version|4.0.3} npm test -- --${test_suite}
#
# test_suite option only affects compass tests
DEBUG=* MONGODB_VERSION=${mongodb_version|4.0.3} npm run test-evergreen -- -- --${test_suite}
# - command: attach.results
# params:
# file_location: src/test-results.xml
Expand Down Expand Up @@ -361,6 +368,7 @@ functions:
local_file: src/packages/compass/dist/${osx_zip_filename}
remote_file: ${project}/${revision}/${osx_zip_filename}
content_type: application/zip

'save linux artifacts':
# .deb
- <<: *save-artifact
Expand All @@ -374,6 +382,7 @@ functions:
local_file: src/packages/compass/dist/${linux_tar_filename}
remote_file: ${project}/${revision}/${linux_tar_filename}
content_type: application/x-gzip

'save rhel artifacts':
# .rpm
- <<: *save-artifact
Expand All @@ -387,36 +396,68 @@ functions:
local_file: src/packages/compass/dist/${linux_tar_filename}
remote_file: ${project}/${revision}/${linux_tar_filename}
content_type: application/x-gzip

# Tasks
tasks:
- name: oneshot-compile-test-package-publish
commands:
- func: prepare

- func: install
# - func: test
# vars:
# test_suite: functional

- func: verify

- func: test
# TODO: rhel pretest fails and needs some additional investigation to make it work
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variants: [windows, macos, ubuntu]
vars:
# This option only affects compass tests
test_suite: unit

- func: package
vars:
compass_distribution: compass
- func: publish
vars:
compass_distribution: compass
- func: 'save windows artifacts'
variants: [windows]
- func: 'save osx artifacts'
variants: [macos]
- func: 'save linux artifacts'
variants: [ubuntu]
- func: 'save rhel artifacts'
variants: [rhel]

- func: package
vars:
compass_distribution: compass-isolated
- func: publish
vars:
compass_distribution: compass-isolated
- func: 'save windows artifacts'
variants: [windows]
- func: 'save osx artifacts'
variants: [macos]
- func: 'save linux artifacts'
variants: [ubuntu]
- func: 'save rhel artifacts'
variants: [rhel]

- func: package
vars:
compass_distribution: compass-readonly
- func: publish
vars:
compass_distribution: compass-readonly
- func: 'save windows artifacts'
variants: [windows]
- func: 'save osx artifacts'
variants: [macos]
- func: 'save linux artifacts'
variants: [ubuntu]
- func: 'save rhel artifacts'
variants: [rhel]

- name: compile
depends_on: []
Expand All @@ -432,6 +473,7 @@ tasks:
commands:
- func: restore
- func: verify

- name: test-unit
depends_on: [compile]
tags:
Expand Down Expand Up @@ -634,55 +676,20 @@ buildvariants:

- name: windows
display_name: Windows
run_on: windows-64-vs2015-test
run_on: windows-vsCurrent-large
expansions:
compass_distribution: compass
tasks:
- name: compile
- name: verify
# - name: test-data-service
# - name: test-functional
# - name: test-hadron-spectron
# - name: test-connect-plugin
# - name: test-aggregation-builder-plugin
# NOTE (@imlucas) See above for activating more tests
- name: test-unit
# - name: test-main
# - name: test-renderer
# - name: test-enzyme
# - name: test-functional-stable-server
# - name: test-functional-unstable-server
# - name: test-functional-36x-server
# - name: test-functional-34x-server
# - name: test-functional-26x-server
- name: package-and-publish-compass
- name: package-and-publish-compass-isolated
- name: package-and-publish-compass-readonly
- name: oneshot-compile-test-package-publish

- name: ubuntu
display_name: Ubuntu
run_on: ubuntu1404-test
run_on: ubuntu1404-large
tasks:
- name: compile
- name: verify
- name: test-data-service
# - name: test-unit
# - name: test-main
# - name: test-renderer
# - name: test-enzyme
# - name: test-functional
# - name: test-connect-plugin
# - name: test-aggregation-builder-plugin
- name: package-and-publish-compass
- name: package-and-publish-compass-isolated
- name: package-and-publish-compass-readonly
- name: oneshot-compile-test-package-publish

- name: rhel
display_name: RHEL
run_on: rhel70
run_on: rhel76-large
tasks:
- name: compile
- name: verify
# - name: test-functional
- name: package-and-publish-compass
- name: package-and-publish-compass-isolated
- name: package-and-publish-compass-readonly
- name: oneshot-compile-test-package-publish
2 changes: 2 additions & 0 deletions .evergreen/pretest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ if [ -n "$IS_LINUX" ]; then
sudo sh -e /etc/init.d/xvfb start;
sleep 3;

# Some arcane hack to fix keyring issue
# https://github.com/atom/node-keytar/issues/132#issuecomment-444159414
eval $(dbus-launch --sh-syntax);
eval $(echo -n "" | /usr/bin/gnome-keyring-daemon --login);
eval $(/usr/bin/gnome-keyring-daemon --components=secrets --start);
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@ jobs:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
node-version: ^12.4.0

- name: Install Deps Ubuntu
run: sudo apt-get -y install libkrb5-dev libsecret-1-dev net-tools libstdc++6 gnome-keyring
# - name: Install Deps Ubuntu
# run: sudo apt-get -y install libkrb5-dev libsecret-1-dev net-tools libstdc++6 gnome-keyring

- name: Install Dependencies
run: npm ci
- name: Not Implemented
run: echo "GitHub Actions workflows are disabled for now. To be fixed in https://jira.mongodb.org/browse/COMPASS-4788"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


- name: Run Checks
run: npm run check
# - name: Install Dependencies
# run: npm ci

- name: Run Tests
run: npm run test
# - name: Run Checks
# run: npm run check

# - name: Run Tests
# run: npm run test
Loading