Commit Graph

11182 Commits

Author SHA1 Message Date
yves-da
440b582ebe
Improve Daml introduction text (#15943)
Removes superfluous second sentence which also assumes the reader to be familiar with object-oriented programming.

CHANGELOG_BEGIN
CHANGELOG_END
2022-12-20 14:20:15 +01:00
azure-pipelines[bot]
52c15f3bc5
bump canton to 20221219 (#15940)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-12-20 13:14:02 +00:00
pbatko-da
d950de300c
Exclude ACS pruning tests from running against Canton community (#15944) 2022-12-20 12:13:36 +00:00
Sergey Kisel
40896a8c13
Restrict update party of non-local details (#15913)
* Restrict update party non-local details

* Removing the test which would fail otherwise.
Update the doc

* Update ledger-api/grpc-definitions/com/daml/ledger/api/v1/admin/party_management_service.proto

Co-authored-by: pbatko-da <pawel.batko@digitalasset.com>

Co-authored-by: pbatko-da <pawel.batko@digitalasset.com>
2022-12-20 10:40:03 +01:00
atriantafyllos-da
68ba24ab58
Upgrade daml libraries (junit, auth0, caffeine, guava, awaitility) (#15916)
Upgraded:
* junit
* auth0
* caffeine
* guava
* awaitility
2022-12-20 09:50:10 +01:00
Claudio Bley
c64471c28d
Remove duplicate FailureTests classes (#15937)
These have been split up into separate files already, see #13290.
2022-12-20 09:21:45 +01:00
oliverse-da
4ba8077263
Fix for canton documentation build (#15936)
Canton extracts metric metadata for documentation via reflection
and needs the fields summary and description fields to be literal
strings to avoid the following error:

```
Failed to process Tag annotation:
            |summary and description need to be constant-string, i.e. don't apply stripmargin here ...),
            |and MetricQualification must be an object of MetricQualification:
            |new com.daml.metrics.api.MetricDoc.Tag("Number of events that will be metered", scala.Predef.augmentString("Represents the number of events that will be included in the metering report.\n        |This is an estimate of the total number and not a substitute for the metering report.").stripMargin, com.daml.metrics.api.MetricDoc.MetricQualification.Debug)
```

CHANGELOG_BEGIN
CHANGELOG_END
2022-12-20 08:05:36 +00:00
Chun Lok Ling
8bcd24f945
LineBuffering for stdout, stderr in Assistant/daml-helper (#15931)
* LineBuffering for stdout, stderr

* move to the top

* address comment
2022-12-19 19:40:00 +00:00
Chun Lok Ling
206510b916
JSON encoding of Java codegen classes (#15909)
* Json toJsValue

* JsonCodec

* maven tag

* doc

* Apply suggestions from code review

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

* address comments

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-12-19 18:55:01 +00:00
Stephen Compall
1f31d2dce2
use LF 1.15 instead of dev for interface-related bazel tests (#15923) 2022-12-19 13:40:45 -05:00
Raymond Roestenburg (Actually RayRoestenburg)
3af878c4ad
Docs: custom views code example fix. (#15928) 2022-12-19 14:31:45 +00:00
Remy
e94f1a74a9
Reactive requires in surface language (#15570) 2022-12-19 09:28:43 +01:00
Remy
c37d4a257b
[Trigger] Batch messages in case of backpressure (#15902)
Co-authored-by: Carl Pulley <carl.pulley@digitalasset.com>
Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
Co-authored-by: Carl Pulley <106966370+carlpulley-da@users.noreply.github.com>
2022-12-19 09:28:02 +01:00
Sergey Kisel
9d007b3174
Clarify an empty user_id and identity_provider_id semantics (#15912) 2022-12-18 11:34:36 +01:00
azure-pipelines[bot]
32f81c9ad1
bump canton to 20221216 (#15924)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-12-17 22:23:03 +01:00
Stephen Compall
2893e26872
fix MAXIMUM_NUMBER_OF_STREAMS errors when doing many websocket queries (#15733)
* log more termination

From the timeout loop:

+ fmm-outer
+ fmm-inner
x ACS-before-tx
x tx-after-ACS

* spam eagerCancel=true and see what happens

From the timeout loop:

+ after-split
+ IDSS-outer
+ fmm-outer
+ contractsAndBoundary
+ tx-after-ACS
+ fmm-inner
+ GTSFP-outer
x ACS-before-tx

* passing acs-and-tx tests

* trying combinations of reverting eagerCancel settings

- setting eagerCancel = false in acsAndBoundary causes the ACS
  cancellation to fail (first test), but the tx cancellation still
  succeeds

- setting eagerCancel = false in project2 causes both the ACS and tx
  stream cancellation tests (first and third tests) to fail

- the offset broadcast in acsFollowingAndBoundary appears to be
  redundant with respect to cancellation, so we revert it in the
  interest of conservatism

* make test size small

* current measurement

Still fine after the refactoring of logTermination and removal of fmm-*.

+ GTSFP-outer
+ contractsAndBoundary
x IDSS-outer-2
+ after-split
+ tx-after-ACS
+ IDSS-outer-1
x ACS-before-tx

* set level of the logTermination messages to trace
2022-12-16 16:41:08 -05:00
oliverse-da
33bc838871
Flaky test fixes for Canton deduplication tests (#15914)
* Flaky test fixes for Canton deduplication tests

The earlier fix 936594f5 that added SubmissionAlreadyInFlight as a
second option next to DuplicateCommand had two shortcoming addressed
here:

- SubmissionAlreadyInFlight is raised at submission time, so the tests
  in CommandDeduplicationIT that expect a Completion still flaked.
- Checking checkDefiniteAnswerMetadata was incorrectly also expected
  on SubmissionAlreadyInFlight.

The new approach issues one single retry after backoff when a transient
SubmissionAlreadyInFlight is encountered.

CHANGELIST_BEGIN
CHANGELIST_END

* Review feedback by Nicu
2022-12-16 20:33:18 +00:00
atriantafyllos-da
642049616c
Generate doc instances for metrics groupable by name [DPP-1355]. (#15908) 2022-12-16 13:26:11 +00:00
Nicu Reut
f572d31222
Add counter for metered events [PLEN-39] (#15878) 2022-12-16 11:03:30 +00:00
Simon Maxen
d76603d137
Metering clarifications for Daml Hub [DPP-1314] (#15898)
* Add metering report JSON schema

* Add metering report JSON schema
* Remove metering-report-schema from proto exclusion list
* Add header to metering report validator
* Rename struct-json to struct-spray-json
* Add struct-circe-json

* Update with release comments
2022-12-16 10:46:32 +00:00
Bernhard Elsner
1f30da1f23
Remove "Module" from daml-doc H1 headers (#15862)
* Remove "Module" from daml-doc H1 headers

CHANGELOG_BEING
- Remove the word "Module" from the H1 page header of
- module pages and stop overriding the ToC headers to make
- the generated pages easier to use.
CHANGELOG_END

* Reinstate links in daml-docs rst TOC

* Update render tests

* Update golden tests

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2022-12-16 10:19:08 +00:00
Remy
f1aca5e11c
[Speedy] create Scenario Machine (#15588) 2022-12-16 08:20:42 +00:00
azure-pipelines[bot]
6c25c7c8be
bump canton to 20221215 (#15910)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-12-16 08:46:09 +01:00
Chun Lok Ling
5f01588417
Conversion between javaapi.data.Value and lf.value.Value (#15885)
* init

* make it able to sync first

* deps

* adt cases

* reorder

* toLfValue

* revert

* toLfValue

* fromLfValue

* bazel

* scala check generator round trip test

* fix test

* Apply suggestions from code review

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

* address comments

* address comments

* address comments

* address comments

* address comments

* address comments

* address comments

* address comments

* fix CI

* fix CI

* na

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-12-15 19:27:55 +00:00
pbatko-da
566b564f0b
[DPP-1022] ACS active_at_offset (#15764)
changelog_begin
Ledger API: Add active_at_offset to the GetActiveContractsRequest request
changelog_end
2022-12-15 18:10:33 +00:00
Stephen Compall
7472684625
ignore build-and-lint-test yarn.lock inconsistency on release (#15907)
With the below command, with or without the entry for
@types/prettier@2.6.0 removed, this command passes.

DAML_SDK_RELEASE_VERSION=0.0.0-head bazel test --test_output=streamed //language-support/ts/codegen/tests:build-and-lint-test

With the below command with the entry for @types/prettier@2.6.0 removed,
this command fails with the expected error about a missing entry.  With
the entry restored, it passes.

bazel test --test_output=streamed //language-support/ts/codegen/tests:build-and-lint-test
2022-12-15 17:46:53 +00:00
Gary Verhaegen
895a6bf11d
start 2.3.8 process (#15892)
As requested by @rgugliel-da on behalf of the Canton team.
2022-12-15 16:49:18 +01:00
Nicu Reut
c8c5eaa11f
Add metrics to execution services [PLEN-64] (#15861) 2022-12-15 15:34:25 +00:00
Remy
4135041a38
[Engine] compute agreement as part of contract caching (#15901) 2022-12-15 11:29:06 +00:00
katmurp
e47bca3569
Docs: Resource management - Latency/throughput, ACS size (#15854)
* resource management - ACS size

* adding throughput and latency section
2022-12-15 12:00:28 +01:00
azure-pipelines[bot]
564c8f09c0
bump canton to 20221214 (#15904)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-12-15 10:44:06 +00:00
azure-pipelines[bot]
4becc947a7
bump canton to 20221213 (#15886)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Rafael Guglielmetti <rafael.guglielmetti@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2022-12-15 09:25:54 +00:00
pbatko-da
3429cb543e
[DPP-1327] ETQ: Use transaction_meta table for pointwise tx retrieval and drop tx_id based indexes (#15877) 2022-12-14 20:12:24 +00:00
Stephen Compall
0dcd635eb8
enforced lockfile for build-and-lint-test (#14873)
* pin dependencies without #13876

* --frozen-lockfile does not work

* hide @daml.js local paths from yarn.lock comparison

This version on failure outputs something like

--- /dev/fd/63	2022-12-12 17:31:06
+++ /dev/fd/62	2022-12-12 17:31:06
@@ -708,6 +708,11 @@
   resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
   integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==

+"@types/prettier@2.6.0":
+  version "2.6.0"
+  resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.6.0.tgz#efcbd41937f9ae7434c714ab698604822d890759"
+  integrity sha512-G/AdOadiZhnJp0jXCaBQU449W2h716OW/EoXeYkCytxKL06X1WCXB4DZpp8TpZ8eyIJVS1cw4lrlkkSYU21cDw==
+
 "@types/prettier@^2.1.5":
   version "2.7.0"
   resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.0.tgz#ea03e9f0376a4446f44797ca19d9c46c36e352dc"
FAIL: /.../build-and-lint-test.runfiles/com_github_digital_asset_daml/language-support/ts/codegen/tests/ts/yarn.lock could not satisfy /.../build-and-lint-test.runfiles/com_github_digital_asset_daml/language-support/ts/codegen/tests/ts/build-and-lint-test/package.json
FAIL: yarn.lock requires all of the above changes
FAIL: //language-support/ts/codegen/tests:build-and-lint-test ...

Applying this diff to yarn.lock causes the test to pass.

* apply yarn.lock update reported by diff

* add changelog

CHANGELOG_BEGIN
CHANGELOG_END

* don't hard-code diff location

- suggested by @garyverhaegen-da; thanks
2022-12-14 18:31:14 +00:00
Nicu Reut
fc5b0ebc96
Add platform enablement team as code owner to observability (#15893) 2022-12-14 18:03:48 +00:00
Gary Verhaegen
d6f762a49c
start 2.5.0 process (#15896) 2022-12-14 17:40:14 +01:00
azure-pipelines[bot]
51ef2913fc
update NOTICES file (#15888)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-12-14 17:29:59 +01:00
nickchapman-da
2df734e1ce
[engine] consortium primitives in LF (#15864) 2022-12-14 15:06:15 +00:00
azure-pipelines[bot]
0b4feb1bf4
rotate release duty after 2022-12-14 (#15887) 2022-12-14 14:22:41 +00:00
Remy
311f419842
LF: get rid of agreement text in ContractInst (#15818) 2022-12-14 10:39:29 +00:00
Sergey Kisel
a7a958a337
Simplification of errors within JWT, unit test (#15881) 2022-12-14 11:05:18 +01:00
Sergey Kisel
db7f629c9e
Add todos to support IdentityProviderAdmin in the Daml-Script (#15858)
* Add todos to support IdentityProviderAdmin in the Daml-Script

* update todo
2022-12-14 10:00:57 +00:00
Luc Bourlier
9279f610ca
Use counters for non-monotonic metric values (#15870)
Meters should never decrease. Counter can increase and decrease [PLEN-49]

CHANGELOG_BEGIN
CHANGELOG_END
2022-12-14 09:31:05 +01:00
Stefano Baghino
5ab3fd7cbe
Fix typos in methods (#15884) 2022-12-13 18:36:54 +00:00
dylant-da
445104a41b
Custom error / fix error for wrong expected return type of a choice. (#15855)
* Point to updated GHC

* add test for choice result mismatch

* add test for interface

* point to updated ghc

* point to merged ghc
2022-12-13 18:08:32 +00:00
Sergey Kisel
212955cc31
Add "iss" claim support for JWT tokens. (#15880) 2022-12-13 15:26:36 +01:00
dylant-da
f9d7301024
Fix erroneous code action/lens suggestions in Daml Studio (#15731)
* point to updated ghc

* point to updated GHC

* point to updated GHCIDE

* point to updated ghc

* Make _requires_ non-writable by inserting dollar - amend detectors

* Make _choice_ declarations non-writable (add dollar)

* Add checks for dollar-gen'd code require/view/interface_instance/method

* point to updated GHC

* point to updated ghc

* satisfy changelog

CHANGELOG_BEGIN
CHANGELOG_END

* point to updated GHC

* Point to updated ghcide

* update desugar tests

* point to revised daml-ghcide

* point to updated ghc

* point to updated ghc

* replace with isDamlGenerated

* point to merged ghc and merged ghcide
2022-12-13 12:06:40 +00:00
Claudio Bley
2acf719338
Refine "component" of asset field (#15833)
* Add "component" to `SecurityTest` entry for AbstractWebsocketServiceIntegrationTest

* Add README to test-evidence explaining the convention for components
2022-12-13 10:15:00 +01:00
Stephen Compall
1ac4199538
update qs, express for security (#15874)
- fixes for CVE-2022-24999

* upgrade qs, express in root

* upgrade qs in daml-extension

* upgrade qs, express in navigator
2022-12-12 15:52:19 -05:00
Sergey Kisel
a598171160
Expose non-local parties from within Default Identity Provider (#15872)
* Expose non-local parties from within Default Identity Provider
2022-12-12 19:54:19 +00:00