Skip to content

Commit 991f92c

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents ba823f0 + 58d5703 commit 991f92c

File tree

318 files changed

+9185
-5711
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

318 files changed

+9185
-5711
lines changed

.depcheckrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ ignores:
1616
# one it ships with, so we install one of our own to get the version right
1717
# (because we need one with vscode 2022 support for github actions CI)
1818
- 'node-gyp'
19+
# lerna is used as a script
20+
- 'lerna'

.evergreen/functions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ functions:
315315
# Load environment variables
316316
eval $(.evergreen/print-compass-env.sh)
317317
318+
# Check the app bundle size.
319+
npm run --workspace mongodb-compass check-bundled-app-size
320+
318321
echo "Unpacking ${app_archive_name} ..."
319322
320323
# Unpack the app archive

.github/workflows/codeql.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "main", '*-releases' ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "main" ]
20+
schedule:
21+
- cron: '30 14 * * 4'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
27+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
28+
permissions:
29+
actions: read
30+
contents: read
31+
security-events: write
32+
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
language: [ 'go', 'javascript', 'python' ]
37+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
38+
# Use only 'java' to analyze code written in Java, Kotlin or both
39+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
40+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
41+
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v3
45+
46+
# Initializes the CodeQL tools for scanning.
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@v2
49+
with:
50+
languages: ${{ matrix.language }}
51+
# If you wish to specify custom queries, you can do so here or in a config file.
52+
# By default, queries listed here will override any specified in a config file.
53+
# Prefix the list here with "+" to use these queries and those in the config file.
54+
55+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
56+
# queries: security-extended,security-and-quality
57+
config: |
58+
paths-ignore:
59+
- '**/*.test.js'
60+
- '**/*.spec.js'
61+
- '**/*.test.ts'
62+
- '**/*.spec.ts'
63+
- '**/*.test.tsx'
64+
- '**/*.spec.tsx'
65+
66+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
67+
# If this step fails, then you should remove it and run the build manually (see below)
68+
- name: Autobuild
69+
uses: github/codeql-action/autobuild@v2
70+
71+
# ℹ️ Command-line programs to run using the OS shell.
72+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
73+
74+
# If the Autobuild fails above, remove it and uncomment the following three lines.
75+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
76+
77+
# - run: |
78+
# echo "Run, Build Application using script"
79+
# ./location_of_script_within_repo/buildscript.sh
80+
81+
- name: Perform CodeQL Analysis
82+
uses: github/codeql-action/analyze@v2
83+
with:
84+
category: "/language:${{matrix.language}}"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Merge bump packages PR
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
# Each Tuesday at 5 AM UTC
6+
- cron: '0 5 * * 2'
7+
8+
jobs:
9+
merge_bump_packages_pr:
10+
name: Merge bump packages PR
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Merge PR
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.SVC_DEVTOOLSBOT_TOKEN }}
18+
run: |
19+
set -e
20+
PR_NUMBER=$(gh pr list -s open --head=ci/bump-packages --limit=1 --json number | jq '.[0].number')
21+
if [ -n "${PR_NUMBER}" ]; then
22+
gh pr checks "${PR_NUMBER}" --watch --fail-fast
23+
echo "Merging PR #${PR_NUMBER}"
24+
gh pr merge "${PR_NUMBER}" --squash --delete-branch
25+
else
26+
echo "PR not found"
27+
fi

.github/workflows/start-beta.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Start new Beta release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
mergeBranch:
7+
description: 'mergeBranch (optional, default="main"): the branch to merge from, useful to perform quick fixes outside of main.'
8+
default: 'main'
9+
required: false
10+
overrideNextGa:
11+
description: 'overrideNextGa (optional): set this param if you want to override the nextGa version that is fetched from jira versions, and use a different one.'
12+
required: false
13+
schedule:
14+
# Each Monday at 5 AM UTC
15+
- cron: '0 5 * * 1'
16+
17+
jobs:
18+
startRelease:
19+
name: Start new Beta release
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
- name: Setup git
26+
run: |
27+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
28+
git config --local user.name "github-actions[bot]"
29+
30+
- uses: actions/setup-node@v3
31+
with:
32+
node-version: ^16.x
33+
cache: 'npm'
34+
35+
- name: Install [email protected]
36+
run: |
37+
npm install -g [email protected]
38+
39+
- name: Install Dependencies
40+
run: |
41+
npm -v
42+
npm ci
43+
44+
- name: Start Release
45+
run: |
46+
node scripts/release.js beta \
47+
--merge-branch="${{ github.event.inputs.mergeBranch || 'main' }}" \
48+
--next-ga="${{ github.event.inputs.overrideNextGa }}"

.github/workflows/start-ga.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Starts a new GA from the latest beta or
2+
# from another branch, the release version is taken from the fixVersion of the
3+
# Release ticket supplied as input.
4+
name: Start new GA release
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
releaseTicket:
10+
description: 'releaseTicket (required): it must have a fixVersion which will be used as release version.'
11+
required: true
12+
mergeBranch:
13+
description: 'mergeBranch (optional, default="beta-releases"): the branch to merge from, useful to perform quick fixes or to skip beta.'
14+
default: 'beta-releases'
15+
required: false
16+
17+
jobs:
18+
startRelease:
19+
name: Start new GA release
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
- name: Setup git
26+
run: |
27+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
28+
git config --local user.name "github-actions[bot]"
29+
30+
- uses: actions/setup-node@v3
31+
with:
32+
node-version: ^16.x
33+
cache: 'npm'
34+
35+
- name: Install [email protected]
36+
run: |
37+
npm install -g [email protected]
38+
39+
- name: Install Dependencies
40+
run: |
41+
npm -v
42+
npm ci
43+
44+
- name: Start Release
45+
env:
46+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
47+
run: |
48+
node scripts/release.js ga \
49+
--release-ticket="${{ github.event.inputs.releaseTicket }}" \
50+
--merge-branch="${{ github.event.inputs.mergeBranch || 'beta-releases' }}"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Is there anything else you’d like to see in Compass? Let us know by submitting
3333
- [**@mongodb-js/compass-indexes**](packages/compass-indexes): Collection index management for Compass
3434
- [**@mongodb-js/compass-instance**](packages/compass-instance): Compass instance plugin
3535
- [**@mongodb-js/compass-query-bar**](packages/compass-query-bar): Renders a component for executing MongoDB queries through a GUI
36-
- [**@mongodb-js/compass-query-history**](packages/compass-query-history): Load and manage saved queries in Compass
3736
- [**@mongodb-js/compass-saved-aggregations-queries**](packages/compass-saved-aggregations-queries): Instance tab plugin that shows saved queries and aggregations
3837
- [**@mongodb-js/compass-schema**](packages/compass-schema): Compass Schema Tab Plugin
3938
- [**@mongodb-js/compass-schema-validation**](packages/compass-schema-validation): Compass plugin for document JSON schema validation

0 commit comments

Comments
 (0)