Commit Graph

10976 Commits

Author SHA1 Message Date
azure-pipelines[bot]
c1ffefaaed
bump canton to 20221116 (#15605)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2022-11-17 15:05:11 +00:00
Moisés Ackerman
f27808c8d3
Ensure git tags are fetched in job 'compatibility_stable_protobuf' (#15613)
Done by setting 'fetchTags: true' in the 'checkout' step before running the bash script
2022-11-17 15:58:49 +01:00
Nicu Reut
525831c4db
Fix flaky gRPC server metrics test (#15612) 2022-11-17 15:12:08 +01:00
Matthias Schmalz
96350ecf4f
Mentioned useful import in scaladoc of SecurityTestSuite. (#15611)
CHANGELOG_BEGIN
CHANGELOG_END
2022-11-17 13:27:31 +01:00
Oliver Seeliger
936594f523
Deduplication flake: allow inflight-request error (#15609)
In rare situations a canton participant returns a SUBMISSION_ALREADY_IN_FLIGHT
error instead of DUPLICATE_COMMAND due to a possible race condition between
publishing the TransactionAccepted read service update and updating internal
in-flight transactions. Particularly in Oracle runs this can result in a
subsequence "duplicate" command to still be considered in-flight.

Extended the tests to also accept the "in-flight" error code.

Changelog_begin
Changelog_end
2022-11-17 11:13:51 +01:00
Nicu Reut
253150e6e2
Change OpenTelemetry timer unit to seconds [PLEN-44] (#15585) 2022-11-17 09:52:24 +00:00
azure-pipelines[bot]
b2cb3464d9
rotate release duty after 2022-11-16 (#15593)
@basvangijzel-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-16 17:51:59 +01:00
Remy
eb6b3cc13e
[LF] reactivate test for //daml-lf/data (#15598)
Those have been deactivated by mistake.
2022-11-16 16:51:46 +00:00
Marton Nagy
4f4cd910da
Open up ChoiceCoder for usage in another repo (#15592)
[CHANGELOG_BEGIN]
[CHANGELOG_END]
2022-11-16 13:24:59 +01:00
Luc Bourlier
e24ce7ab4f
Adds labels to the Akka HTTP metrics [PLEN-12] (#15436)
* Adds labels to the Akka HTTP metrics

CHANGELOG_BEGIN
CHANGELOG_END

* code improvements

* A bit of headroom for the latency tests
2022-11-16 11:08:45 +01:00
azure-pipelines[bot]
389d83c9c9
bump canton to 20221115 (#15594)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-16 06:48:04 +00:00
Stephen Compall
41110887f4
document serializability in the Templates reference doc (#15566)
* Apply suggestions from code review

* unnumber, reword non-serializable examples

- suggested by @katmurp; thanks

Co-authored-by: katmurp <117752519+katmurp@users.noreply.github.com>
2022-11-15 14:46:47 -05:00
Stephen Compall
297412e42c
document intended scale, use case contour of JSON API (#15413)
* remove redundant query-store config block doc

* clean up json-api config doc

* shorter explanation of schema version

* section on query store performance

* emphasize that JSON API isn't magic

* a bit more on scaling

* small intro note about intended applications

* some thoughts on the limits of scaling

* make all the versions indirect

- suggested by @carrielaben-da; thanks

* replace JSON API with HTTP JSON API service

- suggested by @stefanobaghino-da

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
2022-11-15 18:59:32 +00:00
Stephen Compall
ff194c379e
use a single DELETE for contracts on Oracle (#15565)
* use NonEmpty for joinFragment

* build a single DELETE for archiving, even on Oracle
2022-11-15 10:34:43 -05:00
Remy
7cac969756
[Speedy] Inline LedgerMode in the Machine (#15514) 2022-11-15 14:47:22 +00:00
atriantafyllos-da
5ddd0646c4
Removed http_json_api metrics from ledger metrics [DPP-1307]. (#15552)
changelog_begin
changelog_end
2022-11-15 14:56:41 +01:00
Gary Verhaegen
7853cbe2f2
run fix_bazel_cache on cron (#15575) 2022-11-15 13:07:41 +00:00
Moisés Ackerman
fb436b5e5b
Define 'pool' for 'collect_build_data{,_failed}' jobs (#15573) 2022-11-15 12:52:40 +00:00
azure-pipelines[bot]
4527dc2a17
update NOTICES file (#15569)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-11-15 11:40:53 +01:00
Remy
a18fe164ca
[LF] reenable requires for interface (#15561)
Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2022-11-15 08:59:24 +00:00
Nicu Reut
b1edee94f8
Add gRPC server interceptor with golden metrics to all gRPC services [PLEN-10] (#15477) 2022-11-15 09:50:21 +01:00
Remy
d071e5e505
Remove TemplateOrInterface type class (#15347) 2022-11-15 09:44:51 +01:00
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