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

patch atexit_serde_create_op_test #2842

Merged
merged 5 commits into from
Sep 5, 2024
Merged

patch atexit_serde_create_op_test #2842

merged 5 commits into from
Sep 5, 2024

Conversation

rdspring1
Copy link
Collaborator

  • Failed to run correctness tests because the scope member was not initialized correctly.

@rdspring1
Copy link
Collaborator Author

!build

Copy link
Collaborator

@jjsjann123 jjsjann123 left a comment

Choose a reason for hiding this comment

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

LGTM with minor nitpick

tests/python/pytest_framework.py Outdated Show resolved Hide resolved
@rdspring1 rdspring1 force-pushed the pytest_atexit_patch branch 2 times, most recently from 4dd6f98 to aa9e9cd Compare August 28, 2024 17:55
* Failed to run correctness tests because the scope member was not
  initialized correctly.
@rdspring1
Copy link
Collaborator Author

!build

@rdspring1
Copy link
Collaborator Author

@jjsjann123 I removed the per-op serialization check because it was making the CI take too long.

Currently, the python tests take about an hour. With the serialization check, it is over 1 hour, 45 minutes.

We'll just run the serialization check at exit for the opinfo tests in the CI.

@rdspring1 rdspring1 merged commit d5b2a24 into main Sep 5, 2024
36 checks passed
@rdspring1 rdspring1 deleted the pytest_atexit_patch branch September 5, 2024 02:23
@jjsjann123
Copy link
Collaborator

Currently, the python tests take about an hour. With the serialization check, it is over 1 hour, 45 minutes.

We'll just run the serialization check at exit for the opinfo tests in the CI.

naive question, are the two checks identical?
I thought the atexit stuff only checks for serialization. It doesn't attempt to deserialize and verify the test like serde_check_ops does.

If so, should we at least run serde_check_ops in our nightly/weekly runs to ensure coverage?

@rdspring1
Copy link
Collaborator Author

You're correct. atexit only does the serialization part in the CI. serde_check_ops does serialization, deserialization, and verify. We have the serde_check_ops in test_python_frontend, so we have daily coverage there.

The opinfo tests covers each op individually and handles more inputs, so it is slower. The opinfos are useful for development or debugging because every op is isolated.

If so, should we at least run serde_check_ops in our nightly/weekly runs to ensure coverage?

That is a good idea. If you have unlimited time it doesn't hurt to run them, but test_python_frontend provides good quality assurance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants