daml/compatibility/bazel_tools
Moritz Kiefer 34ae06414e
Speed-up create-daml-app compat tests (#6087)
Previously we ran `daml codegen js` and `daml build` in the tests and
we also ran it twice. While this makes sense for the SDK integration
tests, it doesn’t really make sense for the compatibility tests. These
are SDK-only features so they don’t actually test compatibility. These
steps are super slow and running them in the tests also means that we
run them a quadratic number of times.

This PR moves the `daml build` and the `daml codegen js` step to
separate genrules. In the actual test, the only expensive steps are to
run `yarn install` and the actual jest tests. In principle, we could
probably try to factor out the `yarn install` step as well but I’m a
bit scared of coyping around node_modules so I’ll not attempt to do
that for now.

changelog_begin
changelog_end
2020-05-25 16:25:10 +02:00
..
client_server Randomize postgres ports in compatibility tests (#5880) 2020-05-07 09:46:06 +02:00
create-daml-app Speed-up create-daml-app compat tests (#6087) 2020-05-25 16:25:10 +02:00
daml_ledger Include create-daml-app tests in compatibility tests (#5945) 2020-05-13 10:39:51 +02:00
daml_script Implement version name shortening for Windows (#5863) 2020-05-06 11:48:07 +00:00
test_utils Include create-daml-app tests in compatibility tests (#5945) 2020-05-13 10:39:51 +02:00
BUILD Include puppeteer tests in compat tests (#6018) 2020-05-22 14:02:59 +02:00
create_daml_app_test.sh Speed-up create-daml-app compat tests (#6087) 2020-05-25 16:25:10 +02:00
daml_ledger_test.sh Include daml ledger tests in compatibility tests (#5740) 2020-04-27 16:13:16 +00:00
daml_sdk.bzl Include puppeteer tests in compat tests (#6018) 2020-05-22 14:02:59 +02:00
daml.cc.tpl Include puppeteer tests in compat tests (#6018) 2020-05-22 14:02:59 +02:00
sandbox-with-postgres.sh Add basic Sandbox data continuity tests (#5826) 2020-05-05 14:46:58 +02:00
testing.bzl Speed-up create-daml-app compat tests (#6087) 2020-05-25 16:25:10 +02:00
versions.bzl Implement version name shortening for Windows (#5863) 2020-05-06 11:48:07 +00:00