Commit Graph

9744 Commits

Author SHA1 Message Date
Gary Verhaegen
e193f421c6
bump Bazel cache (#13635)
CHANGELOG_BEGIN
CHANGELOG_END
2022-04-20 02:53:43 +02:00
Stephen Compall
9cafd894c1
nicer party throwaway literals in tests (#13619)
* replace NoCid with Aux
* xmap on ValueAddend, a way to e.g. let users "pun" on scalars
* nicer party specifications
- suggested by @realvictorprm; thanks

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-19 09:54:50 -04:00
Hubert Slojewski
16a97e8715
Move KVErrors to participant-state-kv-errors [KVL-1371] (#13604)
CHANGELOG_BEGIN
CHANGELOG_END
2022-04-19 15:22:31 +02:00
Gary Verhaegen
ac8343fa7b
release 2.1.1 (#13625)
This is the same commit as 2.1.0, because as far as I know there is no
patch needed on the daml side. This is done solely to enable Canton to
make a 2.1.1 patch on their side.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-19 13:27:42 +02:00
Sergey Kisel
a6b3d5f581
Cleanup around configuration (#13597)
* Cleanup around configuration

CHANGELOG_BEGIN
CHANGELOG_END

* Removal of unused configuration parameters. Merge cohesive params.

* Removal of ParticipantIndexerConfig as redundant transformation layer.

* Extracting engine config values

* Separation of IndexConfiguration
2022-04-19 13:19:11 +02:00
Gary Verhaegen
8a4b2c2844
fix bump-canton (#13626)
- Add notifications so I don't miss te updates.
- Add explicit `fetch` so we can detect if the same branch already
  exists.
- Run from `main` so we geet a fresh view in case of reruns.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-19 12:27:17 +02:00
azure-pipelines[bot]
bdb69929e9
bump canton to 20220418 (#13621)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-04-19 12:05:07 +02:00
azure-pipelines[bot]
810ff360c6
update NOTICES file (#13622)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-04-19 11:40:01 +02:00
Nicu Reut
988b609051
Ensure out of time bounds entries are set for all rejections [KVL-1412] (#13595) 2022-04-18 12:04:49 +02:00
Hubert Slojewski
6b3e7969cf
ledger-api-tests: Add hints to eventually [KVL-1407] (#13607)
CHANGELOG_BEGIN
CHANGELOG_END
2022-04-15 14:19:57 +02:00
Sergey Kisel
1e5ff74a3b
Readability cleanup. (#13581)
* Readability cleanup.
2022-04-15 11:32:09 +02:00
Gary Verhaegen
957db9b091
auto-bump canton (#13596)
Or, maybe, break CI trying to.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-14 17:02:37 +00:00
Sergey Kisel
2b4b2f2d3e
Add ledger-service/jwt to test evidence generator. (#13579)
* Add ledger-service/jwt to test evidence generator.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-14 17:39:36 +02:00
Nicu Reut
2ad6d2985f
[kvutils] Remove unused batched submission validation [KVL-1372][KVL-734] (#13589) 2022-04-14 15:56:26 +02:00
Moisés Ackerman
2e22929cd0
Desugared Daml golden tests (#13591)
* Add daml-desugar library

* Add desugar command to damlc

* Add daml-desugar golden tests

* Add EXPECTED.desugared-daml files for Interface tests

* Add EXPECTED.desugared-daml files for Exception tests

* drop manually generated {Exception,Interface}Desugared files

changelog_begin
changelog_end
2022-04-14 13:14:37 +00:00
azure-pipelines[bot]
6d0d6a0f94
update NOTICES file (#13593)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-04-14 12:20:53 +02:00
Gary Verhaegen
3416192735
fix typo in error message (#13594)
CHANGELOG_BEGIN

- The error message for invalid numerical conversion has been corrected:
  "loss of precision" instead of "lost of precision".

CHANGELOG_END
2022-04-14 09:17:50 +00:00
Nicu Reut
c8f4a84eed
[kvutils] Remove the kv integrity checker [kvl-1365] (#13585) 2022-04-14 10:39:29 +02:00
Nicu Reut
dadf66a233
Remove ledger-on-memory dependecy from recovering indexer integration tests [KVL-1365] (#13582) 2022-04-14 10:38:44 +02:00
Stefano Baghino
d105db2ece
Mention that we do not publish docs for snapshots in the release guide (#13587)
changelog_begin
changelog_end
2022-04-14 10:37:49 +02:00
azure-pipelines[bot]
2dc1085b47
rotate release duty after 2022-04-13 (#13577)
@stefanobaghino-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-04-13 19:21:15 +02:00
Gary Verhaegen
f6d471eacc
remove Windows installer (#13586)
The installer is now created in the assembly repo. Keeping the code
around here is just confusing.

Note that this should not impact our ability to publish patch releases
on pre-2.0 versions, as all of the files involved are non-yml.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-13 16:18:07 +02:00
Gary Verhaegen
14c5ca39d7
release 2.1.0 (#13576)
CHANGELOG_BEGIN
CHANGELOG_END
2022-04-13 10:28:17 +02:00
carrielaben-da
b7c4bdab85
Adding Alt tags to images (#13469)
Adding and improving alt tags to all images in the documents for accessibility.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-12 20:06:22 +00:00
Gary Verhaegen
6fe55a0344
docs: remove ops/connect/index (#13575)
This brings the docs in line with digital-asset/docs.daml.com#5.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-12 21:30:25 +02:00
Robin Krom
fcd3b6622b
ifaces:support exercising by required interface (#13554)
* ifaces:support exercising by required interface

This adds support to exercise an interface choice on a contract ID,
where the interface is required by one of the implemented interfaces of
the contract template.

Fixes #13434.

CHANGELOG_BEGIN
CHANGELOG_END

* some improvements based on review

* added a test plus a bugfix

* Update daml-lf/interpreter/src/main/scala/com/digitalasset/daml/lf/speedy/PhaseOne.scala

Co-authored-by: Sofia Faro <sofia.faro@digitalasset.com>

* 2 more interface tests for the command preprocessor

Co-authored-by: Sofia Faro <sofia.faro@digitalasset.com>
2022-04-12 18:15:29 +00:00
Stephen Compall
4a3d0b316b
use matchers for trigger test assertions (#13569)
* use shouldBe
- suggested by @cocreature

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-12 16:51:25 +00:00
Stefano Baghino
84c8be8181
Restrict Java codegen to types that can be seen over the Ledger API (#13571)
* Restrict Java codegen to types that can be seen over the Ledger API

Fixes #13324

Builds on top of refactorings part of #13372, #13439 and #13440,
alongside adding interface support to the transitive closure function
in #13557.

changelog_begin
[Java codegen] The Java codegen now restricts its output to Daml definitions
that are either directly or indirectly referred as part of a template or
interface (that is, only the types that can be seen over the Ledger API).
See #13324 for further details.
changelog_end

* Adapt tests to add template references for every type

* Address https://github.com/digital-asset/daml/pull/13440#discussion_r837318725

* Avoid invoking the recursion from two different places.

* Address https://github.com/digital-asset/daml/pull/13571#discussion_r848441581

* Address https://github.com/digital-asset/daml/pull/13571#discussion_r848442738

* Address https://github.com/digital-asset/daml/pull/13571#discussion_r848314960
2022-04-12 18:16:29 +02:00
Gary Verhaegen
e085a4932e
bump canton (#13574)
I'm considering automating this, but thought I'd do it manually once
first.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-12 15:23:11 +00:00
Gary Verhaegen
4a93384414
bump nightly version (#13573)
The release process for 2.1.0 is ongoing. I think it's safe to say at
this point if we need to change the RC we'll do it with backports.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-12 13:18:41 +02:00
Gary Verhaegen
90e03a3044
docs cron: do not build post-2.0 (#13572)
After 2.0, the docs need to be built alongside Canton files, and that is
taken care of by the [docs.daml.com] repo.

[docs.daml.com]: https://github.com/digital-asset/docs.daml.com

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-12 13:13:50 +02:00
Robert Autenrieth
b9db7c37a5
Use event partitions directly (#13032)
* Use event partitions directly

changelog_begin
changelog_end

* it's more complicated

* fix query

* don't use divulgence to look up events

* fix query

* Remove commented out code

* Fix query

* fmt

* Actually remove the events view

at least on Postgres

* Remove view from Oracle

* Remove view from H2

* Fix hash

* fix boolean constants for oracle
2022-04-12 13:00:43 +02:00
Gary Verhaegen
2064443555
docs: fix intro project names (#13562)
It looks like we have changed the package naming rules such that a lot
of examples in our documentation are now producing warnings. This PR
fixes the `daml new` commands, though I believe we should rather change
the package name constraints back, as it looks like a gratuitous
backwards-compatibility break.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-12 10:47:52 +00:00
azure-pipelines[bot]
e23b58a678
update NOTICES file (#13570)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-04-12 11:38:24 +02:00
Moisés Ackerman
d85ced7b79
Cross-module interface tests (#13560)
* Add test case 'require interface from data-dependency'

* Add test case 'data-dependency interface hierarchy'

changelog_begin
changelog_end
2022-04-12 10:23:31 +02:00
Matthias Schmalz
c21a135d4f
Changed log level of PARTICIPANT_BACKPRESSURE to INFO. (#13555)
(Otherwise, an excessive rate of incoming commands will flood the log file with backpressure warnings.)

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-12 09:49:55 +02:00
Sergey Kisel
7dd678c920
Publish security test evidence to assembly repo (#13544)
Publish security test evidence to assembly repo

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-12 08:46:20 +02:00
Stephen Compall
f6fed6eaed
use matchers for trigger service test assertions (#13567)
* remove boolean usage of assertTriggerStatus
* remove CompatAssertion

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-11 19:07:17 +00:00
Sergey Kisel
8a2761d837
Cleanup unused classes related to pureconfig (#13559)
* Cleanup unused classes.

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-11 21:00:31 +02:00
Stephen Compall
a62c2e1456
cross-reference associated WS and normal POST docs (#13563)
* cross-reference /v1/query and /v1/stream/query
* cross-reference /v1/fetch and /v1/stream/fetch

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-11 14:49:31 -04:00
Stephen Compall
289e1c3692
use matchers for auth middleware test assertions (#13565)
* use OptionValues instead of Option#get

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-11 14:47:57 -04:00
Sergey Kisel
c7e5c83684
Simplify test evidence generator [DPP-996] (#13553)
CHANGELOG_BEGIN
CHANGELOG_END
2022-04-11 19:24:28 +02:00
Stefano Baghino
10cd76a5d4
Add interface support to transitiveClosure (#13557)
* Remove unused field from `Node`

* Add interface support to `transitiveClosure`

Contributes to #13324

changelog_begin
changelog_end

This work can be reused to address #13349 and I left `TODO`s where appropriate.

* Address https://github.com/digital-asset/daml/pull/13557#discussion_r847434729

* Address https://github.com/digital-asset/daml/pull/13557#discussion_r847435412

* Turn the bulk of the logic of `transitiveClosure` into a smart constructor
2022-04-11 16:36:23 +00:00
Moisés Ackerman
606896e17f
Add partial ContractId-in-template-key check (#13541)
* Add Keyability check in DA.Daml.LF.TypeChecker

* Update expected errors in daml-test-files/ContractIdInContractKey.daml

* Update no-contract-ids-in-keys daml-lf scenario test to circumvent new check

changelog_begin
[Daml Compiler] Implemented compile-time check disallowing ContractId types in contract key types. This check looks for potential problems with the contract key type only within the template's module.
changelog_end

Co-authored-by: Sofia Faro <sofia.faro@digitalasset.com>
2022-04-11 18:05:49 +02:00
Moisés Ackerman
d9f1823d73
Update "Working on ghc-lib" (#13524)
* drop unnecessary step - submodules are now absolute

* drop integer-simple macOS workaround

* recommend cabal build instead of stack

* Update ghc patch procedure instructions

* changelog

changelog_begin
changelog_end
2022-04-11 15:18:50 +02:00
Robin Krom
8c046c7776
ghc-lib:remove unused let bindings (#13525)
* ghc-lib:remove unused let bindings

This updates ghc-lib, such that no unused let bindings are created in
Archive choices.

Fixes #13431.

CHANGELOG_BEGIN
CHANGELOG_END

* update ghc-lib hash

* Update of InterfaceDesugared.daml
2022-04-11 12:34:17 +00:00
Sergey Kisel
ebb80b810a
Security Test Evidence for JwksVerifier (#13538)
* Security Test Evidence for JwksVerifier

CHANGELOG_BEGIN
CHANGELOG_END
2022-04-11 13:18:55 +02:00
pbatko-da
d2d7021303
[Docs] Small correction in v1/value.proto (#13516)
changelog_begin
changelog_end
2022-04-11 12:55:31 +02:00
azure-pipelines[bot]
ed62693fe7
update NOTICES file (#13547)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-04-11 12:15:44 +02:00
Stefano Baghino
b245703b39
Refactor Java codegen (#13440)
* Remove unused class `JavaConf`

* Adapt tests to add template references for every type

* Minimize the data passed to `collectDamlLfInterfaces`

* Separate `CodeGen` from `CodeGenRunner`

* Refactor interfaces collection and resolution

* Refactor Java codegen

* Return `InterfaceType`s from `transitiveClosure`, move `DefTemplateWithRecord` to the Scala codegen

* Remove unused abstractions from the Java codegen

changelog_begin
changelog_end

* Minimize diff: move as much as possible to `CodeGenRunner`

* Revert "Adapt tests to add template references for every type"

This reverts commit 37c8c827179daa29668fa843c79afc8cef09e431.

* Fix compilation errors

* Minimize diff: restore imports in `ClassForType`

* Minimize diff: get rid of unnecessary refactorings

* Further simplications and fixing compilation errors

* Minimize diff: move `collectDamlLfInterfaces` back to its previous position

* Address https://github.com/digital-asset/daml/pull/13440#discussion_r846301958
2022-04-11 10:06:30 +00:00