* move stuff around inside test-common
* move timeout stuff to lapitt, where it is used
* move logging stuff to ledger/error
* move StreamConsumer to libs-scala/grpc-test-utils
* remove dead usages of test-common
* move SimpleHttpServer to a dedicated lib
* format
* final cleanup of the test-common
* add new libraries to maven
* Automated renames by bash script
This commit is exclusively contains changes by the bash script.
For the bash script is present at the pull request.
* Manual pekko migration changes
* adapt fully qualified name references
* adapt pekko package declarations
* adapt bazel files with dependency changes
* adapt canton pekko lib shade_rule
* adapt logger configuration declarations
* pin maven dependencies
* revert incorrect changes by script to compatibility module
Workarounds for further TODOs:
* disable http-json-perf and libs-scala/gatling-utils modules to maintain clean pekko dependencies (without akka)
* disable GraphQLSchemaSpec test (sangria library needs to be upgraded)
* Formatting
* add an lf-major-version flag to the repl service and pass it from the haskell client
* test LF2 in the daml-repl tests
* formatting
* formatting
* remove obsolete TODO
* fix //compiler/damlc/tests:repl
* port repl-functests to LF v2
* do not assume that LFV2 => dev
* address Moises' comments
* Revert "Add SharedGlobalKey"
This reverts commit 6592cb7bd5.
* Adding shared flag to GlobalKey
* Remove shared flag from GlobalKey
* Support old and new grcp error parsing
* Add tests for hashContractKey
* Implement vetDar and unvetDar
Blocked by canton not returning uploaded dars
* Upgrades testing infra/IT
* Fix HttpServiceTestFixture
* Fix some tests
* Fix cantonRunner for windows
* Add delay after vet actions so topology transactions can land
* Implement invalid data upgrades tests
* Add temporary internal setContractUpgradingEnabled flag to daml-script
* Switch to setProvidePackageId
* Write choice and multi-participant tests
* Formatting
* Remove unused import
* Address reviews
* Update errors
* Fix canton runner for windows
* Address review comments
* Add new proto to artifacts
* avoid pushing canton admin proto as maven artifact (#17742)
---------
Co-authored-by: Remy <remy.haemmerle@daml.com>
* Update docs for SubmitError:TemplatePreconditionViolated
* Daml.Script: add 'trySubmit{,Multi}Concurrently'
* Make trySubmitConcurrently fully sequenced when using IdeLedger
* Add test cases for trySubmitConcurrently
* Test trySubmitConcurrently in Daml3ScriptTestRunnerDev
* Handle LOCAL_VERDICT_LOCKED_{CONTRACTS,KEYS} in gRPCi Ledger Client
* Move 'trySubmit{Multi}Concurrently' to 'Daml.Script.Questions.Submit.Internal'
* Apply review feedback
* Test 'trySubmitConcurrently' using AbstractScriptTest instead of DamlScriptTestRunner
* Apply review feedback: trySubmitConcurrently returns List instead of Seq
This PR provides a basic API for ledger client to create contracts with down/up-grade support.
One can send a create Command where the payload contains
- (upgrade path) less fields than requires by the package definition (as long as the missing fields are optional), in such case the engine assume those fields are None
- (downgrade path) more fields than requires by the package definition (additional field should be node), in such case the engine drop those fields.
Here are some restrictions we assume for this first step:
- For the sake of simplicity, we forbid field reordering when upgrade is enable
- The package of explicit disclosed contract is required
- we ignore package ID complelty inside value (probably not what we want in final version)
JSON API will be served from an HTTPS endpoint if the config includes a `server.https` section.
Note https://digitalasset.atlassian.net/browse/LT-37 to enable the unit test on windows and mac systems.
* initial commit
* split gen-stable-packages-v_i into two targets
* rename compatibleWith to canDependOn
* update damlc integration tests annotation to allow for 2.x
* use the right package ID for preconditionFailed when compiling to V2
* fuse stable-packages-v1 and stable-packages-v2 into one single filegroup
* Fix DA.Daml.LF.Ast.Tests
* remove leftover 'undefined' in Version.hs
* progress on fixing DataDependencies.hs
* fix Cross-SDK typeclasses test for 2.dev
* Fix the 'Typeclasses and instances' data dependency test
* Update comment
* fix //compiler/damlc/tests:packaging
* Add TODO
* parameterize the machine by the langage version, hardcode v1 in script v2, v2 in script v2, v1 in exports
* get EngineTests to pass
* fix more tests
* fix canton integration tests
* formatting
* fix more tests
* fix transactionversiontest
* fix exceptiontest
* Fix ValueEnricherSpec
* Fix EngineInfoTest
* fix PartialTransactionSpec
* fix upgragetest
* fix TransactionSnapshot
* Fix ContractKeySpec
* Fix ReinterpretTest
* fix InterfaceViewSpec
* fix InterfacesTest
* fix stable package v1 names
* fix validate.sh tests
* formatting
* Fix ChoiceAuthorityTest
* fix explicit disclosure test
* Fix SpeedyTest
* formatting
* Fix integration test
* fix data dependency tests
* fix package vetting count, increased due to metadata being added
* Redact stable package IDs in error messages in order for the ExceptionSemantics test to work for both v1 and v2
* cleanup
* fix Daml2ScriptTestRunner
* fix JsonApiIT and daml-script golden tests
* fix daml3-script runner test
* enable v2 for all integration tests
* formatting
* fix NodeSeedsTest
* fix since-lf annotations
* add comments, improve consistency
* stop hardcoding V1 in runPureExpr and runPureSExpr
* formatting
* remove harcoding of LFv1 in ConcurrentCompiledPackages.apply
* Parameterize Compiler.Config.Default with major language version
* remove global parser implicit and default package ID and language version
* Fix the external name of daml3-script.dar to mention 2.dev
* make the compilation and distribution of daml3-script dars more future proof
* fix path in ci/copy-unix-release-artifacts.sh
- Introduces a new major version, "2", in the daml_lf proto
- Adds new major versions to the compiler and the engine
- Updates all code that assumes only one major version
- Updates all code that assumes only one dev version
* Update to rules_haskell v0.16
* Update comments re bazel patches
* clean up bazel overrides
* Upgrade to Bazel 5.2.0
* Remove '--distinct_host_configuration=false'
* Update buildifier to 6.3.2
* Suffix macos and ubuntu caches with yyyymm
* bump windows cache to v14
* [REVERTME] bump linux/macos/darwin timeout to 4h
* Refactor daml-script cli interface to be unified
* Add --upload-dar flag.
* Fix tests with new uploadDar flag
* Initial daml-script binary testing
* Tests for argument passing and failure behaviour
* add participant config and ide tests
* Add windows support to tests
* Fix missing tls error assertion
* Update changelogs
* Replace Text with AnyContractId in AdditionalInfo.templateIdentifier
Also, subsume ContractNotActive variant into AdditionalInfo
* lint
* rename contractIdentifier to something clearer
* remove ContractNotActive constructor, update indices
* add isNotActive for Daml3ScriptTrySubmit tests
* Use isNotActive on ContractNotFound instead of ContractNotActive
* Remove show instance for deleted ContractNotActive variant
* fix variant numbers for ContractNotFoundAdditionalInfo
* Expect different Daml3ScriptTrySubmit:contractNotActive per test ledger
* temp: swap expectations
* Disable cantonFixtureDebugMode check
* Add additional debugging info to ContractNotFound where possible/allowed
* import foldMap
* add variants and conversion logic for structured ContractNotFound errors
* lint
* Add Identifier for template, document invariant in ContractNotFound
* Move ContractNotFoundAdditionalInfo to ContractNotFound.AdditionalInfo
* lint
* Don't export construtors for ContractNotFoundAdditionalInfo
* Test to make sure ContractNotFoundAdditionalInfo is hidden