* Multi package test scaffold and first batch
* Add next set of tests
* Rearrange, add source testing
* Explicit imports
* Install sdk in tests
* Blank setEnv is different to normal setEnv >:(
* Fix paths for windows
* Add daml.yaml changes tests (that fail)
* Update from comments, add sdk-version check
* Update tests to match changes to CLI behaviour
* [Daml] integrate more nicely new Numeric builtin
In this PR, we rewrite the changes from #16852 without changing Daml
stdlib signature (we just add more constraint on type) and handle
properly Additive and Multiplicative type class form Numeric that was
not handle at all.
* fix BENumericOne
* fix KindChecking test
* Apply suggestions from code review
Co-authored-by: Samuel Williams <samuel.williams@digitalasset.com>
Co-authored-by: dylant-da <106664681+dylant-da@users.noreply.github.com>
* fix fix
* make DAML_NAT_TYPE_ERASURE LF2-only
---------
Co-authored-by: Samuel Williams <samuel.williams@digitalasset.com>
Co-authored-by: dylant-da <106664681+dylant-da@users.noreply.github.com>
Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
* Rename //bazel_tools:match-{cabal=>golden}-file
* Generate and check hash file for contents of //compiler/damlc/tests:platform-independence.dar
* Add pre-commit hook to test //compiler/damlc/tests:platform-independence-dar-hash-file-matches
* Print info when //bazel_tools:match-golden-file fails
* platform-independence-dar-check pre-commit hook runs depending on env var
* Skip platform-independence-check if RUN_PLATFORM_INDEPENDENCE_CHECK is unset
* Document dar_hash_file rules
* move platform-independence-checks warning to .envrc
* implement generate_dar_hash_file genrule in python
in particular, this allows us to produce the same output on all platforms
* fix windows
* Update rules_daml/daml.bzl
* bytes.replace does not operate in place
* Resolve release version for sdk build checks
* lint
* lint
run-full-compat: true
* Simple test for using daml-script in release versions
* Fix build issues in tests using pSdkVersion
run-full-compat: true
* Fix build issues with DamlcIntegration
* fix bad sdk version being an invalid version
run-full-compat: true
* Fix the linux "mmap 4096 bytes at (nil): Cannot allocate memory" error
* Fix compat tests on Windows
run-full-compat: true
* test windows os correctly
run-full-compat: true
* temporarily disable canton_3x
run-full-compat: true
---------
Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
Basically we remove the dependency of different components on "//language-support/scala/bindings" by:
- replacing com.daml.ledger.api.refinements.ApiTypes.Party by com.daml.lf.data.Ref.Party
- replacing com.daml.ledger.api.refinements.ApiTypes.ApplicationId by Option[com.daml.lf.data.Ref.ApplicationId] (here we use option as ApiTypes.ApplicationId allows empty string while Ref.ApplicationId does not).
- adding rounding logic for timestamp in com.daml.lf.data.Time.Timestamp and use it instead of the one from com.daml.api.util.TimestampConversion
Note we did not clean daml-sript export as it have never pass the alpha stage and will be dropped with the 3.x fork.
* do not run pr-only tests on main, do not run main-only tests on prs
* split data dep tests into main-only and pr-only
* run non-dev conformance tests on main only
* Also test LF v2 in //compiler/damlc/tests:script-service
* move setEnv TASTY_NUM_THREADS outside of defaultMain
* Track end of cleanup in withResourceCps
* Refactor decoding in compiler
* remove obsolete comment
* factorize -decodeLf2Version and decodeLf1Version
* call the right decodeScenarioModule depending on the target LF version, update incremental build tests
* split encoding into two modules, call the right encodeScenarioModule in writeDalfFile
* delegate to EncodeV2.hs in Encode.hs
* remove noisy type signature, was there initially to guide me but I think it adds more confusions than it clears up things
* Automated renames by bash script
This commit is exclusively contains changes by the bash script.
For the bash script is present at the pull request.
* Manual pekko migration changes
* adapt fully qualified name references
* adapt pekko package declarations
* adapt bazel files with dependency changes
* adapt canton pekko lib shade_rule
* adapt logger configuration declarations
* pin maven dependencies
* revert incorrect changes by script to compatibility module
Workarounds for further TODOs:
* disable http-json-perf and libs-scala/gatling-utils modules to maintain clean pekko dependencies (without akka)
* disable GraphQLSchemaSpec test (sangria library needs to be upgraded)
* Formatting
* clean up stack-snapshot.yaml
* bump stack to snapshot lts-19.33 pt. 1
* bump stack to snapshot lts-19.33 pt. 2
* repin windows snapshot
* Use a copy of "@stackage-exe/hpp" in runfiles to avoid hardcoding version in haskell code
* Crash with identifiable error if hpp resource/runfile is missing but CPP is used
* add an lf-major-version flag to the repl service and pass it from the haskell client
* test LF2 in the daml-repl tests
* formatting
* formatting
* remove obsolete TODO
* fix //compiler/damlc/tests:repl
* port repl-functests to LF v2
* do not assume that LFV2 => dev
* address Moises' comments
* Add failing tests
"'bank' fetches" should be "'alice' fetches" in the ledger output when 'alice' is the divulging party
* Handle fetch node actors correctly in scenario-service
* Handle fetch node actors correctly in lf-interpreter pretty printer
* pin dependencies to json and add missing dep
* fix cyclic dep
* remove unused dep
* add missing dep to //ledger-api/testing-utils:testing-utils
* remove unused dep in //ledger/ledger-api-auth:ledger-api-auth
* remove more unused deps
* more dep fixes
* yet more dep fixing
* more fixing..
* more of the same
* hopefully the last deps to fix
* Bump the version of protobuf and fix everything that depends on it. Took shortcuts that I need to fix in a next commit, but would like to run the CI on this now that it compiles
* don't error out in the grpc-haskell patch
* remove obsolete patch
* patch absl to compile on mingw
* Add a patch to recognize the compiler
* Define _DNS_SD_LIBDISPATCH for macOS gRPC
* bump netty_tcnative_version according to https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty
* pin maven deps
* Fix macos linking errors 'dyld[xxx]: missing symbol called'
* Skip Darwin frameworks in package-app.sh
* pin stackage packages
* pin stackage windows deps
* use the netty version agreed on
* bump the windows global cache to try and debug the upb issue
* restart the CI after timeout
* clean up
* disable failing tests for now
* comment out unused code
* reset the windows machine name to 'default'
---------
Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
* Add warnings to Gamma
* Warn instead of error for changed template expressions
* lint
* Errors and warnings for key types
* add context to warnings where relevant
* Add warning logic to DamlcUpgrades, fix errors that are now warnings
* Add tests for key errors and warnings (signatories, expression, type)
* Refactor expression extraction, fix extract key expression/maintainers
* satisfy lint, trigger test restart
* Test error for dropped key and warning for added key
* Warn for extraction issue instead of erroring out
* Change `cannot change` error-wording with `has changed` warning-wording
* comments for extractors
* Revert "Add SharedGlobalKey"
This reverts commit 6592cb7bd5.
* Adding shared flag to GlobalKey
* Remove shared flag from GlobalKey
* Support old and new grcp error parsing
* Add tests for hashContractKey
* replace community canton snapshot with our bazel-built canton deploy jar
* add VERSION to the resources of the jar
* fix canton-test-runner-with-dependencies-script
* add resources to community_common
* Update test-common/canton/it-lib/src/main/com/daml/CantonFixture.scala
Co-authored-by: Remy <remy.haemmerle@daml.com>
---------
Co-authored-by: Remy <remy.haemmerle@daml.com>