daml/compatibility
Moritz Kiefer d93b7b2513
Factor out generic types from migration tests (#6360)
* Factor out generic types from migration tests

This PR factors out `Event` and `Transaction` so we can reuse them for
different tests. To make that work we simply remove the type parameter
from ContractId which didn’t help much anyway and store the undecoded
JSON value in the constructors. The use sites are basically unchanged
thanks to pattern synonyms which match the old constructors.

changelog_begin
changelog_end

* Explain missing package id

changelog_begin
changelog_end
2020-06-16 11:10:22 +02:00
..
bazel_tools Validate data-dependencies test DARs (#6320) 2020-06-12 17:21:00 +00:00
head_sdk Include the first feature in compat tests for create-daml-app (#6002) 2020-05-18 14:37:16 +02:00
sandbox-migration Factor out generic types from migration tests (#6360) 2020-06-16 11:10:22 +02:00
versions Prune SDK versions in compat tests (#6325) 2020-06-12 17:03:38 +02:00
.bazelignore Extend compatibility tests to test against HEAD (#5714) 2020-04-24 14:43:35 +02:00
bazel-haskell-deps.bzl Use a custom Scala binary for the sandbox migration tests (#6140) 2020-05-28 15:02:54 +02:00
BUILD Validate data-dependencies test DARs (#6320) 2020-06-12 17:21:00 +00:00
build-release-artifacts-windows.ps1 remove bazel cleanup (#6331) 2020-06-12 20:21:45 +02:00
build-release-artifacts.sh Include the first feature in compat tests for create-daml-app (#6002) 2020-05-18 14:37:16 +02:00
build-ts-libs.sh Include create-daml-app tests in compatibility tests (#5945) 2020-05-13 10:39:51 +02:00
deps.bzl upgrade rules_haskell (#6284) 2020-06-10 17:21:31 +02:00
maven_install.json Use a custom Scala binary for the sandbox migration tests (#6140) 2020-05-28 15:02:54 +02:00
README.md Document how to use compatibility sub-dir (#6194) 2020-06-02 16:37:41 +00:00
stack-snapshot.yaml Initial boilerplate for cross-version compatibility testing (#5665) 2020-04-23 12:58:11 +02:00
test-windows.ps1 remove bazel cleanup (#6331) 2020-06-12 20:21:45 +02:00
test.sh Make compat tests work on windows (#5732) 2020-04-28 16:06:36 +02:00
update-versions.sh Update SDK versions in compatibility tests (#5844) 2020-05-05 19:40:03 +02:00
versions.bzl Prune SDK versions in compat tests (#6325) 2020-06-12 17:03:38 +02:00
WORKSPACE Prune SDK versions in compat tests (#6325) 2020-06-12 17:03:38 +02:00
workspace_status.sh Initial boilerplate for cross-version compatibility testing (#5665) 2020-04-23 12:58:11 +02:00

This directory contains the infrastructure and test setup for cross-version compatibility testing. We make this a separate Bazel workspace to make it easier to enforce that we only depend on release artifacts.

How to

Before using this, make sure to always run the scripts that build the SDK, namely ./build-release-artifacts.sh and ./build-ts-libs.sh. These should be run every time there is a relevant change you want to be there for this workspace to use.

Any Bazel command can then be used afterwards. ./test.sh are the tests run on CI.