Skip to content

Port macOS tests from CircleCI got GHA #7175

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

Closed
wants to merge 5 commits into from

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Feb 6, 2023

As was done with the Linux tests, this PR adds macOS tests to our GHA matrix, but leaves them on CircleCI for now. When they run smoothly for a couple of weeks, we can remove them from CircleCI and thus completing the migration for macOS.

cc @seemethere

@@ -0,0 +1,84 @@
#!/usr/bin/env bash
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Although it seems weird to have a standalone script for a single workflow, this script works fine for Linux as well. See #7149. I'll migrate them to this script next.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

See #7189.


set -euo pipefail

echo '::group::Prepare conda'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This line as well as the accompanying echo '::endgroup::' is used to group the output of some steps in the logs. This is only needed now, since we no longer have individual steps, but rather a single step.

echo '::endgroup::'

echo '::group::Set PyTorch conda channel'
# TODO: Can we maybe have this as environment variable in the job template? For example, `IS_RELEASE`.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to self: I need to open an issue about that.

echo '::endgroup::'

echo '::group::Set PyTorch GPU mutex'
case $GPU_ARCH_TYPE in
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not needed for macOS since we don't have GPU workflows. This is in preparation for the Linux GPU jobs. Will happen a few more times below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

See #7189.

@@ -1,50 +0,0 @@
name: Unit-tests on M1
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since that test is already on GHA, I don't think we need the grace period where we run both workflows at the same time. LMK if you disagree.

@pmeier
Copy link
Collaborator Author

pmeier commented Feb 7, 2023

Failure 1. from the comment above probably stems from an environment issue:

  • "regular":

    ld: warning: object file (/Users/runner/work/vision/vision/pytorch/vision/build/temp.macosx-10.9-x86_64-cpython-38/Users/runner/work/vision/vision/pytorch/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.o) was built for newer macOS version (12.0) than being linked (10.9)ld: warning: ld: warning: object file (/Users/runner/work/vision/vision/pytorch/vision/build/temp.macosx-10.9-x86_64-cpython-38/Users/runner/work/vision/vision/pytorch/vision/torchvision/csrc/ops/autograd/ps_roi_align_kernel.o) was built for newer macOS version (12.0) than being linked (10.9)
    https://github.com/pytorch/vision/actions/runs/4104950493/jobs/7081139586#step:9:298

  • M1:

    ld: warning: object file (/Users/ec2-user/runner/_work/vision/vision/pytorch/vision/build/temp.macosx-11.1-arm64-cpython-38/Users/ec2-user/runner/_work/vision/vision/pytorch/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.o) was built for newer macOS version (12.0) than being linked (11.1)
    https://github.com/pytorch/vision/actions/runs/4104950493/jobs/7081140495#step:9:286

@pmeier pmeier closed this Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants