Commit Graph

10134 Commits

Author SHA1 Message Date
azure-pipelines[bot]
94342f513c
bump canton to 20220627 (#14284)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-28 07:23:11 +00:00
Claudio Bley
6f31303a66
Fix CI build on windows (#14279)
Prior to this change the installation of msys2 would fail because packages fail
to validate their signature:

```
:: File /var/cache/pacman/pkg/perl-HTTP-Cookies-6.10-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP s
ignature)).
Do you want to delete it? [Y/n]
error: perl-Net-SSLeay: signature from "David Macek <david.macek.0@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/perl-Net-SSLeay-1.90-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP
signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package)
```

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2022-06-28 00:03:33 +02:00
azure-pipelines[bot]
24018435be
bump canton to 20220624 (#14270)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-27 13:16:35 +02:00
pbatko-da
7cd677e367
[ETQ-Testing] Prepare Benchtool for extending it to support huge party filters [DPP-1079] (#14246)
This a preparation before the adding support for huge party filters.

Some of the changes:
1. Scan for existing parties even if when there is not submission step configured so that we can enrich stream configs fully.
NOTE: ConfigEnricher will now never fail on missing party.
2. Extract party selection for contract creation to a separate class.
3. Expose `commandGenerationParallelism` and a couple of randomness providers to allow for reproducible party allotment to contracts - useful in tests.
4. Extract `benchtoolFixture` to reduce boilerplate in IT tests


changelog_begin
changelog_end
2022-06-24 09:33:05 +00:00
azure-pipelines[bot]
698ddc6372
bump canton to 20220623 (#14269)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-24 09:35:53 +02:00
Moisés Ackerman
0d1ef10472
Retroactive Implements - Scala side (#14130)
* Add CoImplements to daml-lf AST

* Add AstSpec case for duplicate co-implements in interface

* Add placeholders for CoImplements in daml-lf validation

* Handle CoImplements in daml-lf iterators

* Handle CoImplements in daml-lf scala decoder

* Test DefInterface components in DecodeV1Spec

* Handle CoImplements in daml-lf (testing) parser

* Handle CoImplements in daml-lf (testing) encoder

changelog_begin
changelog_end
2022-06-23 17:13:38 +00:00
azure-pipelines[bot]
d74af21e90
bump canton to 20220622 (#14253)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-23 12:05:23 +02:00
carrielaben-da
c2cd6141ce
Add the Parties and Users Blog Post to the docs (#14190)
* Add the Parties and Users Blog Post to the docs

[CHANGELOG_BEGIN]

Adding the blog post that addresses changes in parties and users from 1.18 to 2.0 to our permanent documentation

[CHANGELOG_END]

* Update parties-users.rst

[CHANGELOG_BEGIN]
Adjusted for @jwhyte-da's comment
[CHANGELOG_END]

* Update docs/source/app-dev/parties-users.rst

[CHANGELOG_BEGIN]
[CHANGELOG_END]

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Update docs/source/app-dev/parties-users.rst

[CHANGELOG_BEGIN]
[CHANGELOG_END]

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Update docs/source/app-dev/parties-users.rst

[CHANGELOG_BEGIN]

[CHANGELOG_END]

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Update docs/source/app-dev/parties-users.rst

[CHANGELOG_BEGIN]
[CHANGELOG_END]

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Update docs/source/app-dev/parties-users.rst

[CHANGELOG_BEGIN]
[CHANGELOG_END]

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Update parties-users.rst

[CHANGELOG_BEGIN]
Addressing comments; removed SDK 1.8 and earlier section
[CHANGELOG_END]

* fix links

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
Co-authored-by: Stephen Compall <stephen.compall@daml.com>
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2022-06-22 12:58:29 -04:00
Gary Verhaegen
665411203a
docs: fix daml-types link (#14247)
As reported by @benm-da.

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-22 13:54:18 +00:00
Gary Verhaegen
9aec01853b
ci: unpin Ubuntu image (#14143)
Cleaning up after #14126

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-22 13:56:05 +02:00
azure-pipelines[bot]
917fe3db39
update NOTICES file (#14242)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-22 13:36:32 +02:00
Gary Verhaegen
9cffbdffce
bump nightly prefix (#14243)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-22 11:24:23 +00:00
azure-pipelines[bot]
09e1e655ea
bump canton to 20220621 (#14241)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-22 08:48:11 +02:00
carrielaben-da
2ea1c7402f
Fix for unclear installation instructions (#14083)
* Fix for unclear installation instructions

An attempted fix to the unclear installation instructions. This is based on the most recent version of Canton installation instructions I could find from before the merge, dated Dec. 22, 2021

[CHANGELOG_BEGIN]

[CHANGELOG_END]

* Update docs/source/getting-started/installation.rst

[CHANGELOG_BEGIN]

[CHANGELOG_END]

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-06-21 15:20:49 -04:00
Simon Maxen
6a1e3afb71
Switch rate limiting to using self service error codes [DPP-1000] (#14216)
* Switch rate limiting to using self service error codes

changelog_begin
Rate limiting updated to use self service error codes.
changelog_end
2022-06-21 16:49:22 +01:00
azure-pipelines[bot]
a7244b84ca
bump canton to 20220620 (#14232)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-21 16:51:25 +02:00
Gary Verhaegen
feb53f96c1
infra: tighten TLS security (#14239)
This tightens our TLS configuration a bit, mostly by dropping support
for SSL3, TLS1.0 and TLS1.1 on https://hoogle.daml.com,
https://bazel-cache.da-ext.net, https://nix-cache.da-ext.net and the
daml-binaries front (which I don't think we still use).

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-21 14:37:24 +00:00
Moisés Ackerman
a2f2c859a8
Document explicitly transitive 'requires' for interfaces (#14236)
changelog_begin
changelog_end
2022-06-21 15:59:26 +02:00
azure-pipelines[bot]
05a9274861
update NOTICES file (#14233)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-21 15:50:38 +02:00
dylant-da
2edd4c00f4
Add --ghc-repo-override flag to override GHC used in daml-sdk-head build (#14238)
* Add --ghc-repo-override flag to override GHC used in daml-sdk-head build

CHANGELOG_BEGIN
CHANGELOG_END

* Add BAZEL_MODE_FLAGS to third `bazel build` call
2022-06-21 14:26:34 +01:00
Sergey Kisel
4cc98fe715
Fix compilation problem after PR merge (#14237)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-21 11:36:40 +00:00
Sergey Kisel
6a80a1a82f
Removal of sandbox-classic module and binary (#14201)
* Removal of sandbox-classic module and binary

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-21 11:09:51 +02:00
pbatko-da
aa8ad32304
[Benchtool] Package Benchtool related Daml modules separately from other modules [DPP-1089] (#14231)
Recent changes in //ledger/test-common in Daml modules changed the fully qualified names of templates used by Benchtool, even though they hadn't been changed directly.

This made it impossible to filter by template name in a recently created LR IndexDB snapshot.

To avoid spurious changes in fully qualified template names (from Benchtool perspective) we are now packaging Benchtool related Daml modules separately from other modules

changelog_begin
changelog_end
2022-06-21 10:38:15 +02:00
pbatko-da
c575d598ff
[ETQ-TESTING] Fix slow flat transactions stream [DPP-1090] (#14187)
changelog_begin
changelog_end
2022-06-21 09:15:08 +02:00
Moisés Ackerman
f4211b709f
data-dependencies: generate opaque constructor for interfaces (#14228)
* Add simpleImportTestOptions helper

* Add failing test

* data-dependencies: Generate opaque constructor for interfaces

changelog_begin
changelog_end

* Add comment in test case
2022-06-20 17:49:12 +02:00
pbatko-da
13d7389aa7
[Benchtool] Allow for setting a timeout for every stream [DPP-1088] (#14226)
changelog_begin
changelog_end
2022-06-20 15:37:43 +02:00
Gary Verhaegen
b230c1dbee
1.18.3-rc (#14223)
Includes:

* https://github.com/digital-asset/daml/pull/14221
* https://github.com/digital-asset/daml/pull/14214

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-20 13:39:16 +02:00
Moisés Ackerman
d4d78fc6c4
Use rst_prolog to define typescript link targets (#14225) 2022-06-20 13:14:10 +02:00
azure-pipelines[bot]
2a50c6e509
update NOTICES file (#14222)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-20 11:09:49 +02:00
Remy
5b139bea60
add regression test for #14171 in conformance test (#14212)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-20 07:41:50 +00:00
azure-pipelines[bot]
253b0b186c
bump canton to 20220617 (#14218)
* bump canton to 20220617

CHANGELOG_BEGIN
CHANGELOG_END

* activate conformance test for regression test for exceptions

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2022-06-19 23:10:22 +00:00
Gary Verhaegen
d6dd03751f
cron: faster check_releases (hopefully) (#14209)
The check_releases job has been a major player in the flakiness of the
daily test lately, simply by _timing out_ despite its 6h limit.

There are smarter, more "permanent" fixes we could implement here, but
as a quick stopgap measure I wanted to try out how much faster we would
go if we didn't need to reestablish a GCloud identity for each file.

CHANGELOG_BEGIN
CHANGELOG_END

run-full-compat: true
2022-06-17 17:56:51 +02:00
azure-pipelines[bot]
658ae99100
update NOTICES file (#14211)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-17 10:39:19 +02:00
azure-pipelines[bot]
fc916922da
bump canton to 20220616 (#14210)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-17 07:22:09 +00:00
Remy
2ddd744a91
[Engine] fix and test #14175 (#14206)
follow up of #14175

this is part of #14171

CHANGELOG_BEGIN
CHANEGELOG_END
2022-06-16 22:45:50 +02:00
Gary Verhaegen
e78303332a
docs: fix top-level update function (#14204)
After yet another report of a ghost file, I stared at the code even
harder than before and finally figured out what was going wrong (or at
least one way it was going wrong): `listDirectory` is not recursive, so
the current code would only delete top-level files.

Hopefully this fixes that. I'll try to do some manual cleanup too.

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-16 18:42:39 +00:00
Gary Verhaegen
3e8a49cdae
scala quickstart: remove examples (#14207)
These are not referenced from anywhere in the repo, and running them
manually is made very annoying by the removal of the Scala codegen and
the `quickstart-scala` template.

If they were deliberately kept to serve as examples of using the Scala
bindings (which I understand are still in use despite being deprecated),
I think we should find another way to keep that bit of documentation
alive, specifically a way that actually gets tested.

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-16 19:16:05 +02:00
Gary Verhaegen
64f83228bd
dev-env: remove (broken) ipython symlink (#14208)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-16 19:14:17 +02:00
Stephen Compall
707c3e1a52
accept standard hlists as record/variant specs (#14167)
* link to #14189

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Raymond Roestenburg <98821776+ray-roestenburg-da@users.noreply.github.com>
2022-06-16 15:05:50 +00:00
nickchapman-da
44a14d06c9
Regression test for rollback create bug (#14197)
* Regression test for issue 14148

changelog_begin
changelog_end

* update compatability
2022-06-16 14:58:19 +00:00
Sergey Kisel
b1d8c14c55
Removal of Sandbox Classic in Haskell code [DPP-1073]. (#14127)
* Removal of Sandbox Classic in Haskell code.

CHANGELOG_BEGIN
CHANGELOG_END

* Further sandbox-classic removals

* Upload dar files when withSandbox is used.

* fix formatting

* Moved upload of dars in createSandbox.

* Fixed test by passing the token before the token file is created.

* Added implicit party allocation argument for haskell tests.

* DPP-1073 Infer sandbox token from the shared secret.

* Different slicing of runLedgerUploadDar

Co-authored-by: Andreas Triantafyllos <andreas.triantafyllos@digitalasset.com>
Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-06-16 14:14:39 +02:00
Remy
2d5094160e
[Engine] clean key uniqueness mode (#14194)
This is a follow up of #14175 and #14176.  

Basically
-  we kill the `On` mode which is not used anymore.
- we factorize the visibility check.
- we rename `LocalContractNotVisible` into `ContractNotVisible`

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-16 12:04:45 +00:00
Claudio Bley
21ef82066a
Drop haskell-rts-docs.patch and haskell-ghc-includes.patch (#14045)
* Update rules_haskell version and hash

* remove `haskell-rts-docs.patch`
* remove `haskell-ghc-includes.patch`

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-16 13:52:24 +02:00
Gary Verhaegen
3177786b1d
start: work with console (#14178)
This fixes the bug reported by `kctam` on [the forum]: that

[the forum]: https://discuss.daml.com/t/daml-start-then-using-daml-canton-console-to-access/4723

```
daml start
```

followed by

```
daml canton-console
```

doesn't work (because the console can't know which ports to connect to).

I'm very much not familiar at all with this area of the repo, so it's
possible this is not the right approach to solving that at all. Please
feel free to close and solve it in a better way if you know better.

CHANGELOG_BEGIN
- When using `daml start` (with no sandbox port configured in
  `daml.yaml`), the sandbox ports will no longer be random, and
  instead be the same ports as a plain `daml sandbox`.
CHANGELOG_END
2022-06-16 08:47:39 +00:00
azure-pipelines[bot]
ef20062997
bump canton to 20220615 (#14193)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-16 07:27:04 +00:00
Moisés Ackerman
78cc57b243
Add failing daml-test-file (#14176)
fix #14171

CHANGELOG_BEGIN

* [Bugfix] fix failing by-key ops after roll-backed archive and create
  See https://github.com/digital-asset/daml/issues/14171

CHANGELOG_END
2022-06-15 20:00:04 +00:00
dylant-da
90f0bf8ba0
Display key used by exerciseByKey and fetchByKey in transaction log (#14035) (#14162)
* Show key in transaction log when exercising by key

* Only show key if key was actually used

* Show key if used by a fetch in transaction view

* Add test for key showing up in log on fetch/exercise

* CHANGELOG_BEGIN
Display key used by exerciseByKey and fetchByKey in transaction log
CHANGELOG_END

* Dummy commit for CHANGELOG

changelog_begin
changelog_end

* Use "by key" instead of "using key", to better match function names

* Test that key is only reported when ByKey is used
2022-06-15 16:50:35 +00:00
nickchapman-da
b023bebfda
Track locally created contracts correctly through rollback. (#14163)
changelog_begin
changelog_end

temp mod to get build

 make sure to maintain localContractSet

engine test for: ExerciseAfterRollbackCreate

fix ContractStateMachineSpec testcases and add new case

rebase and fix build failure

fix test (and comment)

fix evaluation order test fails: revert the failure back to be the expected ContractNotActive, instead of ContractNotFound

improve new test (creates in try are rolled back) to check the DamlException thrown

remove ptx.localContracts. instead use ptx.contractState.locallyCreated

improve test name

un-inline ActiveLedgerState.consume

Set() --> Set.empty

add comments for new components of ContractStateMachine

combine checks: consumedBy / inactive

improve comments, doc and test-evidence
2022-06-15 15:09:37 +00:00
Moritz Kiefer
4357310bad
Improve docs on ContractStateMachine (#14185)
* Improve docs on ContractStateMachine

Based on Matthias suggestions.

changelog_begin
changelog_end
2022-06-15 16:50:23 +02:00
Remy
7a4fc9f5fe
Engine: systematic check of visibility for by-key operations (#14175)
instead of only for local contract

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-15 15:15:45 +02:00