Commit Graph

12841 Commits

Author SHA1 Message Date
Marton Nagy
18ed5a82e3
Add domainId to TS bindings (#18610)
Plus a smoke test
2024-03-04 13:52:38 +01:00
dylant-da
2657d34882
Add "tink" provider in daml sandbox (#18619) 2024-03-04 12:17:08 +00:00
Remy
5df53ffa30
move BigNumeric type out of Prelude (#18614) 2024-03-04 12:07:26 +01:00
Samuel Williams
fea93c8e83
Codegen error improvements (#18549) 2024-03-01 15:14:21 +00:00
Moisés Ackerman
7ee8ddf798
20240301 snapshot (#18617) 2024-03-01 14:46:13 +00:00
Moisés Ackerman
41e4848eb1
Make CI steps 'publish_npm_mvn', 'publish' and 'PublishPipelineArtifact@0' only run on 'main{,-2.x}' (#18620)
This is a partial revert of https://github.com/digital-asset/daml/pull/18597, which removed the condition 'in(variables['Build.SourceBranchName'], 'main', 'main-2.x')' from those steps
2024-03-01 15:19:21 +01:00
Remy
9c5fae542e
Fix Serialization of choice observer (#18615) 2024-03-01 11:59:27 +00:00
azure-pipelines[bot]
29e001900d
update canton to 3.0.0-snapshot.100000000.20240229.12732.0.v376ecf1c (#18612)
tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-03-01 07:32:20 +00:00
Remy
68dfd93476
Drop non interned string from archive proto (#18598) 2024-02-29 17:01:51 +00:00
dylant-da
b089e6daea
Typecheck variant upgrades (#18592) 2024-02-29 15:00:17 +00:00
azure-pipelines[bot]
90de0c12c6
update canton to 3.0.0-snapshot.100000000.20240228.12717.0.vfdec1693 (#18604)
* update canton to 3.0.0-snapshot.100000000.20240228.12717.0.vfdec1693

tell-slack: canton

* Add @maven//:org_typelevel_cats_core_2_13 to community_ledger_ledger-json-api deps

* Fix java codegen

* fix javadoc for java codegen

* fmt

* Fix //release:test-protobuf-structure

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2024-02-29 15:14:57 +01:00
dylant-da
a9d14fbb5e
Deeper type resolution via gammaTypes, more errors for datatypes (#18172) 2024-02-29 11:25:33 +00:00
Remy
9fd32b7b0c
[LF] Drop non interned DottedName from archive proto (#18578) 2024-02-28 18:11:55 +01:00
Gary Verhaegen
8b8e95d0e0
[release] push to maven again (#18597) 2024-02-28 17:37:30 +01:00
Moisés Ackerman
3e18bba30b
Fix bogus error when deriving Enum for single-constructor enumeration (#18513)
* Add failing test case

* Bump GHC_REV
2024-02-28 11:35:05 +00:00
azure-pipelines[bot]
865ef283b6
update canton to 3.0.0-snapshot.100000000.20240227.12689.0.vc62359d9 (#18594)
* update canton to 3.0.0-snapshot.100000000.20240227.12689.0.vc62359d9

tell-slack: canton

* fix deps

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2024-02-28 10:20:39 +00:00
Remy
fb7ed24b6e
[LF] drop KeyExpr from archive proto (#18583) 2024-02-28 00:19:31 +00:00
Remy
979bcd9eca
[LF] drop proto LF 1 archives (#18581) 2024-02-27 16:02:45 +01:00
Moisés Ackerman
3f365b1ca9
fix damlc integration jq queries (#18588)
* damlc-integration: don't decode package id in import/export jq queries

* damlc-integration: add '// 0' fallback for possibly empty proto fields
2024-02-27 14:15:47 +01:00
Moisés Ackerman
573d6d7bf3
Fix //daml-script/test:upgrade-test for releases (#18586) 2024-02-27 10:00:04 +00:00
azure-pipelines[bot]
fb5e29c21b
update canton to 3.0.0-snapshot.100000000.20240226.12677.0.veae4b8fd (#18585)
tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-27 09:23:19 +01:00
Gary Verhaegen
888a639953
fix release script again (#18582) 2024-02-27 01:08:15 +01:00
Remy
5e8065d9d6
fix serialization of choice authorizers (#18580) 2024-02-26 19:59:33 +00:00
Moisés Ackerman
31572be23e
Inline package upgrades test (#18404)
* Generate dars, WIP

* pass in daml3-script

* pass in upgrades-my-templates dars

* don't delete tmp dir

* define //daml-script/test:upgrade-test-files filegroup

* wip

* Add case class DataDep

* Add case class TestCase

* fix npe

* Add package uploading, package name repeat error

* remove //daml-script/test:upgrades-test.dar

* Add packageId to case class DataDep

* Upload packages via admin-api

* Start moving tests over to new structure

* Move {=>Upgrade}TestLib to its own dar

* Add packageId to case class DataDep

* AdminLedgerClient.uploadDar returns response as Either[String,String]

* wait for listDars to include uploaded dar

* Fix uploading/waiting, tests passing

* Add a little readme to explain our creation

* Small tweaks and tests

run-all-tests: true

* Add additional variant upgrade tests

* Add additional variant upgrades tests

* AdminLedgerClient.uploadDar now takes a File instead of a Path+name

* Make the test bigger (in bazel)

* Make validation upgrade tests large

* Extract testing-only parts of AdminLedgerClient

* Extract dar construction from UpgradesITDev

* Extract PackageDefinition functions to an object

* Decouple PackageDefinition from PackageComment

* Move packageBuild into PackageDefinition

* Decouple MODULE definitions from PACKAGEs

* Move UpgradesIT test to non-Dev

* Add comment to TestingAdminLedgerClient explaining that we should switch to a Canton-provided client when there is one

* Depend directly on //canton:community_base

* Rename UpgradesIT{Dev=>}

* Clean up regexes

* Split UpgradesIT off //daml-script/test, skip on windows

* Make buildTestCaseDar return a Future

---------

Co-authored-by: Samuel Williams <samuel.williams@digitalasset.com>
2024-02-26 16:47:47 +00:00
Moisés Ackerman
2c7c3b480c
Call ghc './boot' with '--hadrian' (#18576) 2024-02-26 15:37:35 +01:00
Gary Verhaegen
ecea0e12a4
try to fix release script for arm addition (#18577) 2024-02-26 15:17:33 +01:00
azure-pipelines[bot]
69efb51dcc
update canton to 3.0.0-snapshot.100000000.20240223.12663.0.v2e29eca3 (#18574)
tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-25 16:43:55 +01:00
Gary Verhaegen
261a405b50
build on linux arm (#18484) 2024-02-25 15:43:12 +01:00
Carl Pulley
0522650d09
Participant upload package map upgrade checks (#18550)
* Participant upload package map upgrade checks: step 1 - Daml side changes with tests disabled

* Fix to ensure we only test on non-windows environments

* Merge changes to UpgradesSpec, disable test on Windows

* disable double uploading tests

---------

Co-authored-by: Dylan Thinnes <dylan.thinnes@digitalasset.com>
2024-02-23 20:22:19 +00:00
Remy
49b7f84dd4
[LF] clean proto for Fecth/Exe/Lookup Node (#18548) 2024-02-23 19:47:31 +01:00
Remy
559e3fa47c
remove completly HasSubmit type class (#18563)
and add decprecation for Daml script submitWithOptions and
submitMustFailWithOptions introduce in #18562.
2024-02-23 19:13:17 +01:00
azure-pipelines[bot]
ce6f95fdec
update canton to 3.0.0-snapshot.100000000.20240222.12651.0.vd90e4bb0 (#18566)
tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-23 08:49:54 +01:00
dylant-da
6607acd045
Run upgrades participant api tests on Admin API (#18519)
* Run upgrade tests on Admin API

* lint

* clean up

* lint

* refactor different apis into separate test suites

* Dedupe test logic, split upload logic into uploadPackagePair

* lint

* disable `upgrades:` field in tests
2024-02-22 18:51:56 +00:00
Gary Verhaegen
39f0c5c6c8
fix blackduck script update (#18557)
This job runs on both `main` and `main-2.x`, and generates the same
branch name. This results in only the first of the two that runs
generating a PR.

With this change the branch name will be different so when an update is
needed we'll update both on the same day.
2024-02-22 19:03:04 +01:00
Remy
23cd578845
[LF] resurect lf.data.Decimal (#18556) 2024-02-22 17:03:52 +00:00
dylant-da
1525ef84b2
Add displayException to errMessage for AssistantError wrapping (#18465) 2024-02-22 16:01:06 +00:00
tudor-da
3d2f8650b1
Enrich assertHashContractInstance with packageName (#18506) 2024-02-22 10:44:07 +00:00
Raphael Speyer
78bb7ef17d
Java Codegen: use Exercises.Archivable instead of Exercises.Archive (#18551)
Step 2 of the two-repo tango, described here

https://github.com/DACH-NY/canton/pull/17210
2024-02-22 20:38:47 +11:00
azure-pipelines[bot]
f0a81c0750
update canton to 3.0.0-snapshot.100000000.20240221.12630.0.v9ba77516 (#18552)
tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-22 08:36:11 +01:00
azure-pipelines[bot]
f8469599cb
rotate release duty after 2024-02-21 (#18541)
@paulbrauner-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.

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-21 14:59:58 +01:00
azure-pipelines[bot]
e398b560d0
update NOTICES file (#18542)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-21 11:43:42 +01:00
Gary Verhaegen
9c345d41b4
try to bump GHC in Nix (#18534)
* try to bump GHC in Nix

* also bump Windows
2024-02-21 09:35:13 +01:00
azure-pipelines[bot]
aa1ea4cefd
update canton to 3.0.0-snapshot.100000000.20240220.12615.0.v61dee139 (#18538)
tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-21 09:01:10 +01:00
Gary Verhaegen
9f7c267829
release 2.8.3 (#18532) 2024-02-21 01:52:44 +00:00
Remy
34858d2f20
[LF] encode CreateNode as FatContractInstance (#18516)
Co-authored-by: Paul Brauner <141240651+paulbrauner-da@users.noreply.github.com>
2024-02-20 21:56:18 +00:00
dylant-da
7871d9087e
Fix case sensitive daml studio extension installation (#18535)
* Fix case sensitive Daml Studio extension installation

* Remove debugging print statements
2024-02-20 21:45:40 +01:00
azure-pipelines[bot]
f56d222438
rotate release duty after 2024-02-14 (#18470)
@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.

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-20 15:41:11 +01:00
Paul Brauner
58e8c4bf51
Create a new snapshot (#18530) 2024-02-20 15:31:53 +01:00
azure-pipelines[bot]
5925f92040
update NOTICES file (#18523)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-20 14:58:20 +01:00
Paul Brauner
faead3bee1
only reject keys when both DAML_REJECT_KEYS is set and the version is <2.dev (#18526) 2024-02-20 14:27:51 +01:00