Commit Graph

3061 Commits

Author SHA1 Message Date
mziolekda
95cc249ddd
Remove sandbox on x (#16890)
* remove sandbox-on-x project

* update bazel readme

* update release artifacts

* comment out last remaining SoX test

* remove ledger-runner-common

* remove participant-state-kv-errors

* remove recovering-indexer-integration-tests

* remove participant-integration-api

* update doc pages

* cleanup ledger-api-auth usage

* remove participant-state

* fix build

* fix build
2023-05-23 09:25:54 +02:00
Remy
81272e313d
Move com.daml.caching in libs-scala (#16868) 2023-05-22 15:32:53 +00:00
mziolekda
ac0bac67ef
reduce the usage of sandbox-on-x (#16878)
* reduce the usage of sandbox-on-x

* fix broken build

* fix build

* drop tests of very old compilers that are not supported by canton

* stop building sandbox-on-postgres when it is not used anyway

* drop tests of very old triggers that are not supported by canton
2023-05-22 14:38:37 +02:00
Remy
e230cf874f
Kill //ledger/cli-opts (#16869)
We inline the content in //trigger/service/auth that seems to be the only user.
2023-05-22 13:04:09 +02:00
Remy
912e9a9f33
[LF] make generic Dev interpretation error (#16859) 2023-05-18 13:01:43 +00:00
Remy
4e99243dda
kill orcale tests inside '//ledger' (#16880) 2023-05-17 12:51:16 +00:00
pbatko-da
9b04f15c63
IDP extensions - proto update user idp (#16867) 2023-05-17 10:40:23 +02:00
nickchapman-da
f88812f0e5
avoid adding WronglyTypedContractSoft error; wait until #16859 has landed (#16871) 2023-05-16 17:32:10 +00:00
Moisés Ackerman
990308ce53
[Upgrades PoC] softFetch (#16839)
* Refactor PackageMetadata construction

* Package Metadata now can include an upgraded package id

* define PackageInterface#lookupPredecessors

* Add SoftFetch in Daml LF

* Add softFetch function in Daml

* Add USoftFetch LFConversion primitive

* Define SoftFetch in terms of SBPromoteAnyContract

* daml_compile rule now takes upgrades arg

* Add script test for softFetch

* TODOs

* Check LF >= 1.dev when decoding 'upgradedPackageId' and 'softFetch' in DecodeV1.scala

* Check that softFetch is not called on templates with contract keys

* Seq=>List

* ModParser todo

* Extract PackageUpgradesIT from AbstractFuncIT

* Update docstring for SBPromoteAnyContract

* Fix build errors

* Fix build error

* DecodeV1Spec case for softFetch

* DecodeV1Spec case for upgradedPackageId

* EncodeV1 case for upgradedPackageId

* Fix build error

* Disable test due to cyclic dependency with canton

* Add transitive case to PackageUpgradesIT

* Clean up PackageUpgradesIT

* Fix build error

* Error if 'upgrades' field is present before featurePackageUpgrades

* Update doc on compileSoftFetchTemplate

* Reword WronglyTypedContractSoft error
2023-05-16 10:33:47 +02:00
Remy
c5ca9e4cf0
Drop Ledger Api Bench Tool (#16857) 2023-05-16 10:09:13 +02:00
Remy
d284aff107
Refactor ledger-test-tool (#16848)
* Refactor ledger-test-tool

* address Marcin's review

* fix build-release-artifacts
2023-05-11 17:44:42 +02:00
Remy
a863d69d34
Move CatonFixture in its own bazel module (#16824) 2023-05-10 23:15:26 +00:00
Samuel Williams
537447d92c
Json Api tests to canton (#16782)
Co-authored-by: Remy <remy.haemmerle@daml.com>
2023-05-10 16:01:39 +01:00
Remy
90c023e98e
Migrate LedgerClient test from to Canton (#16795) 2023-05-10 11:16:40 +02:00
nickchapman-da
5a7451bdf4
[engine] choice authority: clarify remaining things to do (#16752) 2023-04-27 18:30:32 +00:00
nickchapman-da
8ad44f5fbc
kill Node.Authority with fire (#16524) 2023-04-18 14:16:44 +01:00
nickchapman-da
1c4d9c2882
[engine] speedy evaluation for choice authority (#16658)
* Push choice authority through speedy evaluation

fix tests for choice-authorizers limits config

make calls to NeedAuthority as required from speedy begin-exerise builtin; and test

prepare for no authorizers check

* authorization check for NoAuthorizers
2023-04-17 08:28:26 +01:00
nickchapman-da
859d69b1a5
[engine] make authorizers field explicit in Node.Exercise (#16541)
* make authorizers field explicit in TX Node.Exercise

* use Option for exe-node choiceAuthorizers field, to be explicit about when old/default behaviour occurs
2023-04-06 13:05:44 +01:00
Brian Healey
b80dca2dd8
identity provider id awareness for party and user management apis through ledger client (#16632)
* identity provider id awareness for party and user management apis through ledger client

* none case for ObjectMetadata translation
2023-03-30 18:26:53 +00:00
mziolekda
bba520dc57
Fix updating of the audience field in IDP (#16630) 2023-03-30 10:52:32 +00:00
Brian Healey
6c874e8bd2
Add identity provider config to ledger client (#16625)
* IdentityProviderConfigService through ledger client: create config

* IdentityProviderConfigService through ledger client: get config

* IdentityProviderConfigService through ledger client: list configs

* IdentityProviderConfigService through ledger client: delete config
2023-03-30 09:47:05 +02:00
Brian Healey
6a3a7a84a4
implement updateUser in ledger client (#16589)
* implement updateUser in ledger client

* Use unique parties for updateUser trigger test

* scalafmt
2023-03-23 00:12:54 +00:00
Carl Pulley
9c7fc37438
Testing bug fix: ensure package ID is only calculated once per Dar file load (#16582) 2023-03-21 13:32:45 +00:00
Nicu Reut
209e6ec947
Deprecate non-labeled metrics factories [PLEN-183] (#16441) 2023-03-15 11:09:16 +01:00
atriantafyllos-da
e58ea28601
Upgraded circe-yaml to 15.0-RC1. [#16412]. (#16415) 2023-03-13 14:51:43 +01:00
Remy
e6faddb750
Kill com.daml.lf.data.LawlessTraversals (#16516) 2023-03-10 13:34:14 +00:00
mziolekda
c528aaeb12
remove the obsolete sandbox perf (#16450) 2023-03-02 17:33:09 +00:00
mziolekda
aebec01884
move ledger-api-test-tool out of ledger (#16445)
* move ledger-api-test-tool out of ledger

* fix canton test tool
2023-03-02 17:04:45 +00:00
Nicu Reut
7246a21520
Use labeled metrics for the CacheMetrics [PLEN-163][PLEN-167] (#16406) 2023-03-02 11:55:37 +01:00
mziolekda
d8d55ca412
upgrade to scala 2.13.10 (#16423)
* update build system to scala 2.13.10

* fix failing scala files

* format

* fix compatibility

* resolve conflict on maven_install_2.13.json
2023-02-28 23:21:53 +00:00
Nicu Reut
196d0b5f75
Add ability to document async gauges [PLEN-176] (#16402) 2023-02-28 14:38:15 +00:00
Nicu Reut
7e87912cd5
Add ability to configure histograms through the config files [PLEN-159] (#16387) 2023-02-28 10:50:26 +00:00
Nicu Reut
80d5425a88
Migrate DatabaseMetrics to use a labeled metrics factory [PLEN-164] (#16396) 2023-02-28 07:15:45 +00:00
nickchapman-da
fd75c5ece1
[engine] construct ResultNeedAuthority (#16390) 2023-02-27 15:13:30 +00:00
Sergey Kisel
b33d635beb
Customizable JWT audiences (#16330) 2023-02-27 16:05:38 +01:00
Remy
ec147a8263
[Engine] Check disclosed contract key during preprocessing (#16320) 2023-02-22 21:36:12 +01:00
nickchapman-da
a50d99eeb2
[engine] new Result type: ResultNeedAuthority (#16347) 2023-02-20 15:16:53 +00:00
Nicu Reut
8708120ea8
Remove legacy gRPC metrics [PLEN-104] (#16339) 2023-02-20 13:23:52 +01:00
Remy
12c240e06e
[Speedy] do not need disclosed contract at Machine creation time (#16302)
This PR make several (small) changes on how the disclosed contract are
handle by the speedy machine.

(1) disclosed contract at not anymore pass a builtin time. They were
any pass latter using `SBCacheDisclosedContract`.

(2) disclosed contracts are first keep in their own cache,
disclosedContracts: Map[V.ContractId, CachedContract]. They are moved
to the cached for used contract only if used.  In fact we need to be
sure the used disclosed contracts pass through the
Speedy#addGlobalContract to verify the transaction limits are not
overpassed.
2023-02-17 22:59:41 +00:00
Nicu Reut
af4445253f
Instrument the executor services using OpenTelemetry [PLEN-105] (#16328) 2023-02-17 18:14:57 +01:00
Marton Nagy
59bc473b43
Fix transaction_meta handlin (#16325)
* Fixes maxEventSequentialId by using queryStrategy compatible with ledger-begin conditions (+ unit test)
* Fixes ETQ data migration so no transaction_meta entries left before the pruning offset (+ migration test)

[CHANGELOG_BEGIN]
[CHANGELOG_END]
2023-02-16 09:07:45 +01:00
Simon Maxen
6f96aa5e0b
Event query service [DPP-1366] (#16273)
* Add EventQueryService (conformance disabled)

* Update with review comments

* Limit by ledger end

* Limit iterations searching for visible contract key

* Test with choice that recreates key

* Update proto comments

* Add to event query service to services document

* Inject message into token validator

* Fix docs typo

* Improve docs
2023-02-15 17:01:14 +01:00
mziolekda
1a3980bf89
Separate test-common from the rest of the ledger code (#16307)
* move files

* format

* wrong file

* fix conformance tests

* add readme

* fix compatibility tests

* fix haskell tests
2023-02-14 15:29:13 +00:00
Nicu Reut
a50379179e
Add label support to the metrics tag [PLEN-102] (#16309) 2023-02-14 10:40:10 +01:00
Remy
9073e6d09c
[Engine] Add cooperative interruption (#16175)
build on top of #16129
2023-02-14 08:38:46 +00:00
Nicu Reut
c74d950912
Parse multi-value audiences for the JWT tokens [PLEN-138] (#16281) 2023-02-13 13:44:39 +01:00
Marton Nagy
ae8a232f8f
ETQ - Cleanup transaction_meta handling (#16268)
Before this PR the transaction_meta table could have entries
before or at the pruned-upto-offset.
This PR removes the need for keeping those entries, and simplifies
handling and meaning of transaction_meta data.

* Switches transaction_meta pruning to prune everything before pruning offset
* Flips maxEventSequentialIdOfAnObservableEvent implementation to minimum of strictly bigger meta - 1 (plus unit tests)
* Removes dead code, simplifies EventRange lookup and DTO
* Adds pruning SQL migration to remove all entries
* Removes the need of join to parameters table for pointwise queries

[CHANGELOG_BEGIN]
[CHANGELOG_END]
2023-02-13 10:52:02 +01:00
Nicu Reut
67754f65ad
Reword indexed updates metrics (#16277) 2023-02-13 09:27:10 +00:00
mziolekda
d9974984fd
Remove circular dependency on the //ledger project caused by ledger-resources [DPP-1410] (#16295)
* remove circular dependency on the //ledger project caused by ledger-resources

* format
2023-02-13 08:38:44 +00:00
pbatko-da
262d692759
Remove ledger dependency on script (#16292) 2023-02-10 15:22:00 +00:00