Closed tekknolagi closed 1 year ago
@jbower-fb has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@tekknolagi has updated the pull request. You must reimport the pull request before landing.
@carljm has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
Internally this is failing tests in test_cinderjit
and test_perf_profiler
when run with JIT enabled. Can you repro?
Huh. I don't have a CI repro -- looks fine to me on my actions: https://github.com/tekknolagi/cinder/actions/runs/5115083456/jobs/9195993151
I can try running locally later.
Can you provide me with some more detail? What is the exact test invocation? Is it crashing? ...?
It looks like test_unwatch_builtins
is interfering with the LoadMethodModule
tests for some reason. If that runs first, the latter fail (everything else was commented out). If test_unwatch_builtins
is run in a subprocess the issue goes away. I haven't looked harder yet.
What I don't understand is if I limit the JIT list to functions only present in the LoadModuleMethod tests and insert a hardware breakpoint inside my SSA change (which never fires), the tests still fail. So I'm not changing the codegen, the codegen is very limited in scope, and still, test failure.
Oh actually if I comment out my changes entirely the tests still fail. So I think that test just needs to be run in a subprocess.
@tekknolagi has updated the pull request. You must reimport the pull request before landing.
Augh, hold on, sorry
@tekknolagi has updated the pull request. You must reimport the pull request before landing.
@carljm has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@carljm merged this pull request in facebookincubator/cinder@ae3f7c6dca5aaedc4b1ca6550948bb18141fea9c.
Calling
str(x)
(wherestr
is still the built-in type) should always returnUnicodeExact
. Use the built-in type map andTBuiltinExact
to filter out subclasses, because subclasses can do whatever they want.