Skip to content

Commit

Permalink
check all supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 15, 2024
1 parent 70af6f5 commit 3ced9db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@ functions:
if [ "$OS" != "Windows_NT" ]; then
$PYTHON mongodl.py --edition enterprise --version rapid --component archive-debug --no-download
fi
$PYTHON mongodl.py --edition enterprise --version 3.6 --component archive --test
$PYTHON mongodl.py --edition enterprise --version 4.0 --component archive --test
$PYTHON mongodl.py --edition enterprise --version 4.2 --component archive --test
$PYTHON mongodl.py --edition enterprise --version 4.4 --component archive-debug --test
$PYTHON mongodl.py --edition enterprise --version 5.0 --component archive --test
$PYTHON mongodl.py --edition enterprise --version 6.0 --component crypt_shared --test
Expand Down
7 changes: 4 additions & 3 deletions .evergreen/mongodl.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
from typing import (IO, TYPE_CHECKING, Any, Callable, Iterable, Iterator,
NamedTuple, Sequence, cast)

# The named supported minor and major versions.
SUPPORTED_VERSIONS = ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0", "7.0", "8.0"]

# These versions are used for performance benchmarking. Do not update to a newer version.
PERF_VERSIONS = {
Expand Down Expand Up @@ -381,9 +383,8 @@ def _import_json_data(self, data: 'Any') -> None:
UNIQUE(key, download_id)
)
''')
# Inject special versions: Major releases.
versions = ["3.6", "4.0", "5.0", "6.0", "7.0", "8.0"]
versions = dict(zip(versions, [None for _ in versions]))
# Inject supported versions
versions = dict(zip(SUPPORTED_VERSIONS, [None for _ in SUPPORTED_VERSIONS]))
for ver in data['versions']:
version = ver['version']
key = version[:3]
Expand Down

0 comments on commit 3ced9db

Please sign in to comment.