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

Call python to upgrade pip in Windows CI #4768

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

ximinez
Copy link
Collaborator

@ximinez ximinez commented Oct 16, 2023

High Level Overview of Change

The default pip upgrade command doesn't work properly in Windows. It needs to call python to work.

This PR, if merged, changes the Github Actions Windows CI job uses the correct command to upgrade PIP.

Context of Change

This CI run against develop failed because pip was unable to upgrade.

The error indicated

ERROR: To modify pip, please run the following command:
C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe -m pip install --upgrade pip

I don't think this problem existed when the original, recently merged PR was open, and it was open for a long time, so you'd think we would have run into it.

Type of Change

  • [X ] Bug fix (non-breaking change which fixes an issue)

Test Plan

No C++ code was changed. This only affects CI, so there is nothing to test.

Future Tasks

As mentioned in #4596, future tasks include making this job run on heavy Windows runners, so it doesn't take so dang long.

@ximinez ximinez added CI Continuous Integration Functionality Bug Dependencies Issues associated with 3rd party dependencies (RocksDB, SQLite, etc) labels Oct 16, 2023
@intelliot intelliot added this to the 2.0 milestone Oct 16, 2023
@intelliot intelliot merged commit 1fde585 into XRPLF:develop Oct 16, 2023
16 checks passed
@ximinez ximinez deleted the winci_pip_fix branch October 16, 2023 21:30
sophiax851 pushed a commit to sophiax851/rippled that referenced this pull request Jun 12, 2024
In Windows, we need to call `python` in order for the `pip` upgrade
command to work.

This changes the GitHub Actions Windows CI job to use the correct
command to upgrade PIP, fixing this error:

```
ERROR: To modify pip, please run the following command:
C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe -m pip install --upgrade pip
```

A future task is to make job run on heavy Windows runners so that it
doesn't take so long.

Context: XRPLF#4596
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CI Continuous Integration Functionality Dependencies Issues associated with 3rd party dependencies (RocksDB, SQLite, etc)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants