3821 Commits

Author SHA1 Message Date
mpilman
0d7d1a2b63 added IDE support for cmake 2019-02-15 00:01:42 -08:00
mpilman
cd6b72b492 generate coverage.target.xml files 2019-02-15 00:01:42 -08:00
mpilman
75f692b931 simplify actorcompiler and target to compile coveragetool 2019-02-15 00:01:42 -08:00
mpilman
0d01dc073b add package_html target to create tgz of html 2019-02-15 00:01:42 -08:00
mpilman
308db3772c build sphinx documentation 2019-02-15 00:01:42 -08:00
mpilman
543e6b9000 intermediate commit 2019-02-15 00:01:42 -08:00
mpilman
70545e07d8 Added documentation on how to build the jar-files 2019-02-15 00:01:42 -08:00
mpilman
1ed149e624 Add option to build fat jar 2019-02-15 00:01:42 -08:00
mpilman
f601aa7407 Make Java an optional dependency 2019-02-15 00:01:42 -08:00
Alvin Moore
44eb80b161
Merge pull request #1158 from alexmiller-apple/release-merge
Merge release-6.0 into master
2019-02-14 17:35:43 -08:00
Alex Miller
21ce26a681 Merge release-6.0 into master 2019-02-14 14:24:35 -08:00
A.J. Beamon
c37b43bff9
Merge pull request #1084 from ajbeamon/track-server-request-latencies
Track server request latencies
2019-02-14 08:57:51 -08:00
A.J. Beamon
8a17905621 Add a couple new files to CMakeLists 2019-02-14 08:08:44 -08:00
A.J. Beamon
b435d51061 Merge branch 'master' into track-server-request-latencies 2019-02-14 08:07:32 -08:00
Evan Tschannen
1694fd604f
Merge pull request #1154 from ajbeamon/release-6.0
Add release note for previous Go bindings fix.
2019-02-13 15:09:43 -08:00
Alvin Moore
17591f4616
Merge pull request #1152 from AlvinMooreSr/docker-correctness
Server Correctness Via Docker-compose
2019-02-13 12:31:25 -08:00
A.J. Beamon
9272a41e5f
Merge pull request #1146 from atn34/fix-actor-warning
Fix actor warning for cmake build
2019-02-13 11:01:37 -08:00
A.J. Beamon
2ab921b2f2 Add release note for previous Go bindings fix. 2019-02-13 10:56:22 -08:00
Andrew Noyes
1ea58c1e5e Actually change name of flag 2019-02-13 10:44:58 -08:00
Andrew Noyes
3a38bff8ee Use DISABLE_ACTOR_WITHOUT_WAIT_WARNING consistently 2019-02-13 10:30:35 -08:00
Andrew Noyes
65136a2ecd Forward declare actors with ACTOR keyword. #1148
There are several more occurrences of this, but they're in .h files that
now need to be .actor.h files. This gets the easy ones out of the way.
2019-02-12 17:56:20 -08:00
Andrew Noyes
067a445e06 Replace unused _ variables with wait(success(...)) 2019-02-12 17:30:30 -08:00
Andrew Noyes
f257cca1bc Update Void _ = wait(...) occurrences 2019-02-12 17:30:30 -08:00
Alvin Moore
c365b030c8 Added support for variable build directory 2019-02-12 17:01:04 -08:00
Alvin Moore
c325465dac Added support for a type of correctness service run against the fdbserver binary via docker-compose 2019-02-12 16:22:56 -08:00
Colin Adler
1b04f9a71a fixup! fixup! fixup! fixup! Add support for modules 2019-02-12 11:27:43 -08:00
Colin Adler
8be2de8cc2 fixup! fixup! fixup! Add support for modules 2019-02-12 11:27:43 -08:00
Colin Adler
789bc6d4ee fixup! fixup! Add support for modules 2019-02-12 11:27:43 -08:00
Colin Adler
676e1ceb73 fixup! Add support for modules 2019-02-12 11:27:43 -08:00
Colin Adler
dc38c68c76 Add support for modules
Because of how fdb-go-install.sh functions, it's necessary to use to use
the folder that the script installs to, located at
$GOPATH/src/github.com/apple/foundationdb/bindings/go. Since modules
will use the version from
$GOPATH/pkg/mod/github.com/apple/foundationdb/bindings/go and has a checksum of it
stored in go.sum, it's not possible to use this package currently with modules enabled.

I believe the solution to this problem is to use replace directives:
https://github.com/golang/go/wiki/Modules#when-should-i-use-the-replace-directive

After using the install script, adding
`replace github.com/apple/foundationdb/bindings/go => $GOPATH/src/github.com/apple/foundationdb/bindings/go`
will allow Go programs to be built normally with modules.

Note: $GOPATH cannot be used directly and must be expanded into an absolute
or relative path.

This go.mod must be added for replace directives to work correctly.
2019-02-12 11:27:43 -08:00
Colin
2f83e595cf Disable modules in Golang binding install script 2019-02-12 11:27:43 -08:00
Andrew Noyes
df3454114e Add TODO 2019-02-12 11:03:08 -08:00
Andrew Noyes
874a58cb4f Suppress actor without wait for tests in cmake 2019-02-12 11:01:17 -08:00
Andrew Noyes
8b0e593f83 Add --disable-actor-without-wait-error flag to actorcompiler 2019-02-12 11:01:17 -08:00
Andrew Noyes
d348846a10 Introduce ErrorMessagePolicy class
This encapsulates logic for how to report particular error messages.
So far only used for reporting an actor not containing a wait statement,
as this warning should be suppressed in certain contexts.

We could change other error messages to use this class, but since they
don't have any logic I don't think the extra indirection is appropriate.
2019-02-12 11:01:17 -08:00
Andrew Noyes
0116f6cf8c Add editor-generated files to .gitignore 2019-02-12 11:01:17 -08:00
Andrew Noyes
6051c8027b Allow osx tooling to understand c sharp
After this change I am able to load foundationdb.sln with vscode and get
features like jump to definition and autocomplete.
IntermediateOutputPath will now use a default value.
2019-02-12 11:00:24 -08:00
Alec Grieser
60be528f81
Merge pull request #1145 from apkar/master
Cosmetic Flow README changes.
2019-02-12 09:32:19 -08:00
Bhaskar Muppana
b717750c4f Minor README changes. 2019-02-11 21:40:14 -08:00
Alex Miller
2d7f5f505c Pass a bytestring to xml.sax.parseString
This fixes the ctest prb.

CI was broken because TestRunner errored at:

    Traceback (most recent call last):
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 373, in <module>
        res = run_simulation_test(basedir, args)
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 313, in run_simulation_test
        options.log_format, return_codes)
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 261, in process_traces
        parser.processTraces()
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 112, in processTraces
        obj = self.processLine(line, linenr)
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 222, in processLine
        xml.sax.parseString(line, handler, errorHandler=errorHandler)
      File "/usr/lib/python3.4/xml/sax/__init__.py", line 45, in parseString
        inpsrc.setByteStream(BytesIO(string))
    TypeError: 'str' does not support the buffer interface

Which means you can't parse a string to parseString.  This was fixed by
3.7, but our CI runs 3.4, so we need to .encode() `line` before passing
it, so that it ends up as a `bytes`.
2019-02-11 17:59:52 -08:00
John Brownlee
50d1b7b09d
Merge pull request #1134 from AlvinMooreSr/make-bins
Added Binaries Package Target
2019-02-11 14:01:40 -08:00
Alvin Moore
c77d75294f Added support for building via cmake when present via docker-compose
Added support for running ctests via docker-compose
2019-02-11 13:02:07 -08:00
Alec Grieser
1d12618f7d
Merge pull request #1138 from ajbeamon/python-fix-signal-handler
Python now blocks on a future in Python rather than in native code to…
2019-02-11 11:05:22 -08:00
A.J. Beamon
32b3c2ad69 Add comment for the code where we replace the semaphore in the exception handler 2019-02-11 10:35:29 -08:00
A.J. Beamon
5bf7e72fc5 If the semaphore acquire is interrupted (e.g. by a signal), then replace it with a new one so that subsequent futures will still work. 2019-02-11 10:22:19 -08:00
mpilman
6da5971e79 Guard all versions.h to not break old WIN32 build 2019-02-08 16:06:00 -08:00
A.J. Beamon
3573abf433 Update the release note to reflect that the problem was not limited to the REPL. 2019-02-08 13:56:41 -08:00
A.J. Beamon
3ec6e0ae97 Add release note. 2019-02-08 13:54:29 -08:00
A.J. Beamon
8960670694 Python now blocks on a future in Python rather than in native code to preserve Python's signal handling functionality. In particular, this means that ctrl-c will work in the REPL. 2019-02-08 13:51:01 -08:00
Alvin Moore
cbc9e651d5 Added support for python3 and cmake 2019-02-08 12:43:10 -08:00