Commit Graph

11851 Commits

Author SHA1 Message Date
Gary Verhaegen
a791df7c1c
fix canton build (#16954)
It's not all that useful if we don't actually build the commit we're
trying to build.
2023-06-05 10:58:11 +00:00
Remy
ce2203dd2a
Reactivate test disable in #16760 except on windows (#16957)
namely

- //daml-script/export/integration-tests/reproduces-transactions:test
- //compiler/damlc:daml-stdlib-doctest
2023-06-05 11:46:03 +02:00
Remy
3ef51a711c
[LF] add back informees method for transaction (#16947)
deleted by error in #16927
2023-06-05 08:20:31 +00:00
Marton Nagy
9f55d6798b
MVP Multi Domain Ledger API (#16760)
First draw of Multi Domain Ledger API V2

[CHANGELOG_BEGIN]
introducing Ledger API V2 in a backwards compatible fashion.
For change-log and migration hints please read v2/package.proto.
[CHANGELOG_END]
2023-06-04 23:00:52 +02:00
Erwin Ramirez
cfc499fbb6
Addition metrics on update cache (#16930)
* added cache update to metrics

* formatting

* added extra logs as commented

* added logs and metrics on query request failure/ success

* comments addressed

* further comments addressed

* formatting
2023-06-02 17:37:47 +10:00
Gary Verhaegen
de6f31c4d8
canton: allow depending on arbitrary sha (#16926) 2023-06-01 15:06:35 +00:00
Gary Verhaegen
2b911c1d9c
fix Windows (#16950) 2023-06-01 17:05:04 +02:00
Remy
d692e5873c
[Script] Fix broken tests after conflicting merge (#16945)
culprits are #16920 and #16893

In this PR, we split properly Stable tests from Dev one.
2023-05-31 18:41:49 +00:00
Brian Weir
b116c92757
Daml finance quickstarter remote (#16940) 2023-05-31 18:46:06 +02:00
pbatko-da
0b75fa2a32
Add test-tool tests for IDP reassignment for user and parties (#16911) 2023-05-31 17:11:23 +02:00
Remy
dd98cbec76
[LF] Cleanup API for disclosed contract (#16920) 2023-05-31 14:39:53 +02:00
azure-pipelines[bot]
01fcf2ffc6
rotate release duty after 2023-05-31 (#16941)
@remyhaemmerle-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.
2023-05-31 14:29:24 +02:00
nickchapman-da
587efe4401
[Upgrades POC] softExercise (#16893) 2023-05-31 12:21:39 +00:00
azure-pipelines[bot]
be9b9b5336
bump canton to 2.7.0-snapshot.20230530.10440.0.v4dee2e2c (#16942)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-05-31 10:41:29 +02:00
dylant-da
17ce9a2316
Emit updated numeric primitives in stdlib/compiler (#16852)
* Amend DA.Numeric & Prelude to use updated primitives, make Legacy module

* Replace legacy numeric functions with CPP

* starting fixes - WIP

* remove clauses from convertPrim

* fix integration tests using Pi with new parameter

* Split tests into pre-post DAML_NAT_TYPE_ERASURE

* reorder forall-quantified vars in numeric primitives
2023-05-30 18:18:05 +00:00
dylant-da
dbb5ed8bf1
Provide CLI for reading/writing/aggregating serialized test results (#16928)
* Add CLI flags for reading, aggregating, writing test results

* Add tests for reading, writing, aggregating, and aggregation + read

* Rename write-results/read-results to save-coverage/load-coverage

* Rename ResultsIO -> CoveragePaths
2023-05-30 16:58:57 +00:00
Remy
198a81f9c3
[LF] Drop kv-support (#16927) 2023-05-30 16:53:21 +02:00
Remy
4845ddf48d
Skip 1.dev integration tests on Windows (#16937) 2023-05-30 14:42:32 +00:00
Moisés Ackerman
388617938d
SBPromoteAny - extend contracts with missing optional fields (#16910)
* Add test case

* Add ImmArray#drop

* SBPromoteAnyContract extends values of pred template types

* fmt

* Revert "Add ImmArray#drop"

This reverts commit 9f7ea3a9d73289aaec179eb47928b2ee22a31c76.

* TODO

* Refactor SBPromoteAnyContract suffix construction

* Lookup DataRecord using pkgInterface

* coin-upgrade-v1-v2-new-field now tests that new field works with get/set
2023-05-30 16:13:21 +02:00
dylant-da
6058070637
Remove daml visualize / damlc visual (#16901)
* Remove daml visualize / damlc visual

* fix redundant imports

* remove visual-web subtest
2023-05-30 10:50:36 +01:00
azure-pipelines[bot]
3dea2d6bfc
bump canton to 2.7.0-snapshot.20230529.10431.0.vc27aa0bf (#16932)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-05-30 08:58:43 +00:00
Remy
cbc2ecc550
Fix doc about length of Id Strings (#16933) 2023-05-30 10:13:44 +02:00
peterkvokacka-da
6c3f997499
LT-25 publish JSON-API HikariCP metrics (#16921)
* JSON-API: publish HikariCP metrics

* formatting

* address review comment
2023-05-30 11:47:22 +10:00
Erwin Ramirez
dfeec9c423
Improvements logs json api (#16924)
* updated logback json to allow env to set the root log level with default info
Added logs on iteration to ledger when updating the query-storage cache

* formatting scala code

* comments addressed

* removed unneeded variable

* formatting

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

Co-authored-by: Raphael Speyer <raphael.speyer@digitalasset.com>

* remove debug block

---------

Co-authored-by: Raphael Speyer <raphael.speyer@digitalasset.com>
2023-05-30 11:04:55 +10:00
azure-pipelines[bot]
3fbe7d01d0
bump canton to 2.7.0-snapshot.20230526.10429.0.vf8c839fc (#16929)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-05-29 16:46:45 +00:00
Raphael Speyer
8fe0d7ed5c
JSON API: Add some tests around the size limits of field names that are supported by querying. (#16925)
The tests are not comprehensive.
We demonstrate that if the Oracle payload index is on, the names of fields with type Int may not exceed 251 chars.
For other configurations, Int and Text fields can have a name with lengths of at least 512 chars.

Also updated the naming and explanation of the guards which disable some tests when using Oracle with JSON index.
2023-05-27 09:33:40 +10:00
Simon Maxen
761071f215
Tree transaction building (#16912)
* With test transaction building refactor
2023-05-26 14:03:09 +01:00
dylant-da
b8f2830e54
Add template for requesting improvements to errors (#16918)
* Add template for requesting improvements to errors

* Default title, labels (devex + language/), add dylant-da as assignee
2023-05-26 12:55:34 +01:00
Andreas Lochbihler
b06daf6dc3
choice authorizers are informees (#16915) 2023-05-26 13:35:08 +02:00
azure-pipelines[bot]
998513bdf4
bump canton to 2.7.0-snapshot.20230525.10417.0.v4fa7b659 (#16922)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-05-26 09:47:39 +00:00
azure-pipelines[bot]
4996099eeb
update compat versions (2023-05-26) (#16923)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-05-26 09:17:37 +00:00
Gary Verhaegen
8d0357ce02
update bump_canton for new snapshot format (#16919) 2023-05-25 17:05:00 +02:00
Carl Pulley
eec7051a7d
Removed cyclic dependency issue in trigger simulation startup (#16916) 2023-05-25 13:30:36 +01:00
pbatko-da
b1a0a1df6a
Fix proto typo (#16913)
Breaks-protobuf: true
2023-05-25 12:34:46 +02:00
atriantafyllos-da
434badcfc2
Make LoggingContext extendable. (#16908) 2023-05-25 12:14:15 +02:00
Remy
f52cf74959
drop compatibility test for SDK < 1.16.0 (#16909) 2023-05-25 08:51:13 +02:00
Gary Verhaegen
0ef6fea124
try new version scheme (#16861)
I'm really curious as to what, if anything, will break.
2023-05-24 16:34:14 +02:00
azure-pipelines[bot]
4022d3eacc
rotate release duty after 2023-05-24 (#16906)
@samuel-williams-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-05-24 14:05:25 +02:00
azure-pipelines[bot]
560ed69bcd
update NOTICES file (#16907)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-05-24 12:45:01 +02:00
Samuel Williams
0f1317370d
Improve Hoogle/damldocs (#16847)
* Implement Interface, template and choice entries in hoogle

* Update expected files with additional anchor for choice

* Fix new IT

* Added signatory to template docs

* Fix a couple bugs

* Update expected files

* Implement getChoiceControllerMap

* Display controllers in docs

* Update expected filess

* Final tweaks

* Fix expected file

* Fix controller for interface archives

* Update tests

* Fix following main merge

* Fix controllers for templates with lets

* Drop square brackets

* Switch hoogle definitions as discussed
2023-05-24 09:04:19 +01:00
Raphael Speyer
b53effd6e0
JSON API: fix empty string comparisons on Oracle (#16892)
Oracle conflates empty strings with NULL, which breaks comparison operations against empty strings.

This change makes Oracle-backed queries have the behaviour you'd expect when comparing empty strings, in line with what we see on Postgres and in-memory backed queries.

We had to take a bit of care to ensure it worked irrespective of whether the JSON index was enabled.

Fixes https://digitalasset.atlassian.net/browse/LT-24
2023-05-24 13:47:23 +10:00
mziolekda
06abd5c649
Clean up ledger dependencies (#16894)
* 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

clean up ledger-api-common part I

clean up ledger-api-comon part II

clean up ledger-api-common part III

remove ledger/metrics

clean up ledger-api-health and ledger-api-domain

* remove ledger-configuration ad ledger-offset

* remove ledger-grpc and clean up participant-local-store

* reshuffle few more classes

* format
2023-05-23 13:44:17 +00:00
markus-da
ab6a85a0a0
update daml finance quickstarter (#16899) 2023-05-23 12:59:56 +00:00
dylant-da
943e140bbb
Add test generator for keeping Cabal files in sync (#16864)
* wip

* Add generate_cabal{_and_track}_cabal for keeping cabal files in sync

* lint

* Disable generate_and_track_cabal on windows

* Fix build script to generate comments on separate lines

* Fix sorting, detect alias rules for ghc-lib-parser

* allow specifying file in generate_and_track_cabal

* Fully qualify path to cabal generation target

* Add handler for daml_lf_dev_archive_haskell_proto

* fix trailing T;p

---------

Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2023-05-23 10:00:02 +01:00
Raphael Speyer
9c2e7c28f9
JSON API: increase size of the multiple-observers test (#16884)
to 1000 observers x 185 chars.
2023-05-23 18:26:30 +10:00
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
Moisés Ackerman
b55d80a881
Reinstate WronglyTypedContractSoft as Dev error (#16891) 2023-05-22 18:28:28 +00: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