daml/bazel_tools
Samir Talwar e54809cecc
sandbox-perf: Fix broken benchmarks and make sure they stay fixed. (#4265)
The `sandbox-perf` build has been failing for a while with the following
errors:

```
INFO: From Generating benchmark code for //ledger/sandbox-perf:sandbox-perf_codegen:
JMH benchmark generation: JMH Benchmark generator failed
JMH benchmark generation: Benchmark classes should not be final.
   [com.digitalasset.platform.sandbox.perf.LargeTransactionBench]
JMH benchmark generation: The instantiated @State class cannot be abstract.
   [com.digitalasset.platform.sandbox.perf.PerfBenchState]
```

However, these errors are ignored; running the benchmarks runs the
`AcsBench` benchmark and ignores the fact `LargeTransactionBench` and
`SimpleBench` failed to compile.

I've fixed the errors by making sure that classes are not final, and
that `SimpleBench` uses a concrete state class.

This also introduces a cheap patch to the Scala JMH Bazel rules that
makes sure they fail if there are any errors.

I'm not really sure how to patch the Bazel rules properly, but someone
else might have an idea. :-)

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
2020-01-30 08:25:25 +00:00
..
client_server update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
dev_env_tool update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
docs update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
java_testing update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
packaging update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
runfiles update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
BUILD.bazel update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
create_workspace.bzl Disable all the TS stuff on Windows (#4163) 2020-01-22 16:07:20 +01:00
docs.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
fat_cc_library.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
ghc_dwarf.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
ghci-template.sh update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
grpc-bazel-mingw.patch Bazel 1.1 (#3249) 2019-11-11 10:06:03 +01:00
grpc-haskell-core-cpp-options.patch Replace Hazel by stack_snapshot (#2743) 2019-11-22 14:24:08 +00:00
grpc-java-plugin-visibility.patch Update to bazel-0.27 (#1957) 2019-07-05 14:04:47 +00:00
haskell_public_ghci_repl_wrapper.patch Bump rules_haskell (#2585) 2019-08-19 17:29:37 +02:00
haskell-c2hs.patch Building c2hs (#355) 2019-04-10 15:12:08 +02:00
haskell-cc-wrapper-darwin-rpath-library-dirs.patch Replace Hazel by stack_snapshot (#2743) 2019-11-22 14:24:08 +00:00
haskell-ghci-grpc.patch Replace Hazel by stack_snapshot (#2743) 2019-11-22 14:24:08 +00:00
haskell-ghcide-expose-compat.patch Bump ghcide to fix GHC panics in LSP tests (#4176) 2020-01-24 08:40:57 +00:00
haskell-hie-bios.patch Bump ghc-ghcide (#2936) 2019-09-18 10:29:02 +02:00
haskell-lsp-test-no-reexport.patch Upgrade ghcide and haskell-lsp (#3499) 2019-11-18 10:56:19 +00:00
haskell-no-isystem.patch Ghc lib 8.8.0.20190723 (#2279) 2019-07-25 08:59:34 +00:00
haskell-opt.patch Default to -c opt in Bazel (#2592) 2019-08-19 17:10:30 +02:00
haskell-optional-cabal-haddock.patch stack update (#3935) 2020-01-06 10:24:15 +00:00
haskell-windows-extra-libraries.patch Update rules haskell (#2509) 2019-08-13 16:46:31 +02:00
haskell-windows-remove-fake-libs.patch stack update (#3935) 2020-01-06 10:24:15 +00:00
haskell.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
hlint.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
java.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
javadoc_library.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
os_info.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
pkg.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
pom_file.bzl Include runtime_deps in POM file generation (#4098) 2020-01-17 15:37:31 +00:00
pom_template.xml Fixes 895: Improve DA Bazel rules for building javadocs. (#896) 2019-05-14 09:40:30 +02:00
proto-zlib-url.patch Fix protobuf zlib reference (#3521) 2019-11-19 09:23:41 +00:00
proto.bzl update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
rules_nodejs_bash.patch open-sourcing daml 2019-04-04 09:33:38 +01:00
rules_nodejs_npm_cli_path.patch Bazelify daml json types (#4110) 2020-01-20 15:02:33 +00:00
scala-escape-jvmflags.patch Update to bazel-0.27 (#1957) 2019-07-05 14:04:47 +00:00
scala-fail-jmh-build-on-error.patch sandbox-perf: Fix broken benchmarks and make sure they stay fixed. (#4265) 2020-01-30 08:25:25 +00:00
scala.bzl Remove unused dependencies to da_scala_library (#3938) 2020-01-06 18:14:21 +01:00
sdk_version.bzl language: put sdk versions into package.json (#4122) 2020-01-21 15:41:40 +01:00