Commit Graph

10141 Commits

Author SHA1 Message Date
Claudio Bley
ef07f36e2d
Remove haskell-arm-m1.patch from rules_haskell_patches (#13891) 2022-05-23 16:36:22 +02:00
Robin Krom
29f79fc756
disclosures: support in engine (#13896)
* disclosures: support in engine

This adds support for contract disclosures in the engine.

Fixes #13863.

CHANGELOG_BEGIN
CHANGELOG_END

* move VersionedContractInstance to Value

* normalization/typechecking

* Update daml-lf/engine/src/main/scala/com/digitalasset/daml/lf/engine/Error.scala

Co-authored-by: Remy <remy.haemmerle@daml.com>

* Update daml-lf/engine/src/main/scala/com/digitalasset/daml/lf/engine/preprocessing/CommandPreprocessor.scala

Co-authored-by: Remy <remy.haemmerle@daml.com>

* Update daml-lf/engine/src/main/scala/com/digitalasset/daml/lf/engine/preprocessing/CommandPreprocessor.scala

Co-authored-by: Remy <remy.haemmerle@daml.com>

* remove processImmArray

* throw exception in foldl

* check for duplicate contract keys in disclosures

* added issue for removal of empty disclosure assertion

* format

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Remy <remy.haemmerle@daml.com>
2022-05-23 16:13:46 +02:00
Raymond Roestenburg
f9d20e0b88
Removed reactive components from docs. (#13940)
CHANGELOG_BEGIN
CHANGELOG_END
2022-05-23 16:12:01 +02:00
Stefano Baghino
27897c5855
Ask contributors to open an issue to discuss their design ideas (#13953)
changelog_begin
changelog_end

Also change the headers for the `Problems` and `Thank you!` sections so that they
are children of the main title. Finally, change the usage of a British spelling to
an American one to be in line with the rest of the document.

Co-authored-by: Remy <remy.haemmerle@daml.com>
2022-05-23 15:53:10 +02:00
Claudio Bley
1343dcd827
Remove da_ghc_lib job from CI (#13949) 2022-05-23 15:36:02 +02:00
Claudio Bley
46641db770
Fix build on darwin_arm64 (Apple M1) (#13951)
Co-authored-by: Claudio Bley <claudio.bley@digitalasset.com>
2022-05-23 15:34:47 +02:00
azure-pipelines[bot]
25928d8af4
update NOTICES file (#13948)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-23 15:18:33 +02:00
Remy
f6cef6ee79
notify language and canton about change in ledger-api-test-tool-on-canton (#13950)
CHANGELOG_BEGIN
CHANGELOG_END
2022-05-23 14:29:43 +02:00
Marton Nagy
fb9f10547e
ACS ID fetching rewrite [DPP-986] (#13745)
Simplifies ID fetching logic
Removes dead code / tests
Cleans up factories (Materializer not needed anymore)
Simplifies ConcurrencyLimiter interface
Adds/cleans up unit tests

CHANGELOG_BEGIN
CHANGELOG_END
2022-05-23 09:29:36 +02:00
azure-pipelines[bot]
18cf28a314
bump canton to 20220520 (#13945)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-23 08:36:32 +02:00
mziolekda
385504fd7d
Add ledger api test tool cases for expensive daml maps and lists [DPP-955] (#13821)
* add tests for large maps and lists

* add many iterations on exercise

* format

* clean up

CHANGELOG_BEGIN
CHANGELOG_END

* fix broken build

* Incorporate review comments
2022-05-19 17:13:28 +00:00
pbatko-da
931979ad14
Benchtool: Add weighted application ids and randomized extra submitters [DPP-979] (#13885)
New config sections aim at populating data for completion stream benchmarks.

Sample:
'''
submission:
    type: foo
    num_extra_submitters: 6
    application_ids:
       - id: App-1
         weight: 90
       - id: App-2
         weight: 10
'''

changelog_begin
changelog_end
2022-05-19 16:32:09 +02:00
pbatko-da
0e2c6fc60b
Benchtool: Count number of events rather than number of transactions also in exposed metrics [DPP-1048] (#13932)
changelog_begin
changelog_end
2022-05-19 16:29:37 +02:00
Gary Verhaegen
7cea9bffff
release 2.0.1 (#13930) 2022-05-19 15:26:57 +02:00
Remy
a3cccbc6eb
Update GHC (#13917)
with digital-asset/ghc#120

fixes #13915

CHANGELOG_BEGIN
CHANGELOG_END
2022-05-19 12:52:46 +00:00
azure-pipelines[bot]
0b8a83a840
update NOTICES file (#13929)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-19 13:13:24 +02:00
Andreas Herrmann
18a9c93549
Bazelify ghc-lib (#12508)
Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
Co-authored-by: Claudio Bley <claudio.bley@digitalasset.com>
2022-05-19 10:49:16 +02:00
pbatko-da
a4426b0bc4
Benchtool: Count number of events rather than number of transactions [DPP-1048] (#13913)
changelog_begin
changelog_end
2022-05-19 08:04:26 +00:00
azure-pipelines[bot]
5c55189675
bump canton to 20220518 (#13928)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-19 09:14:55 +02:00
Raymond Roestenburg
e3f01870a3
Added readyz endpoint. (#13902)
CHANGELOG_BEGIN
The ‘/readyz’ endpoint has been added to the trigger service to support readiness probes.
CHANGELOG_END
2022-05-19 08:34:26 +02:00
Gary Verhaegen
a6dac18fb9
notify on Canton bumps (#13909)
CHANGELOG_BEGIN
CHANGELOG_END
2022-05-18 21:09:27 +02:00
azure-pipelines[bot]
68690eb0c8
update compat versions (2022-05-18) (#13907)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-18 21:08:41 +02:00
azure-pipelines[bot]
f0832b731d
rotate release duty after 2022-05-18 (#13906)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-18 12:43:43 -04:00
Moisés Ackerman
fedfd5ad4a
data-dependencies: Constraint synonym context on class (#13916)
* Add failing test case

* Use convTypeLiftingConstraintTuples for superclasses

changelog_begin
* data-dependencies: fixed an issue with the handling of constraint synonyms in superclasses (#13916)"
changelog_end
2022-05-18 18:04:37 +02:00
Remy
0c07e426c1
Interface: conformance test of Interface (#13884)
part of #13653

CHANGELOG_BEGIN
CHANGELOG_END
2022-05-18 12:58:45 +00:00
Stefano Baghino
015c04f554
Update references to release coordination (#13911)
Coordinating the full stable release process now happens in a
single place, for which I added a link. Release testing coordination
is now handled by a single person, with clearly defined responsibilities
and handover of tasks.

changelog_begin
changelog_end
2022-05-18 12:50:36 +00:00
Remy
f4338bdece
Trigger: return less confusing message when trigger is not found. (#13904)
* Trigger: return less confusing message when trigger is not found.

fixes #13893

CHANGELOG_BEGIN
CHANGELOG_END
2022-05-18 09:31:16 +00:00
azure-pipelines[bot]
704cfea9a2
bump canton to 20220517 (#13905)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-18 10:20:00 +02:00
pbatko-da
2ab5233a52
Benchtool: changes before adding weighted application ids and extra submitters [DPP-979] (#13886)
changelog_begin
changelog_end
2022-05-17 17:53:21 +02:00
pbatko-da
e1b7d120b4
Benchtool: Move observers to a test-lib target [DPP-979] (#13892)
changelog_begin
changelog_end
2022-05-17 14:40:31 +02:00
pbatko-da
e9091279c0
Benchtool: Improve assertion for non-stakeholder informees test [DPP-978] (#13894)
changelog_begin
changelog_end
2022-05-17 14:38:17 +02:00
Moritz Kiefer
13b69b3004
Fix locations for LF errors (#13895)
* Fix locations for LF errors

fixes #13837

changelog_begin

- [Daml Compiler] Fix locations of certain types of error messages, e.g., missing interface methods.

changelog_end
2022-05-17 13:45:58 +02:00
azure-pipelines[bot]
4d3c4abe88
update NOTICES file (#13890)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-17 13:41:23 +02:00
Remy
ea0d101913
Interface: Rename fixedChoice to choice (#13883)
CHANGELOG_BEGIN
CHANGELOG_END
2022-05-17 12:03:53 +02:00
Marton Nagy
fee168ca6e
Removes exclusion of canton conformance-test [DPP-1018] (#13888)
CHANGELOG_BEGIN
CHANGELOG_END
2022-05-17 09:47:55 +02:00
Marton Nagy
de6da71083
Minor readability fix: makes timeout related code more obvious (#13813)
CHANGELOG_BEGIN
CHANGELOG_END
2022-05-17 01:25:58 +02:00
Remy
6f6a3052a1
Repurpose templateId in ExerciseCommand and add interfaceId in ExerciseEvent (#13660)
part of #13653

CHANGELOG_BEGIN
CHANGELOG_END
2022-05-16 15:30:07 +00:00
pbatko-da
aad0e05533
Benchtool: Improve payload size handling [DPP-1028] (#13838)
Previous approach was generating random bytes
and encoding them into UTF-8 strings.
This turned out to be problematic as not every
random byte sequence is valid in the UTF-8 charset, and
`java.lang.String#String(byte[], java.lang.String)` constructor's
documentation states that in such cases its behavior
is unspecified.

In practice the size of the byte array obtained from decoding the
generated string was almost twice the size of the orginal byte array.

Current approach limits the generated bytes to valid ASCII characters,
each of which takes exactly one byte in UTF-8 encoding.

changelog_begin
changelog_end
2022-05-16 15:27:33 +02:00
pbatko-da
724a0c1b1a
Benchtool: Non-stakeholder informees generation [DPP-978] (#13808)
We obtain non-empty non-stakeholder informees by performing an immediate divulgence of instances of Foo1, Foo2 or Foo3 templates through instances of a helper Divulger template.
The divulgence is controlled by 1) configuring the number of all divulgees to generated and 2) probabilistically picking a non-empty subset from all divulgees for each contract (similar to how observers are picked for each contract with certain probabilities). If the divulgees for a contract are non-empty a Foo1, Foo2 or Foo3 contract is created via a helper choice on a Divulger contract. Otherwise a standard create Foo1, Foo2 or Foo3 command is issued.

Each Divulger contract can divulge any number of Foo1, Foo2 or Foo3 contracts but it's limited to divulging to a fixed set of divulgees. In other words, there is a separate Divulger contract for each non-empty subset of all divulgees.
We expect the set of all divulgees to be very small in practice similar to how only a small number observers (currently at most 3) is currently configured for existing benchmarks. Thus, the set of all subsets is also small.
To be conservative, we allow the number of divulgees to be at most 5.

changelog_begin
changelog_end
2022-05-16 15:27:03 +02:00
Stefano Baghino
3794012e11
Release 2.2.0 (#13878)
* Release 2.2.0

changelog_begin
changelog_end

Used 7eb82443a8/LATEST as pointed to by https://github.com/DACH-NY/assembly/pull/141 to retrieve the commit.

* Address https://github.com/digital-asset/daml/pull/13878#issuecomment-1127456190
2022-05-16 13:00:11 +02:00
azure-pipelines[bot]
3fb75622f5
update NOTICES file (#13877)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-16 11:01:29 +02:00
Gary Verhaegen
7434fb0f86
fix build-and-lint (#13876)
To be clear, this is a hotfix. Whoever is responsible for this test
should provide a more comprehensive fix with a fairly high degree of
urgency.

Current main is broken because we have a transitive dependency on
`@types/prettier` with a version constraint of `"*"`, and the latest
version (`2.6.1`) is not compatible with our pinned-down version of the
TypeScript compiler (`3.8.3`). A short-term solution would seem to be to
generally bump most of our npm dependencies in this test.

Currently, main tests are _not_ failing because they're still using the
cache, which has a success for this test (and its inputs, as far as
Bazel can determine, have not changed). This is in my opinion a more
important failure (that it doesn't fail), and so a proper fix of this
issue should include pinning down all of our transitive dependencies
(not just `@types/prettier` as I've done here). Arguably _in addition
to_ bumping most of them to recent-ish versions.

The daily releases break because the version string invalidates the
cache, which is how the problem surfaced.

CHANGELOG_BEGIN
CHANGELOG_END
2022-05-16 10:55:16 +02:00
azure-pipelines[bot]
e3f51b47bd
bump canton to 20220513 (#13873)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-15 14:05:51 +02:00
azure-pipelines[bot]
14a7c0d0ba
update NOTICES file (#13875)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-05-15 14:05:37 +02:00
Gary Verhaegen
e9dc1efe2b
ci: bump Windows vmImage to 2022 (#12557)
Azure is telling us to stop using 2019, so I've updated the job to be
compatible with 2022. (And future Windows images, too.)

CHANGELOG_BEGIN
CHANGELOG_END
2022-05-12 15:02:43 +00:00
Stephen Compall
30e9b87279
minimal Scala codegen interface support (#13858)
* add inherited choices for Scala codegen, test output exercises

CHANGELOG_BEGIN
- [scala codegen] Choices inherited from interfaces may be exercised
  directly from those templates via ``createAnd``, contract ID, or
  exercise-by-key.  Exercise by interface-contract-ID and
  interface-contract-ID types in signatures are not supported.
  See `issue #13858 <https://github.com/digital-asset/daml/pull/13858>`__.
CHANGELOG_END
2022-05-12 08:03:00 -04:00
Stephen Compall
59498586a5
Override annotation for create; add toValue to Template (#13859)
CHANGELOG_BEGIN
- [daml codegen java] Templates now have a generic ``toValue`` method.
  See `issue #13859 <https://github.com/digital-asset/daml/pull/13859>`__.
CHANGELOG_END
2022-05-12 07:58:56 -04:00
Moisés Ackerman
3e2853d537
Add note on using da-hls on other bazel targets (#13868) 2022-05-12 13:39:46 +02:00
Gary Verhaegen
a7d46d25ce
remove workspace_status.sh (#13866)
This script was introduced to control the date printed in the sitemap.
The sitemap is now produced in the docs repo, so there's little point in
keeping this mechanism.

Moreover, the stamp on the docs build means it gets rebuilt on every
change to the date, i.e. every day, which isn't good for caching.

CHANGELOG_BEGIN
CHANGELOG_END
2022-05-12 12:41:27 +02:00
Victor Peter Rouven Müller
544c6fd33e
Change dir to the repo root folder when trying to start the Haskell Language Server (#13867)
changelog_begin
changelog_end
2022-05-12 10:21:13 +00:00