-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add mongo 7 to testing matrix #34213
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,10 @@ jobs: | |
- "common-with-cms" | ||
- "xmodule-with-lms" | ||
- "xmodule-with-cms" | ||
name: gh-hosted-python-${{ matrix.python-version }},django-${{ matrix.django-version }},${{ matrix.shard_name }} | ||
mongo-version: | ||
- "4.4" | ||
- "7.0" | ||
name: gh-hosted-python-${{ matrix.python-version }},django-${{ matrix.django-version }},mongo-${{ matrix.mongo-version }}${{ matrix.shard_name }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -46,7 +49,7 @@ jobs: | |
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: 4.4 | ||
mongodb-version: ${{ matrix.mongo-version}} | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
|
||
jobs: | ||
run-tests: | ||
name: python-${{ matrix.python-version }},django-${{ matrix.django-version }},${{ matrix.shard_name }} | ||
name: python-${{ matrix.python-version }},django-${{ matrix.django-version }},mongo-${{ matrix.mongo-version }},${{ matrix.shard_name }} | ||
if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false)) | ||
runs-on: [ edx-platform-runner ] | ||
strategy: | ||
|
@@ -36,13 +36,26 @@ jobs: | |
- "common-with-cms" | ||
- "xmodule-with-lms" | ||
- "xmodule-with-cms" | ||
mongo-version: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How can we verify which version is running during the test? For the python-3.8,django-pinned,mongo-7.0.5,lms-1 job, I see the following logs for the "start mongod server for tests" step:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch, turns out I had to run apt purge before installing the new version.
|
||
- "4.4" | ||
- "7.0" | ||
# We expect Django 4.0 to fail, so don't stop when it fails. | ||
continue-on-error: ${{ matrix.django-version == '4.0' }} | ||
|
||
steps: | ||
- name: sync directory owner | ||
run: sudo chown runner:runner -R .* | ||
|
||
- name: install mongo version | ||
run: | | ||
if [[ "${{ matrix.mongo-version }}" != "4.4" ]]; then | ||
sudo apt-get purge -y "mongodb-org*" | ||
sudo apt-get remove -y mongodb-org | ||
wget -qO - https://www.mongodb.org/static/pgp/server-${{ matrix.mongo-version }}.asc | sudo apt-key add - | ||
echo "deb https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/${{ matrix.mongo-version }} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-${{ matrix.mongo-version }}.list | ||
sudo apt-get update && sudo apt-get install -y mongodb-org="${{ matrix.mongo-version }}.*" | ||
fi | ||
|
||
- name: checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please open a temporary PR against our fork so that we can verify this workflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done. here's the PR open-craft#639