Commit Graph

12858 Commits

Author SHA1 Message Date
Gary Verhaegen
cd1d114db4
[dev-env] remove custom nix derivation for semver-tool (#18661) 2024-03-07 15:50:35 +01:00
dylant-da
a57d50ad4a
Add flag for disabling upgrade validation, refactor tests (#18628)
* Add flag for disabling upgrade validation, refactor tests

* mark upgrade-tests flaky

* remove unused disableUpgradeValidation method

* update canton to 3.0.0-snapshot.100000000.20240305.12764.0.v09f6d95a

tell-slack: canton

* Adapt code after renaming v1 to v2

Adapts daml because of https://github.com/DACH-NY/canton/pull/175211

run-all-tests: true

* Quick-fix build by adding missing `recordTime` parameter to the `TransactionGenerator`

This change affects tests only. However, this is a quick-fix, and there should
be a proper follow-up.

* Disable "hot reload" test since it breaks on Carl's changes

In a week we should fix this once https://github.com/DACH-NY/canton/pull/17652 is merged

* Fix expected protobuf structure in test-protobuf-structure.sh

* Compare transactions without record time in UpdateClientImplTest

* lint

* Revert changes to canton since origin/main

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
Co-authored-by: Yves Geissbuehler <yves.geissbuehler@digitalasset.com>
2024-03-07 11:45:00 +00:00
Moisés Ackerman
c121d90b61
Remove 'daml repl' command (#18648) 2024-03-07 10:21:57 +01:00
azure-pipelines[bot]
7bee7ef399
update canton to 3.0.0-snapshot.100000000.20240305.12764.0.v09f6d95a (#18642)
* update canton to 3.0.0-snapshot.100000000.20240305.12764.0.v09f6d95a

tell-slack: canton

* Adapt code after renaming v1 to v2

Adapts daml because of https://github.com/DACH-NY/canton/pull/175211

run-all-tests: true

* Quick-fix build by adding missing `recordTime` parameter to the `TransactionGenerator`

This change affects tests only. However, this is a quick-fix, and there should
be a proper follow-up.

* Disable "hot reload" test since it breaks on Carl's changes

In a week we should fix this once https://github.com/DACH-NY/canton/pull/17652 is merged

* Fix expected protobuf structure in test-protobuf-structure.sh

* Compare transactions without record time in UpdateClientImplTest

* lint

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
Co-authored-by: Yves Geissbuehler <yves.geissbuehler@digitalasset.com>
Co-authored-by: Dylan Thinnes <dylan.thinnes@digitalasset.com>
2024-03-06 17:47:59 +00:00
Paul Brauner
1d806b4b73
Fix //language-support/hs/bindings:test (#18646) 2024-03-06 15:15:56 +01:00
Paul Brauner
760c278882
remove minSharedKeys (#18639) 2024-03-06 14:48:47 +01:00
Gary Verhaegen
e585ebf254
remove pex (#18641)
I can't find any usage site for it and it's failing to build on some platforms.
2024-03-06 08:41:30 -05:00
Remy
b034728d68
[LF] cleanning Builtin Function in archive (#18609)
Co-authored-by: Paul Brauner <141240651+paulbrauner-da@users.noreply.github.com>
2024-03-06 12:47:52 +00:00
azure-pipelines[bot]
8ecd2d79b6
update NOTICES file (#18644)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-03-06 11:24:38 +01:00
azure-pipelines[bot]
50a1711d01
update canton to 3.0.0-snapshot.100000000.20240304.12755.0.v782a3e64 (#18631)
tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-03-05 16:33:11 +00:00
Paul Brauner
55d1d9c07f
Make keys 2.dev-only (#18573)
* reject keys in the decoder for lf<2.dev

* fix ContractKeySpec

* fix the AnyContractKey.daml integration test

* fix the AnyEqOrd.daml integration test

* split the AuthFailure.daml integration test

* fix the BasicTests.daml integration test

* fix the ConsumedContractKey.daml integration test

* fix the ContractIdInContractKey.daml integration test

* fix the "*Key*.daml" integration tests

* split the ExceptionSemantics.daml integration test

* split the ExplicitDisclosure.daml integration tests

* fix the LfStableMustFailCommit.daml integration tests

* fix the LfStableMustFailInterpretation.daml integration tests

* split the SemanticsEvalOrder.daml integration tests

* use dev dars in EngineTest.scala for now

* use dev dars in NodeSeedsTest.scala for now

* fix tests extending AbstractScriptTest

* fix CodegenTest.scala

* fix ScriptService.hs

* fix Daml*ScriptTestRunner tests

* fix doc snippets tests

* fix codegen tests

* fix test-common:model-tests

* fix compile error

* fix //language-support/ts/codegen/tests:build-and-lint-test

* fix //ledger-service/lf-value-json:tests

* fix //daml-script/test:upgrade-test

* Apply

Co-authored-by: Remy <remy.haemmerle@daml.com>

* Apply su

Co-authored-by: Remy <remy.haemmerle@daml.com>

---------

Co-authored-by: Remy <remy.haemmerle@daml.com>
2024-03-05 16:23:11 +00:00
Remy
a5046e124b
Rename EBuiltin into EBuiltinFun (#18635) 2024-03-05 15:32:55 +01:00
azure-pipelines[bot]
bdeb7dd86e
update NOTICES file (#18633)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-03-05 12:24:23 +01:00
Remy
c29cd07b18
[LF] Change Prim* to Builin* (#18608)
Co-authored-by: Paul Brauner <141240651+paulbrauner-da@users.noreply.github.com>
2024-03-05 07:55:51 +00:00
Moisés Ackerman
58f5c70d98
Enum/Variant upgrade tests (#18518)
* Add VariantChanges upgrade test file

* Rename {variant=>enum} in DataChanges upgrades test

* Add cases from Sam's testing

* Small tweaks

* Add missing comma

* Switch from full file regex to per-line scan

---------

Co-authored-by: Samuel Williams <samuel.williams@digitalasset.com>
2024-03-04 17:06:48 +00:00
azure-pipelines[bot]
ee73911caf
update canton to 3.0.0-snapshot.100000000.20240301.12744.0.v046ec13c (#18624)
* update canton to 3.0.0-snapshot.100000000.20240301.12744.0.v046ec13c

tell-slack: canton

* fix

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2024-03-04 17:52:32 +01:00
Remy
6e74d0d4bc
Add Generic Numeric rounding (#18613) 2024-03-04 17:38:41 +01:00
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