Skip to content
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

Fix support for RHEL 7.0 #486

Merged
merged 5 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
4 changes: 4 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,10 @@ axes:
display_name: "Ubuntu 20.04 (ARM64)"
run_on: ubuntu2004-arm64-small

- id: rhel70-small
display_name: "RHEL 7"
run_on: rhel70-small

- id: rhel87-power8
display_name: "RHEL 8 (POWER8)"
run_on: rhel81-power8-small
Expand Down
4 changes: 2 additions & 2 deletions .evergreen/start-orchestration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ echo "Creating virtual environment 'venv'..."
venvcreate "${PYTHON:?}" venv
echo "Creating virtual environment 'venv'... done."

# Install from github to get the latest mongo-orchestration.
python -m pip install -q --upgrade 'https://github.com/mongodb/mongo-orchestration/archive/master.tar.gz'
# Install from github to get the latest mongo-orchestration, fall back on published wheel.
python -m pip install -q --upgrade 'https://github.com/mongodb/mongo-orchestration/archive/master.tar.gz' || python -m pip install -q --upgrade mongo-orchestration
Copy link
Contributor

@ShaneHarvey ShaneHarvey Sep 4, 2024

Choose a reason for hiding this comment

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

We intentionally install from master, why fallback to the published one? Like how could the source install ever fail?

Copy link
Member Author

Choose a reason for hiding this comment

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

On rhel 7.0 (but not rhel 7.9), we cannot install hatchling because of the version of glibc.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh that's lame, could you add a comment explaining that?

Copy link
Contributor

Choose a reason for hiding this comment

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

Wait why does hatchling install fail? It looks like a pure python library: https://pypi.org/project/hatchling/#files

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, the real issue is that find_python3 is using Python 3.6, for which there is no matching version of hatchling. I'll update the comment, because we could still end up in a whack-a-mole situation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah so the real issue is that we're using Python 3.6 but mongo-orc@master requires Python 3.8+

python -m pip list
cd $DRIVERS_TOOLS

Expand Down
Loading