Skip to content

[macOS] Fix python 3.11 testing issues#18786

Merged
svenevs merged 1 commit into
RobotLocomotion:masterfrom
svenevs:fix/macos-py-311
Feb 14, 2023
Merged

[macOS] Fix python 3.11 testing issues#18786
svenevs merged 1 commit into
RobotLocomotion:masterfrom
svenevs:fix/macos-py-311

Conversation

@svenevs
Copy link
Copy Markdown
Contributor

@svenevs svenevs commented Feb 14, 2023

Follow-up to #18262.

  • deprecation_autocomplete_test: add getstate(, refs: https://docs.python.org/3/library/pickle.html#object.__getstate__

    Changed in version 3.11: Added the default implementation of the getstate() method in the object class.

  • styleguide: temporarily mark the failing test as manual to unblock CI, proper fix to adjust import paths TBD.


This change is Reviewable

@svenevs
Copy link
Copy Markdown
Contributor Author

svenevs commented Feb 14, 2023

@drake-jenkins-bot mac-arm-monterey-clang-bazel-experimental-release please.

@xuchen-han xuchen-han self-assigned this Feb 14, 2023
Copy link
Copy Markdown
Contributor

@xuchen-han xuchen-han left a comment

Choose a reason for hiding this comment

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

+@xuchenhan-tri :lgtm:

Reviewed 1 of 2 files at r1, all commit messages.
Reviewable status: 1 unresolved discussion, needs at least two assigned reviewers, missing label for release notes (waiting on @svenevs)


bindings/pydrake/common/test/deprecation_autocomplete_test.py line 55 at r1 (raw file):

            "__getattr__(",
            "__getattribute__(",
            "__getstate__(",

This seems to appease mac but upset jammy

Copy link
Copy Markdown
Contributor

@xuchen-han xuchen-han left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r1.
Reviewable status: 1 unresolved discussion, needs at least two assigned reviewers, missing label for release notes (waiting on @svenevs)

Follow-up to RobotLocomotion#18262.

- deprecation_autocomplete_test: add __getstate__(, refs:
  https://docs.python.org/3/library/pickle.html#object.__getstate__

  Changed in version 3.11: Added the default implementation of the
  __getstate__() method in the object class.
- styleguide: temporarily mark the failing test as manual to unblock
  CI, proper fix to adjust import paths TBD.
@svenevs
Copy link
Copy Markdown
Contributor Author

svenevs commented Feb 14, 2023

@drake-jenkins-bot mac-arm-monterey-clang-bazel-experimental-release please.

@svenevs svenevs added the release notes: fix This pull request contains fixes (no new features) label Feb 14, 2023
Copy link
Copy Markdown
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: 1 unresolved discussion, needs at least two assigned reviewers (waiting on @svenevs)

Copy link
Copy Markdown
Contributor Author

@svenevs svenevs left a comment

Choose a reason for hiding this comment

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

+@jwnimmer-tri for platform everything is just about 🟢

Reviewed 1 of 2 files at r1, 1 of 1 files at r2.
Reviewable status: 1 unresolved discussion (waiting on @xuchenhan-tri)


tools/workspace/styleguide/BUILD.bazel line 10 at r2 (raw file):

    size = "small",
    srcs = ["@styleguide//:cpplint_unittest"],
    # TODO(jwnimmer-tri): macOS python 3.11 began having import issues because

FYI @jwnimmer-tri I put this in your camp per discussion on slack, there is no ticket tracking it currently.


bindings/pydrake/common/test/deprecation_autocomplete_test.py line 55 at r1 (raw file):

Previously, xuchenhan-tri wrote…

This seems to appease mac but upset jammy

Done, removed -- that was a silly mistake on my part. The code now only adds __getstate__ when we are >= python 3.11.

Copy link
Copy Markdown
Contributor Author

@svenevs svenevs left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Dismissed @xuchenhan-tri from a discussion.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignees jwnimmer-tri(platform),xuchenhan-tri(platform) (waiting on @svenevs)

@svenevs svenevs merged commit 4582a13 into RobotLocomotion:master Feb 14, 2023
@svenevs svenevs deleted the fix/macos-py-311 branch February 14, 2023 21:27
@jwnimmer-tri
Copy link
Copy Markdown
Collaborator

No end-user changes here, +(release notes: none).

@jwnimmer-tri jwnimmer-tri added release notes: none This pull request should not be mentioned in the release notes and removed release notes: fix This pull request contains fixes (no new features) labels Feb 14, 2023
marcoag pushed a commit to marcoag/drake that referenced this pull request Mar 8, 2023
Follow-up to RobotLocomotion#18262.

- deprecation_autocomplete_test: add __getstate__(, refs:
  https://docs.python.org/3/library/pickle.html#object.__getstate__

  Changed in version 3.11: Added the default implementation of the
  __getstate__() method in the object class.
- styleguide: temporarily mark the failing test as manual to unblock
  CI, proper fix to adjust import paths TBD.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: emergency release notes: none This pull request should not be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants