Commit Graph

11641 Commits

Author SHA1 Message Date
Carl Pulley
1a58e9aa23
Refactor trigger rule simulation lib (#16645) 2023-04-03 17:21:12 +01:00
Carl Pulley
69d4a30600
Bug fix: use retries to manage logger/metrics race condition (#16647) 2023-04-03 15:02:45 +01:00
nickchapman-da
3abbf2b972
[engine] Push choice authority through compilation pipeline (#16639) 2023-04-03 09:19:24 +00:00
azure-pipelines[bot]
1ead2d1997
update compat versions (2023-04-02) (#16648)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-04-03 09:59:34 +02:00
Carl Pulley
c0a9bdd4b9
Refactor of numberOfActiveContracts to expose a mre abstact ACS view (#16644) 2023-04-03 08:53:05 +01:00
Carl Pulley
dbedb5523d
Refactored Converter.to* methods to be static (#16643) 2023-04-03 08:49:06 +01:00
azure-pipelines[bot]
a64f82654d
update compat versions (2023-03-31) (#16637)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-04-03 09:08:51 +02:00
Remy
c20fc05d78
[Script] move test_daml_script_test_runner from sandbox to canton (#16616) 2023-03-31 10:12:28 +02:00
Moritz Kiefer
dfc8619e35
Clarify documentation on setTime (#16607)
See
https://discuss.daml.com/t/how-can-i-get-the-actual-time-when-running-scrips-on-visualstudio-code/6338/4,
we had a user that got confused about behavior in `daml test` so this
PR clarifies that.
2023-03-31 09:46:20 +02:00
Stephen Compall
182d8a854a
allow disclosed contracts to be passed to create-and-exercise (#16611) 2023-03-31 00:07:23 +00:00
Gary Verhaegen
8d4a64e164
start 2.6.1 process (#16633) 2023-03-30 22:21:18 +00:00
Stephen Compall
ddc4930f1a
explicit disclosure parameters for JSON API (#16529)
Adds a `disclosedContracts` optional list field to the `meta` argument
for `create`, `exercise` and `create-and-exercise` endpoints.

The argument is ignored in all cases but `exercise` (#16611 builds on
this PR to add `create-and-exercise` support). A single disclosed
contract looks more or less like follows:

    { 
      "contractId": "abcd", 
      "templateId": "Mod:Tmpl", 
      $argumentsJsonField, 
      "metadata": { 
        "createdAt": "2023-03-21T18:00:33.246813Z", 
        "contractKeyHash": "77656c6c2068656c6c6f", 
        "driverMetadata": "dGhlcmUgcmVhZGVy" 
      } 
    }

where `argumentsJsonField` may be either one of these, setting aside the
extra quotes added for these tests:

    "payload": {"owner": "Alice"}
    
    "payloadBlob": { 
      "typeUrl": "type.googleapis.com/com.daml.ledger.api.v1.Record", 
      "value": "Eg4KBW93bmVyEgVaA0JvYg==" 
    }

(Note that `typeUrl` is variable, not constant; use the actual blob's
`typeUrl` contents, **do not assume it is exactly the above example**.)

This PR uses base-64 for `payloadBlob.value` and
`metadata.driverMetadata`, and base-16 for `metadata.contractKeyHash`.
2023-03-30 20:41:36 +00: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
Gary Verhaegen
6fa0293535
start 2.3.11 (#16628) 2023-03-30 14:42:54 +02:00
Gary Verhaegen
b54bdcf00d
fix small oversight in azure config (#16629) 2023-03-30 13:39:47 +02: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
azure-pipelines[bot]
ddf192c707
bump canton to 20230329 (#16627)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-03-30 09:33:05 +02:00
Gary Verhaegen
f3943c4574
fix canton update (#16622)
Broken by #16595.
2023-03-29 17:03:16 +02:00
Gary Verhaegen
7d69a5975c
ci: set up Ubuntu nodes on Azure (#16610) 2023-03-29 15:21:14 +02:00
nickchapman-da
629439d876
[engine] choice authority syntax (#16602) 2023-03-29 15:19:47 +02:00
azure-pipelines[bot]
ecf819fb7c
rotate release duty after 2023-03-29 (#16620)
@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.

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-03-29 15:19:35 +02:00
Samuel Williams
67f87ad75f
Convert LSP tests (#16615)
* Convert lsp tests to scripts

* Tests are still flaky
2023-03-29 11:41:29 +01:00
Samuel Williams
04e28f6e21
Use unversioned daml-script where possible (#16609) 2023-03-29 11:39:50 +01:00
Remy
b5441712aa
[Script] extract CantonFixture to be share with triggers (#16595) 2023-03-28 14:58:00 +02:00
azure-pipelines[bot]
f4cc3e64bc
bump canton to 20230327 (#16613)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-03-28 11:18:59 +02:00
Samuel Williams
9aa586fb9e
Switch doctest to use scripts (#16573)
* Convert doctest over to using script.
Prim tests not working

* Add no-source flag to doctest so we can still run stdlib

* Fix damlDocTestntegration

* Add various comments, fix up flags
2023-03-27 16:18:41 +01:00
Samuel Williams
7965687da2
Convert ShakeIdeClient tests from Scenario to Script (#16587)
* Convert ShakeIdeClient tests from Scenario to Script

* Small tweaks
2023-03-27 14:28:20 +01:00
azure-pipelines[bot]
fd6ee3c34c
bump canton to 20230324 (#16604)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-03-27 13:14:58 +02:00
azure-pipelines[bot]
ea332374d9
rotate release duty after 2023-03-22 (#16591)
@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-03-27 11:43:54 +02:00
azure-pipelines[bot]
464a5f3d0e
update NOTICES file (#16606)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-03-27 11:40:08 +02:00
Raphael Speyer
e5053bd4cc
Fix fetching contracts with Numerics in their keys. (#16605)
Switch to an LF converter which preserves the numeric's scale, allowing keys to match correctly.

Co-authored-by: = <=>
2023-03-27 11:06:10 +02:00
Gary Verhaegen
7f6b1fe3e8
Fix blackduck (#16598)
* fix blackduck

BlackDuck is currently failing to run because it creates multiple report
files and then expects a single one. This is due to #16552 changing only
one of the output file names.

This PR resolves this by:

1. Changing the name everywhere, so all runs aggregate their results on
   the same file.
2. Changing the PR step code to expect the given file name, rather than
   try and glob it.

My understanding of the BlackDuck setup is very fuzzy so please
double-check carefully.

See #16600 for an example of what the update would be from this PR.

* Update daily-compat.yml

main instead of local-main-maven

---------

Co-authored-by: Brian Healey <brian.healey@digitalasset.com>
2023-03-27 00:31:25 +00:00
nickchapman-da
4298cde9d2
[compiler] avoid confusing emacs (#16597) 2023-03-23 13:04:49 +00:00
Gary Verhaegen
bff691b54f
compat: fix dev-env activation (#16593)
It doesn't seem to be causing any issue, but it does print a couple
error messages, so we might as well fix it.
2023-03-23 13:10:48 +01:00
Remy
c62f03e934
[Script] fix AuthIT (#16594) 2023-03-23 10:05:02 +01:00
azure-pipelines[bot]
3ef3446016
bump canton to 20230322 (#16596)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-03-23 08:50:38 +01: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
Remy
41dc1a1d68
Migrate remaining Daml Script tests from Sandbox-on-x to Canton (#16576)
This PR breaks AuthIT. It will be fixed in thefollowing one.
2023-03-22 13:45:52 +00:00
Matthias Schmalz
b967ef3e6d
Revised ScalaDocs of DAML engine to make security relevant assumptions explicit (#16555)
CHANGE_LOG_BEGIN
CHANGE_LOG_END
2023-03-21 16:01:20 +00:00
Moisés Ackerman
c423e8d151
Update "Working on ghc-lib" dev docs (#16574)
* Update ghc-lib/new-working-on-ghc-lib.md

* Update GHC_REV
2023-03-21 15:34:08 +00:00
Samuel Williams
512cf5c769
Remove scenarios (or mention of) from a small batch of tests (#16575)
* Remove scenarios (or mention of) from a small batch of tests

* Small fix
2023-03-21 14:51:59 +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
azure-pipelines[bot]
f0911f9550
update compat versions (2023-03-21) (#16579)
* update compat versions (2023-03-21)

CHANGELOG_BEGIN
CHANGELOG_END

* Disable ExplicitDisclosureIT in compatibility tests as it is alpha

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Tudor Voicu <tudor.voicu@digitalasset.com>
2023-03-21 11:52:12 +01:00
azure-pipelines[bot]
cf5f3af53b
bump canton to 20230320 (#16578)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-03-21 08:53:01 +01:00
Remy
44b43a4d57
Clean up daml script tests (#16570) 2023-03-20 15:02:52 +01:00
Carl Pulley
be078d0e7c
extend rule simulation tests with expected (jn general) logging metric changes (#16508) 2023-03-20 13:28:49 +00:00
Carl Pulley
163abba444
trigger rule simulation test (with naive/simple data generators) to prove out heartbeating logging metrics (#16507) 2023-03-20 11:11:40 +00:00
Soren Bleikertz
cf28f5e2cb
Delete telemetry private token file (#16571) 2023-03-20 09:33:12 +00:00
azure-pipelines[bot]
2211f902d1
bump canton to 20230317 (#16564)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-03-20 09:01:59 +01:00