Commit Graph

11810 Commits

Author SHA1 Message Date
Carl Pulley
a232bafd42
Refactor simulation code into its own package (#16668) 2023-04-11 08:26:30 +01:00
azure-pipelines[bot]
fa621bec52
bump canton to 20230410 (#16677)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-04-11 09:05:53 +02:00
Gary Verhaegen
36a5d2632a
infra: add daily-reset for azure nodes (#16676) 2023-04-10 23:52:35 +02:00
mziolekda
b446fba6d8
update oracle test image to digitalasset/oracle:enterprise-19.18.0-preloaded-20230403-35-6f80341 (#16650) 2023-04-10 13:40:47 +02:00
azure-pipelines[bot]
2f65e06cdf
bump canton to 20230407 (#16672)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-04-10 13:27:34 +02:00
azure-pipelines[bot]
f398cb1665
update NOTICES file (#16675)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-04-10 13:27:02 +02:00
Stephen Compall
15ee6823f4
test payloadBlob and multiple disclosed contracts in JSON API exercise, create-and-exercise (#16635)
* restore transaction fetch from #16529 497b195043

* add a view so we can ask for blobs

* perform the extra disclosure and check its response text

* remove a layer we won't use

* include token; test passes with user management

* rename to reflect multiple contracts
2023-04-06 10:59:00 -04: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
Carl Pulley
f0664425df
Migrate trigger-integration-tests to Canton (#16662) 2023-04-06 10:51:42 +01:00
azure-pipelines[bot]
6d7966c799
bump canton to 20230405 (#16665)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-04-06 08:58:31 +02:00
azure-pipelines[bot]
a54de395f8
bump canton to 20230404 (#16655)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2023-04-05 19:08:15 +00:00
nickchapman-da
d4ddc63e81
rename (#16661) 2023-04-05 18:30:22 +00:00
Samuel Williams
660d3237de
Implement potential flake fix, run 100 times (#16659)
* Implement potential flake fix, run 100 times

* Remove test, slight refactor

* Move synchonization to ScriptStream
2023-04-05 16:06:42 +00:00
Samuel Williams
3121c95754
Move tests from sandbox to canton (#16640)
* Implement FreePort for Linux

* Refactor FreePort a little, add withCantonSandbox, convert tests

* Implement dynamic port range for windows

* Import readProcess

* Log macOS info

* Switch to locateRunfiles

* Add sysctl for macos

* Bracket correctly

* Change dir to mainworkspace

* Implement MacOS dynamic port range

* Improve regex matches
2023-04-05 15:28:43 +01:00
azure-pipelines[bot]
de8c305d5a
update compat versions (2023-04-01) (#16642)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-04-05 15:25:13 +02:00
nickchapman-da
046552e1e4
[language] check accuracy of 1.dev markers (#16651)
* Consider and address all 1.dev version markers. Some stay at 1.dev. Some change to 1.15 or earlier.

* TYPEREP_TYCON_NAME stays at 1.dev

* remove stray "x"s in .rst file
2023-04-05 13:12:58 +00:00
Carl Pulley
3026c29790
Migrate LoadTesting to use Canton (#16652) 2023-04-05 13:23:32 +01:00
Carl Pulley
2e2bd3c8f1
Basic trigger simulation tests (#16646) 2023-04-05 13:05:53 +01:00
Carl Pulley
ddb6df5ab0
Updating rotation for Dylan and Carl (#16660) 2023-04-05 12:49:58 +01:00
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