Upload file content instead of ASTs
commitdae356ff396b9dfbd72aee27cbe14d550e227100
authorMillie Chen <milliechen@fb.com>
Thu, 4 Aug 2022 17:56:24 +0000 (4 10:56 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 4 Aug 2022 17:56:24 +0000 (4 10:56 -0700)
tree62d028247bf2fbe5a4fe5a2618e8e712b2d4a1d7
parenta3d47df8d0199d76fc5bae00f9cf5a3a0fe0c6a4
Upload file content instead of ASTs

Summary:
D38289089 (https://github.com/facebook/hhvm/commit/1c04c247ce68ab3c9f423a2f8d249763394b2b4a) created a remote memcache/manifold store for all WWW Hack files parsed into ASTs. This diff addresses our followup discussions to store source code rather than ASTs, which is simpler and works more cohesively with the existing typecheck logic.

Specifically, the keys will be hash(file name) + sha1(file content), and the values will be (file name, file content)

Reviewed By: bobrenjc93

Differential Revision: D38405392

fbshipit-source-id: 750b632e45a116c070c4d13c7069bad578532da7
hphp/hack/src/client/clientArgs.ml
hphp/hack/src/client/clientCheck.ml
hphp/hack/src/client/clientEnv.ml
hphp/hack/src/server/dune
hphp/hack/src/server/serverCommand.ml
hphp/hack/src/server/serverCommandTypes.ml
hphp/hack/src/server/serverCommandTypesUtils.ml
hphp/hack/src/server/serverGenRemoteFiles.ml [moved from hphp/hack/src/server/serverGenRemoteAsts.ml with 67% similarity]
hphp/hack/src/server/serverRpc.ml
hphp/hack/src/stubs/dune
hphp/hack/src/stubs/remote_files_ffi.ml [moved from hphp/hack/src/stubs/remote_asts_ffi.ml with 67% similarity]