-
Notifications
You must be signed in to change notification settings - Fork 7.1k
enable Windows CPU CI on GHA #7475
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7475
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 FailuresAs of commit c5c129f: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
if [[ "${OS_TYPE}" == "macos" && $(uname -m) == x86_64 ]]; then | ||
echo '::group::Uninstall system JPEG libraries on macOS' |
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.
This just moves the grouping inside the if
so this doesn't show up empty on non-macos runners.
.github/workflows/test-windows.yml
Outdated
# FIXME: Port this to pytorch/test-infra/.github/workflows/windows_job.yml | ||
export PATH="/c/Jenkins/Miniconda3/Scripts:${PATH}" |
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.
I need to dig why putting this into the windows job template as I did in pytorch/test-infra#3960 didn't do the job.
In any case, since this is just fixing the PATH
for the conda
binary, this is not blocking for this PR and we can fix later.
This reverts commit 44b1c0b.
@@ -66,10 +69,24 @@ ltt install --progress-bar=off \ | |||
torch | |||
|
|||
if [[ $GPU_ARCH_TYPE == 'cuda' ]]; then | |||
python3 -c "import torch; exit(not torch.cuda.is_available())" | |||
python -c "import torch; exit(not torch.cuda.is_available())" |
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.
python3
is not not available in conda envs on Windows.
@@ -4,15 +4,11 @@ set -euo pipefail | |||
|
|||
./.github/scripts/setup-env.sh | |||
|
|||
# Prepare conda | |||
CONDA_PATH=$(which conda) |
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.
Shorten this a little. No functional difference, but can be easier copy-pasted during SSH debug sessions in CI.
|
||
echo '::group::Install testing utilities' | ||
pip install --progress-bar=off pytest pytest-mock pytest-cov | ||
echo '::endgroup::' | ||
|
||
echo '::group::Run unittests' |
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.
After a command is finished, GH automatically collapses groups. Since we want to see the tests, drop the grouping here.
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.
LGTM
@atalman Just downloading nvjpeg from Lines 313 to 317 in 781f512
Until we rebuild the base images to include this by default, we could do the same as we do in our packaging scripts: vision/packaging/windows/internal/cuda_install.bat Lines 59 to 83 in 781f512
However, due to pytorch/test-infra#3986 it is currently almost impossible for me to try this. Thus, to unblock this PR, I'm going to remove the GPU workflow for now. When |
This reverts commit 1c13a08.
Hey @pmeier! You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py |
Reviewed By: vmoens Differential Revision: D45183662 fbshipit-source-id: 4a8562c760d3551680b5fe3ac36da3ed52e33aee
Same deal as for the other migrations here: let's run the CircleCI and GHA tests in parallel for a few weeks and if nothing comes up, we can remove the ones on CircleCI. This only ports the CPU jobs for now due to pytorch/test-infra#3979.
cc @seemethere