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

Serialization #99

Open
wants to merge 140 commits into
base: master
Choose a base branch
from
Open

Serialization #99

wants to merge 140 commits into from

Conversation

GreyCat
Copy link
Member

@GreyCat GreyCat commented Jul 30, 2023

No description provided.

GreyCat added 30 commits March 24, 2017 10:42
@generalmimon generalmimon marked this pull request as ready for review July 31, 2023 18:33
Copy link
Member

@generalmimon generalmimon left a comment

Choose a reason for hiding this comment

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

I think we can merge this now - feel free to do it if you don't have any objections.

This is needed to fix the `aggregate/convert_to_json` crash due to error
`Unable to parse classname: "unittest.loader.ModuleImportFailure"` that
currently occurs when running ./ci-python on Python 2.

When `unittest` automatically imports modules during test discovery and
some file cannot be imported (e.g. due to a syntax error), the error is
reported under the classname `unittest.loader.ModuleImportFailure`,
which obviously doesn't match the `/\.Test([^.]*)$/` pattern expected
for normal tests. But in that case we just want to skip prepending the
classname and continue, not crash - this is not a fatal error.
Avoid unnecessarily compiling both `spec` and `specwrite` suites twice,
each time only to run tests from one suite.

This means that the compilation should be faster, the compile errors
(mostly in generated Java sources) won't be duplicated in the console
output, and our CI infrastructure will no longer report them (also) in
the wrong suite.
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