Commit Graph

10954 Commits

Author SHA1 Message Date
azure-pipelines[bot]
8b77bec622
bump canton to 20221114 (#15568)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-15 09:30:39 +01:00
carrielaben-da
4e647fe068
Add High Level Intro and Architecture (#15449)
* Add High Level Intro and Architecture

High level intro content covering multi-party apps, Daml, and the Canton ledger.

* Update docs/source/high-level-intro.rst

Per Stefano's suggestion

[CHANGELOG_BEGIN]
[CHANGELOG_END]

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Update high-level-intro.rst

Implementing Stefano's suggestions.

[CHANGELOG_BEGIN]
[CHANGELOG_END]

* fix ref

* fix toc ref

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2022-11-14 15:30:30 -04:00
dylant-da
c6d10b6246
Remove GHC.Tuple.Check module (#15549)
* Prevent unused import warnings

* Remove all explicit occurences of GHC.Tuple.Check

* Update desugar tests

* Remove magic from GHC.Tuple.Check

* Add GHC.Tuple.Check back to DarReaderTest

* Point to merged changes
2022-11-14 18:29:35 +00:00
Remy
3d95bf84f8
[speedy] refactor continuations (#15513) 2022-11-14 17:23:18 +00:00
Moisés Ackerman
7a3b715568
Add DA.Internal.Interface.AnyView.Types to scala StablePackage#stablePackages (#15559) 2022-11-14 18:13:57 +01:00
Remy
cc309f42f8
[compatibility] script/trigger waits for portfile if run against canton (#15560) 2022-11-14 16:38:28 +00:00
Remy
10539aa9ad
[Triggers] strengthen compilation flags (#15512) 2022-11-14 17:33:50 +01:00
carrielaben-da
8cfd7a7d61
Adding an intro for the Create Daml App section (#15388)
* Adding an intro for the Create Daml App section

Part of the High-Level Introductory Content addition

[CHANGELOG_BEGIN]
[CHANGELOG_END]

* Update docs/source/daml/considerations.rst

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Update docs/source/daml/considerations.rst

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Update docs/source/daml/considerations.rst

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Update docs/source/daml/considerations.rst

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Update docs/source/daml/considerations.rst

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Update docs/source/daml/considerations.rst

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* fix intro link

Co-authored-by: carrie-laben <91496516+carrie-laben@users.noreply.github.com>
Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2022-11-14 11:57:44 -04:00
Moisés Ackerman
8584189b06
Drop changelog status message in #team-daml-ci notifications (#15542) 2022-11-14 16:06:47 +01:00
Moisés Ackerman
6512589395
Use conditional job to determine collect_build_data result (#15547) 2022-11-14 16:06:34 +01:00
Nicu Reut
5b958ae9b7
Use the testing metrics instead of opentelemetry testing sdk [PLEN-43] (#15555) 2022-11-14 13:15:21 +00:00
Simon Maxen
a10ffa819c
Default memory based rate limiting to off (#15546) 2022-11-14 12:48:33 +00:00
katmurp
60e5378757
Revert "set up analytics for research purposes (#15548)" (#15558)
This reverts commit 7c2a38a1f7.
2022-11-14 12:30:11 +01:00
Stefano Baghino
1314930584
Add comma after user ID in toString (#15538)
Currently the `toString` for `User` in Java bindings returns the following:

   User{id='participant_admin'primaryParty='null'}
2022-11-14 10:53:26 +01:00
azure-pipelines[bot]
eb8d550360
bump canton to 20221111 (#15553)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-14 08:54:57 +01:00
mziolekda
60ab087e71
Fix copy pasta in ErrorCategory (#15543)
* Fix copy pasta in ErrorCategory

* update documentation
2022-11-14 08:39:57 +01:00
dylant-da
bb67fb7f51
Move userWrittenTuple check into own helper in GHC.Tuple.Check (#15445)
* Create tuple size check function in GHC.Tuple.Check

* Update desugar test

* lint

* Fix accidental minus in stable-packages

* Replace GHC.Types with GHC.Tuple.Check in doctest generation

* Fix DarReaderTest

* Fix DamlDocTest for GHC.Tuple.Check import

* Remove unnecessary DamlSyntax pragma

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>

* Point to merged GHC changes

* Point to akrmn's merged in changes

* Point back at merged in changes

* restart CI

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2022-11-11 15:59:29 +00:00
katmurp
7c2a38a1f7
set up analytics for research purposes (#15548)
* set up analytics for research purposes

* missing % in expression
2022-11-11 16:15:36 +01:00
Remy
72c69fd55c
fix package in archive proto SNAPSHOT (#15550) 2022-11-11 14:15:50 +00:00
Luc Bourlier
fb1c7e7c66
Improve akka http metrics tests (#15534)
Removes possible flakiness.
With chunked data, if the request is not executed, the request data might not be processed, and its size not recorded.

CHANGELOG_BEGIN
CHANGELOG_END
2022-11-11 14:17:25 +01:00
Sergey Kisel
da0f63d3f2
Removing error codes from proto files (#15518) 2022-11-11 13:00:24 +01:00
nickchapman-da
7abbb694b9
[script] rename: queryView --> queryInterface (#15541) 2022-11-11 11:50:02 +00:00
Moisés Ackerman
8b4603b665
define daml_ledger_export_test in terms of client_server_test (#15535)
* daml_ledger_export_test is now defined in terms of client_server_test

* daml_ledger_export_test now has timeout=short by default

Co-authored-by: Remy <remy.haemmerle@daml.com>
2022-11-11 10:44:40 +00:00
tudor-da
bd36919e75
Index and server driver_metadata (#15478)
* Create support in Sandbox-on-x with mock contract driver metadata
* Assert driver metadata in conformance tests

changelog_begin
changelog_end

run-full-compat: true
2022-11-11 09:55:34 +01:00
azure-pipelines[bot]
d0b0dd804d
bump canton to 20221110 (#15536)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-11 09:43:39 +01:00
Nicu Reut
7ce5d05f2a
Add grpc server interceptor with golden metrics [PLEN-9] (#15447) 2022-11-10 17:50:41 +00:00
Raymond Roestenburg
25bac20abb
Added a note re: nix re-install, cache issues. (#15469) 2022-11-10 14:39:01 +01:00
Moisés Ackerman
06892a4ae9
Clean up uses of locateRunfiles (#15446)
* Define DA.Bazel.Runfiles.locateResource as an alternative to locateRunfiles

* Use locateResource to get default dlint rules file

Fixes #15443

* Use locateResource to get scenario-service.jar

* Use locateResource to get ghc-pkg executable

* Use locateResource to get stable-packages directory

* Use locateResource to get ghcversion.h

* Use locateResource to get hpp executable

* Use locateResource to get builtin package dbs

* Drop unused function DA.Daml.Options.Types.getBaseDir

* Use locateResource to get d3{,plus}.min.js

* Use locateResource to get repl-service.jar

* data Resource now takes a runfilesPathPrefix instead of a runfilesPath

* Add hlint warning 'locateRunfiles/package_app'

* Let locateRunfiles crash when used outside of bazel target

* typo
2022-11-10 13:20:43 +01:00
Moritz Kiefer
c7be81f0c4
Fix error handling in time service (#15521)
updateTime can return an error and the code correctly tried to turn
that into invalidArgument and logged it. However, the Either returned
by that then got completely discarded and the overall request
succeeded which definitely seems like a bug.

I added a test and verified that it fails withotu this change.

The code seems fairly messy. There are a few reasons for that:

1. We use Future[Either[…]] and we treat failures in the Either
   differently from future failures. I'm not quite convinced that
   makes sense but for this PR I didn’t want to introduce unrelated
   changed.
2. Future[Either[…]] without some form of EitherT is inherently messy
   but afaik you don’t use cats here so I kept it like this.
2022-11-10 11:40:25 +00:00
Remy
bec311c039
[Script] strengthen compilation flags (#15509) 2022-11-10 10:55:05 +01:00
Gary Verhaegen
94735a3d24
release 2.4.2 (#15515)
Note: this _replaces_ 2.4.1 because, _if_ we want to have #15511 in the
next release, it doesn't really make sense (in my opinion) to go through
the rest of the 2.4.1 process.

Happy to discuss, though: it's possible we still want both releases,
it's also possible we don't really need #15511. I really don't have
enough context to say, so I'm just opening this to provide the option.
2022-11-10 10:12:43 +01:00
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