Commit Graph

10923 Commits

Author SHA1 Message Date
azure-pipelines[bot]
6d50a811c3
update NOTICES file (#15517)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-10 10:06:41 +01:00
azure-pipelines[bot]
1f33bd4ef1
rotate release duty after 2022-11-09 (#15483)
@chunlokling-da is taking care of [testing](https://github.com/digital-asset/daml/blob/main/release/RELEASE.md) today's release, so they get pushed back to the end of the line.

Please do not merge this before the release is fully tested.

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-10 10:00:38 +01:00
azure-pipelines[bot]
1acd7934ed
bump canton to 20221109 (#15516)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-10 08:51:29 +01:00
Gary Verhaegen
1d820ad878
start 2.4.1 process (#15480) 2022-11-09 18:14:23 +00:00
Carl Pulley
c43ee235d2
Provide log-encoder option for trigger-runner and trigger-service to enable json logging
CHANGELOG_BEGIN
* JSON encoder support for trigger controlled via CLI option --log-encoder

CHANGELOG_END
2022-11-09 16:46:45 +00:00
Luc Bourlier
4354c5d06b
Support for golden signals metrics on akka-http APIs [PLEN-12] (#15310)
* Support for golden signals metrics on akka-http

Adds metrics support needed for throughput, error rate, latency,
and data size on both the classic http endpoints and
the websocket endpoints.

Installed the support on the JSON API endpoints.

CHANGELOG_BEGIN

JSON API - additional metrics for endpoints

daml_http_json_api_requests_total
daml_http_json_api_errors_total
daml_http_json_api_requests_duration_seconds
daml_http_json_api_requests_size_bytes
daml_http_json_api_responses_size_bytes

daml_http_json_api_websocket_messages_received_total
daml_http_json_api_websocket_messages_received_size_bytes
daml_http_json_api_websocket_messages_sent_total
daml_http_json_api_websocket_messages_sent_size_bytes

CHANGELOG_END


Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>
2022-11-09 16:55:12 +01:00
Carl Pulley
22f6148098
Common command line args for configuring logging
CHANGELOG_BEGIN
* Trigger CLI and service now support log level setting view -v, --debug and --log-level-root
CHANGELOG_END
2022-11-09 15:16:12 +00:00
Gary Verhaegen
0e6992b953
update cheat-sheet version (#15501) 2022-11-09 16:14:05 +01:00
Carl Pulley
6da1cd8a05
rate limit in-flight ledger command submissions for trigger runners
CHANGELOG_BEGIN
* triggers may now control (via configuration) the rate at which they submit commands to the ledger. Command submission may be rate limited (to control trigger burst behaviour) and ledger submissions will *only* occur if in-flight command submissions are below threshold values.

CHANGELOG_END
2022-11-09 14:38:31 +00:00
Remy
49f4d2979e
[LF] strengthen compilation flags (#15481) 2022-11-09 14:12:04 +01:00
azure-pipelines[bot]
76e3ad4ce4
bump canton to 20221108 (#15484)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-09 10:36:02 +01:00
dylant-da
27f0f2b014
Catch mistyped view implementations via better Daml-specific type error detection (#15426)
* point to updated GHC

* satisfy changelog

CHANGELOG_BEGIN
CHANGELOG_END

* Point to updated GHC

* Expect new interface view error message in ImplementsNonInterface

* Add test for trying to implement a non-interface

* Point to GHC with better error suppression, fix tests

* Remove unused TryImplementNonInterface

* Point to merged GHC
2022-11-08 17:57:06 +00:00
Stephen Compall
9dd5e26995
add map to Update (#15473)
* hide some internal constructors
2022-11-08 14:31:15 +00:00
Stephen Compall
6bb1f3b4af
move fromContractId and fromCreatedEvent to ContractTypeCompanion (#15472)
* add Contract, ContractId type params to ContractTypeCompanion

* move fromCreatedEvent, toContractId to ContractTypeCompanion

* ContractFilter can be simpler with this

* javadoc for toContractId
2022-11-08 08:38:22 -05:00
azure-pipelines[bot]
7642da3ac8
update compat versions (2022-11-08) (#15475)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-08 11:29:42 +01:00
azure-pipelines[bot]
ec5134e557
update NOTICES file (#15476)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-08 10:28:16 +01:00
azure-pipelines[bot]
caf2b28235
bump canton to 20221107 (#15474)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-08 08:12:09 +00:00
tudor-da
346bb48904
Extract Ledger API error definitions in //ledger/ledger-api-errors [DPP-1269] (#15439)
* Extract Ledger API error definitions in //ledger/error-definitions

changelog_begin
SERVICE_INTERNAL_ERROR error code is created in CommonErrors and replaces the usage of LEDGER_API_INTERNAL_ERROR in ledger-api-client (as a fix).
changelog_end

* Tests in //ledger/error do not depend on //ledger/ledger-api-errors

* Remove unused dependency from //ledger/error

changelog_begin
changelog_end

* Address Martino's comment
2022-11-07 17:24:43 +01:00
Raymond Roestenburg
df41eedc81
Refactored resolving requests in WebSocketService. (#15398)
* Refactored resolving requests in WebSocketService.

CHANGELOG_BEGIN
CHANGELOG_END

* Update ledger-service/http-json/src/main/scala/com/digitalasset/http/WebSocketService.scala

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

* Update ledger-service/http-json/src/main/scala/com/digitalasset/http/WebSocketService.scala

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

* Formatting.

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-11-07 17:22:19 +01:00
Stephen Compall
b84ce35982
@hidden does not take an argument (#15461) 2022-11-07 11:20:45 -05:00
Gary Verhaegen
46c0d39926
start 2.3.7 release process (#15454)
* start 2.3.7 release process

* include #15456
2022-11-07 16:14:37 +01:00
azure-pipelines[bot]
f935598069
bump canton to 20221104 (#15450)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-07 12:13:27 +00:00
azure-pipelines[bot]
05e564071c
update NOTICES file (#15452)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-07 12:43:45 +01:00
pbatko-da
3d83948cdb
[DPP-1144] Do not fail when benchtool-tests package is not found by Benchtool (#15455)
changelog_begin
changelog_end
2022-11-07 10:05:11 +00:00
Stephen Compall
2d2f645fdd
split JSON API production setup doc to separate documents (#15409)
* split JSON API production setup doc to separate documents

CHANGELOG_BEGIN
CHANGELOG_END

* remove json-api and production-setup TOCs

- properly placed in digital-asset/docs.daml.com#55

- suggested by @garyverhaegen-da; thanks
2022-11-04 15:33:11 -04:00
dylant-da
1f2c728113
Fix overeager tuple warning (#15418)
* Success!

* Remove dead / unnecessary code from debugging

* Remove unused `userWrittenTuple` helper

* Import `GHC.Types.magic` where necessary

* Test for example in issue #15338

* satisfy changelog check

CHANGELOG_BEGIN
CHANGELOG_END

* Remove fst/snd lint tests, which weren't correct/useful anyways

* Update DocTest to import GHC.Types where necessary

* Update desugar tests

* Fix daml repl to include GHC.Types import

* Add GHC.Types to the doctest

* style improvement: if cond then action else pure () -> when cond action

* Point to merged GHC
2022-11-04 17:16:34 +00:00
Chun Lok Ling
d7d3bc28d6
Module collision check on generated item only (#15440)
* do the module collision check on generated item only

* Revert "do the module collision check on generated item only"

This reverts commit a6a38425ab.

* added test for detectModuleCollisions

* added test to reproduce issue #15341

* Revert "Revert "do the module collision check on generated item only""

This reverts commit cd4c5a24fd.

* fix test case

* use `daml.lf.language.Reference.Module` instead

* add change log

CHANGELOG_BEGIN
Bug fix: Module name collision check performed on modules which is not to be generated #15340 #15341
CHANGELOG_END

* remove debug log

* Minor renaming

* refine name test case name

* add comment

* format

Co-authored-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
2022-11-04 17:04:20 +00:00
pbatko-da
ba55d37467
[DPP-1141] Run VACUUM ANALYZE from Benchtool at the end of submission step (PG only) (#15385)
changelog_begin
changelog_end
2022-11-04 16:41:55 +01:00
Remy
f240917e94
[Speedy] Drop second argument of SResultFinal (#15429) 2022-11-04 14:20:21 +01:00
Stefano Baghino
5d6a0355a3
Specify that parties are allocated only if necessary (#15441)
Makes the behavior of `daml ledger allocate-parties` more explicit
2022-11-04 12:53:03 +00:00
tudor-da
ce464c2421
Precompute scala pb serialized size at creation [DPP-1301] (#15408)
* Precompute ScalaPB serializedSize for stream messages

changelog_begin
Introduces a gRPC streams optimization targeting complex protobuf payloads.
When enabled, it can allow up to 60-80% throughput increase for GetTransactions/GetTransactionTrees/GetActiveContracts.
The optimization is toggleable by an additional config parameter for the API server: `api-server.optimize-grpc-streams-throughput`
changelog_end

* Address Marton's review comment

* Update ledger/participant-integration-api/src/main/scala/platform/store/ScalaPbStreamingOptimizations.scala

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>

* Rename to withPrecomputedSerializedSize

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>
2022-11-04 10:31:15 +00:00
azure-pipelines[bot]
132211242d
bump canton to 20221103 (#15438)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-04 10:52:56 +01:00
nickchapman-da
c9db43f579
implement queryView for GrpcLedgerClient (#15406) 2022-11-03 17:41:07 +00:00
azure-pipelines[bot]
43fafb813e
rotate release duty after 2022-11-02 (#15415)
@ray-roestenburg-da is taking care of [testing](https://github.com/digital-asset/daml/blob/main/release/RELEASE.md) today's release, so they get pushed back to the end of the line.

Please do not merge this before the release is fully tested.

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-03 18:31:59 +01:00
Remy
50ecf93ef1
[compatibility test] add sleep between canton start and script start (#15432)
Canton seams to be slower to start since 20221101
2022-11-03 17:30:02 +01:00
azure-pipelines[bot]
377e284dd0
bump canton to 20221102 (#15431)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-03 16:54:57 +01:00
pbatko-da
553674a850
[DPP-1144] Retrieving a Daml packageId from Ledger API server for Benchtool (#15400)
changelog_begin
changelog_end
2022-11-03 11:46:51 +01:00
atriantafyllos-da
d8f907b928
Added groupable class in GroupTag [DPP-1296]. (#15382)
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-03 10:57:56 +01:00
Remy
ed9d9c7ae6
[Speedy] move submissionTime in OnLedger case class (#15427) 2022-11-02 23:36:33 +00:00
Remy
e23f0a5cde
Speedy Cosmetic cleanup (#15421)
* change trait to abstract class
* add missing override
* cleanup scope restrictions
* add missing final
* add missing extends Product with Serializable
2022-11-02 16:11:36 +00:00
Stefano Baghino
ccb299afce
Retire changelog entries mechanism (#15423)
* Retire changelog entries mechanism

It is no longer used these days, so it simply imposes unnecessary
work. If it ever becomes useful again, retrieving the relevant
scripts from history should be relatively easy.

* Remove references to `unreleased.sh`

* Re-add `unreleased.sh` for summarization -- feedback from @mziolekda`
2022-11-02 14:58:46 +00:00
Stefano Baghino
4957838e7b
Drop comments about 0.x when talking about upgrades (#15419)
The comments refer to 0.x and can be misleading for 2.x users
(since the default is not 1.8 anymore and have not been for a
long time at this point). Furthermore, I am also relatively
sure that 1.8 is not even an option at all for 2.x users.

changelog_begin
changelog_end
2022-11-02 09:58:52 -04:00
Gary Verhaegen
216f9f4775
gsg test: pin puppeteer (#15422)
Somehow our setup doesn't work with puppeteer 19+.

CHANGELOG_BEGIN
- GSG: Several TypeScript warnings have been fixed in the final "Testing
  Your Web App" section of the Getting Started Guide. The
  `create-daml-app` template includes an updated `config.ts` file, and the
  documentation page as been updated to pin the `puppeteer` version to a
  known-working one and tweak the `index.test.ts` file.
CHANGELOG_END
2022-11-02 14:46:01 +01:00
Remy
5a3a013b21
Speedy: cleanup SBUKeyBuiltin (#15420)
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-02 13:35:59 +00:00
azure-pipelines[bot]
1b8193c922
update NOTICES file (#15417)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-02 12:01:17 +01:00
Moisés Ackerman
a33127599e
Add coerceInterfaceContractId : (...) => ContractId i -> ContractId j (#15405)
* Replace '1.dev only'=>'Daml-LF >= 1.15' in docs for interface functions

* Define coerceInterfaceContractId

* Test coerceInterfaceContractId in InterfaceContractDoesNotImplementInterface

* Test coerceInterfaceContractId in InterfaceConversions

* Add entry for coerceInterfaceContractId in interface reference docs

* update *.EXPECTED.desugared-daml files

changelog_begin
- [Daml Standard Library] Added function ``coerceInterfaceContractId``
changelog_end
2022-11-02 10:48:12 +00:00
azure-pipelines[bot]
3d8db7e646
bump canton to 20221101 (#15416)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-02 11:01:46 +01:00
fayi-da
33b637433d
Query store support for interface query/fetch (#15304)
* Update contracts table to allow multiple rows per contract id

* Keep template id for deletes

* add tpid grouping to deleteContracts

* chunking implementation

* mention tpid for postgres ON CONFLICT

* Remove ByInterfaceId special case

* add changelog

CHANGELOG_BEGIN
- [JSON API] The JSON API query store database has changed schema and
  needs to be reset. If you are migrating from a previous version,
  either reset your database manually or start the HTTP JSON API with
  one of the options that regenerate the schema (``create-only``,
  ``create-if-needed-and-start``, ``create-and-start``).
CHANGELOG_END

* add tpid to ignore_row_on_dupkey_index pragma

- came up in discussion with @ray-roestenburg-da; thanks

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-11-01 15:53:57 -04:00
Chun Lok Ling
b77a4552d1
Use typed acstransaction streams in quickstart java examples (#15363)
* Added new method using contractUtil instead of filter so that creation of filter is not necessary in IouMain.

* public fields instead of private fields with getters

* delete getContracts

* var

* move ContractUtil to java binding

* to String

* update doc

* address comments

* address comment

* add change log

CHANGELOG_BEGIN
change quickstart java example to use typed acs stream and transaction.
CHANGELOG_END

* rename to response

* format

* update line number
2022-11-01 19:22:12 +00:00
Nicu Reut
5f192c1839
Code clean-up for OpenTelemetry implementation [PLEN-29] (#15357) 2022-11-01 17:13:07 +00:00