* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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