Commit Graph

11372 Commits

Author SHA1 Message Date
Moisés Ackerman
9582832c2c
Fix try-catch scoping bug in daml-script (#16190)
* _tryCatch sig

* CatchPayload now only continues via 'continue' field

* fmt

* Add test cases

* update docs for CatchPayload

* fix type of CatchPayload.continue

* Add x type parameter to CatchPayload, drop toLedgerValue
2023-02-06 14:01:40 +01:00
Gary Verhaegen
fc8eadf164
stop managing docs (#16226)
The docs S3 bucket will now be entirely managed by the docs repo CI.
2023-02-06 13:29:03 +01:00
Arne Gebert
3e29aa5ac3
Add createArgumentsBlob and ContractMetadata to Java bindings' CreatedEvents (#16221)
This PR adds the attributes createArgumentsBlob and ContractMetadata to the CreatedEvent types by the Java bindings.
Passing these attributes through is required for being able to use explicit disclosure with the Java bindings (required by the CN team).
2023-02-06 11:23:36 +00:00
nickchapman-da
9920e5ce78
gain authority in SBWithAuthorityOf prim (#16179) 2023-02-06 09:43:05 +00:00
pbatko-da
804fc47ecb
[DPP-1395] Use one randomness privider in the benchtool (#16235) 2023-02-06 10:36:23 +01:00
Remy
2851401df6
[ScenarioService] add evaluation timeout (#16204)
Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2023-02-06 08:59:12 +01:00
Remy
aad8725ea7
[damlc] change default output to 1.15 (#16157) 2023-02-06 08:58:47 +01:00
azure-pipelines[bot]
8acdb7fe49
bump canton to 20230203 (#16237)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-02-06 08:53:27 +01:00
Sergey Kisel
f6eaf3e2e9
Identity Provider Config Service: Validation rule changes (#16233) 2023-02-03 16:45:55 +00:00
Nicu Reut
9642859062
Add OpenTelemetry JVM metrics documentation [PLEN-67] (#16202) 2023-02-03 16:20:01 +00:00
Nicu Reut
a9ff1376f4
Use in-memory metrics for indexer benchmark banner [PLEN-99] (#16218) 2023-02-03 16:16:12 +00:00
azure-pipelines[bot]
2e449b0d91
bump canton to 20230202 (#16229)
* bump canton to 20230202

CHANGELOG_BEGIN
CHANGELOG_END

* DACH-NY/canton#11206 Fix dev option flags for Canton in `ledger-api-test-tool-on-canton`

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Kirill Zhuravlev <kirill.zhuravlev@digitalasset.com>
2023-02-03 13:48:34 +01:00
Remy
68a718ef58
Revert "Revert "Reactive requires in surface language (#15570)" (#16222)" (#16231)
This reverts commit db6e87589a.
2023-02-03 13:05:48 +01:00
pbatko-da
51f302b607
[DPP-1400] Refactor and simplify the pruning backend tests (#16220)
A concern with the existing pruning backend tests is that they are relatively complex particularly because:
- in order to fetch data from the indexdb they use production sql queries which might have builtin knowledge of pruning offsets,
- production sql queries are not designed for ergonomic one-off usage.

This PR introduces a set of queries, one for each table subject to pruning, each returning a record for each row its table. This leads to more a concise and straightforward way assert what data has or hasn't been pruned.
2023-02-03 11:41:51 +00:00
Luc Bourlier
313aaad4a6
Common metrics reporter config format [PLEN-91] (#16213)
* Common metrics reporter config format

Fixed the config for metrics reporter for trigger service and oauth
middleware.
They are using a common config definition, as well as the JSON API
service.
The format matches the one used in canton configs.

CHANGELOG_BEGIN
CHANGELOG_END
2023-02-03 09:10:10 +01:00
Remy
db6e87589a
Revert "Reactive requires in surface language (#15570)" (#16222)
This reverts commit e94f1a74a9.
2023-02-02 19:20:17 +00:00
dylant-da
c7ae5f1c93
Allow run tests manually (#16211)
* Add rules for running single scenarios, redefine RunScenario using them

* Turn runScenario into an action, not IO

* Add FormattingStarted custom message type

* Redefine OfInterest rule in terms of RunSingleScript

* lint

* fix broken renamed var

* Use getFilesOfInterest for diagnostics & uncompilable check

* explicitly run tests that need to be run

* Amend test

* Remove commented out code

* Remove vr formatting message
2023-02-02 17:59:11 +00:00
Carl Pulley
42cdc86e15
Trigger rule evaluation metric logging (#16215) 2023-02-02 16:50:25 +00:00
Stephen Compall
db470ebe05
remove @S11001001 from some code-ownership, add nonempty (#16219)
Focused only on small, infrequently-updated areas of the code where I
may have special insight to share with maintainers.
2023-02-02 13:41:37 +00:00
azure-pipelines[bot]
f778396ebd
bump canton to 20230201 (#16217)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-02-02 12:31:15 +00:00
Nicu Reut
234e7a1fad
[metrics] Improve the gauges API to allow closing a gauge [PLEN-107] (#16208) 2023-02-02 11:51:44 +00:00
Carl Pulley
45de0c20f6
Daml code to manage trigger in-flight and ACS hard limits (#16203) 2023-02-02 08:34:37 +00:00
Gary Verhaegen
7fb303be3b
update CI node reset permissions (#16216) 2023-02-02 09:06:39 +01:00
azure-pipelines[bot]
9e441e484c
rotate release duty after 2023-02-01 (#16205)
@dylant-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>
2023-02-01 17:47:14 +00:00
da-katmurp
0392e439b8
Adding missing content about Archiving in docs (#16150)
* adding info to write daml section

* adding archive to reference docs

* add note about consuming choice

* Update docs/source/daml/intro/2_DamlScript.rst

Co-authored-by: Leonid Rozenberg <leonid.rozenberg@digitalasset.com>

* Update docs/source/daml/reference/updates.rst

Co-authored-by: Leonid Rozenberg <leonid.rozenberg@digitalasset.com>

* Update docs/source/daml/reference/updates.rst

Co-authored-by: Leonid Rozenberg <leonid.rozenberg@digitalasset.com>

* Update docs/source/daml/reference/updates.rst

Co-authored-by: Leonid Rozenberg <leonid.rozenberg@digitalasset.com>

* Update docs/source/daml/reference/updates.rst

Co-authored-by: Leonid Rozenberg <leonid.rozenberg@digitalasset.com>

* including extra statement about implicit Archive choice

* fix the build

---------

Co-authored-by: Leonid Rozenberg <leonid.rozenberg@digitalasset.com>
2023-02-01 17:30:05 +01:00
Nicu Reut
dca7da1fd8
In memory metrics: Keep track of created metrics [PLEN-98] (#16199) 2023-02-01 16:26:01 +00:00
nickchapman-da
d406e0a8df
remove clunky of suffix from with-authority internal names (#16214) 2023-02-01 16:19:06 +00:00
Nicu Reut
9da7d910b9
[metrics] Allow extension of no-op metrics factory (#16209) 2023-02-01 13:53:19 +00:00
Carl Pulley
1e967d0ea3
ACS Overflow detection (#16195) 2023-02-01 13:48:56 +00:00
Sergey Kisel
b51ab760ec
Use allocated party id for the subsequent steps (#16210) 2023-02-01 11:55:08 +00:00
azure-pipelines[bot]
b9540a941a
bump canton to 20230131 (#16206)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-02-01 09:27:03 +01:00
Nicu Reut
b331572aef
Save initial gauge value for the in memory metrics [PLEN-67] (#16198) 2023-02-01 08:53:12 +01:00
Carl Pulley
c0c965c83f
Trigger should always perform message batching (#16194) 2023-01-31 13:04:50 +00:00
azure-pipelines[bot]
602b511832
update compat versions (2023-01-31) (#16192)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-01-31 09:58:54 +00:00
Carl Pulley
3d6ac11357
Bug fix to avoid potential JVM OOM errors in the converter (#16193) 2023-01-31 09:10:27 +00:00
Sergey Kisel
a13f648cf1
Fix conformance test to exclude the test only when it was introduced. (#16187) 2023-01-31 09:39:48 +01:00
azure-pipelines[bot]
f4c845f50b
bump canton to 20230130 (#16191)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-01-31 09:05:45 +01:00
Remy
a24439f0a1
[Speedy] minor simplification of visibility check (#16183)
Co-authored-by: Carl Pulley <106966370+carlpulley-da@users.noreply.github.com>
2023-01-30 17:56:00 +00:00
azure-pipelines[bot]
e6f3ade688
bump canton to 20230127 (#16185)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-01-30 08:44:29 +01:00
Sergey Kisel
c04019de4e
Restrict the use of non-allocated party in User Mnmgt API for ParticipantAdmin [DPP-1385] (#16111) 2023-01-28 11:49:11 +01:00
pbatko-da
58cb5386ed
[DPP-1390] Introduce separate 'index-service.acs-streams.contract-processing-parallelism' config key (#16182)
Previously the config key `index-service.events-processing-parallelism` was used both when fetching ACS from DB
and for buffered transaction reader.
Now these resposibilities are separated into two new config keys:
1. `index-service.acs-streams.contract-processing-parallelism` (which mirrors the tx streams configs)
2. `index-service.buffered-events-processing-parallelism`

Also moving a larger chunk of code from TransactionReader to ACSReader (which mirrors the tx stream readers)
2023-01-27 18:05:02 +00:00
azure-pipelines[bot]
0802daa160
update NOTICES file (#16177)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-01-27 16:21:29 +01:00
Moisés Ackerman
e9963e88df
Unhide DA.Internal.LF.coerceContractId (#16180) 2023-01-27 15:24:11 +01:00
pbatko-da
73a1997902
[DPP-1363] Use largest smaller power of two for Akka async input buffers for ETQ streams (#16166) 2023-01-27 14:06:55 +00:00
pbatko-da
bbd5966e9f
[DPP-1390] Improve SoX config docs wording for ETQ related config keys (#16169) 2023-01-27 13:34:47 +01:00
Gary Verhaegen
f6034b4de0
start 2.5.2 process (#16174) 2023-01-27 12:20:31 +01:00
Rex Ng
d287649fef
Fix potential embarrassing spelling (#15354)
CHANGELOG_BEGIN
[daml-script] Fix documentation spelling
CHANGELOG_END
2023-01-27 09:54:44 +00:00
azure-pipelines[bot]
c07dc9f095
bump canton to 20230126 (#16176)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-01-27 08:48:22 +01:00
Nicu Reut
a87412b68c
Introduce LabeledMetricsFactory trait to mark metrics factories that support labels [PLEN-98] (#16159) 2023-01-26 16:01:37 +00:00
Stephen Compall
81b4e17f00
reduce package service calls to avoid THREADPOOL_OVERLOADED errors (#16116)
* confirm that monadifying the package fetch still suppresses the error

* thread ExecutionContext from request

- makes the error less likely
- but still fairly easy to repro with 3 tabs

* experiment with setting executor

* explain that the cache isn't a cache

* random order, maybe

- #3090 mentions keeping the order as a goal; I don't see why we should,
  though

* random order with groups of 8

* embed the decoding

- this slows down the processing of a group, yielding somewhat less
  granular contention
- and also makes hits cost much less, at the cost of making granular
  contention more expensive

* reduce diff size before resolution

- this won't improve contention, but does nearly eliminate the cost of
  resolution for already-resolved packages, making hits nearly free
  (amortized)

* randomize groups instead

- while groups themselves can overlap with this arrangement, each
  costing ParallelLoadFactor granular contention, on average it seems to
  perform a little better due to groups never overlapping

* refactor StatusEnvelope to utils

* constant 250ms retry

* detect contention earlier and skip decode

* factor traverseFM
2023-01-26 10:18:13 -05:00