* [LF] make Timestamp parsing consistent between Java 11 and Java 17
Between Java 11 and Java 17 there is one bug fix on Instant.parse
that expands the range of values that can be parsed into an
Instant. See https://bugs.openjdk.org/browse/JDK-8166138
Daml-LF happened to uses Instant.parse to parse a string into a
Daml-LF timestamp and we observe a different behavior when running
Daml on Java 11 and Java 17
additionally make explicit that conversion form java Instant and
string may drop nanoseconds, i.e. we create a lenient version that may
drop the significant nanoseconds (legacy or) and a strict
version that reject instant/string that cannot be converted without
loss of precision.
* exerciseArchive(Archive) was skipped before by the flattening rules
because Archive is defined in a separate package. By flattening across
packages in this PR, Archive is now a valid candidate.
* The new Exercises.Archive interface is a superinterface of most
generated exercise* method sets, and therefore generated ContractIds,
CreateAnds, and ByKeys, giving a LUB to different contract types that
contains the exerciseArchive method.
- This is most, not all, because the Daml-LF rules determine what
codegen ought to do, and Daml-LF does not mandate an Archive method
of any kind, never mind one in the exact shape that we happen to
generate.
- If an Archive is present, and it has an empty record as its
parameter and Unit as its result type, then we can safely assume
that the exerciseArchive method is sensible to include in the type.
- However, this still excludes the generic ContractId type, because
generic ContractId does not have enough data to generate a
Daml-LF-correct Archive command given the unknowns mentioned
above. So we simply exclude it from the type instead of guessing the
argument and hoping the guess is close enough. That's why the
Exercises.Archive type is available to users who want access to the
method, which is a supertype of codegenned contract IDs among other
things mentioned above:
SimpleTemplate.ContractId cid = new SimpleTemplate.ContractId("id");
Exercises.Archive<?> wideCid = cid;
assertEquals(
wideCid.exerciseArchive().commands(),
cid.exerciseArchive(new Archive()).commands());
* remove sandbox-on-x project
update bazel readme
update release artifacts
comment out last remaining SoX test
remove ledger-runner-common
remove participant-state-kv-errors
remove recovering-indexer-integration-tests
remove participant-integration-api
update doc pages
cleanup ledger-api-auth usage
remove participant-state
fix build
fix build
clean up ledger-api-common part I
clean up ledger-api-comon part II
clean up ledger-api-common part III
remove ledger/metrics
clean up ledger-api-health and ledger-api-domain
* remove ledger-configuration ad ledger-offset
* remove ledger-grpc and clean up participant-local-store
* reshuffle few more classes
* format
* Add GetLatestPrunedOffsets to TransactionService
* Add compatibility test exclusion
* Add GetLatestPrunedOffsetsAuthIT test
* Address Pawel's review comments
* Addressed review comments
* Add exclusion for the new test for conformance tests in Canton
* WIP
This PR adds the attributes createArgumentsBlob and ContractMetadata to the CreatedEvent types by the Java bindings.
Passing these attributes through is required for being able to use explicit disclosure with the Java bindings (required by the CN team).
With the below command, with or without the entry for
@types/prettier@2.6.0 removed, this command passes.
DAML_SDK_RELEASE_VERSION=0.0.0-head bazel test --test_output=streamed //language-support/ts/codegen/tests:build-and-lint-test
With the below command with the entry for @types/prettier@2.6.0 removed,
this command fails with the expected error about a missing entry. With
the entry restored, it passes.
bazel test --test_output=streamed //language-support/ts/codegen/tests:build-and-lint-test
* pin dependencies without #13876
* --frozen-lockfile does not work
* hide @daml.js local paths from yarn.lock comparison
This version on failure outputs something like
--- /dev/fd/63 2022-12-12 17:31:06
+++ /dev/fd/62 2022-12-12 17:31:06
@@ -708,6 +708,11 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==
+"@types/prettier@2.6.0":
+ version "2.6.0"
+ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.6.0.tgz#efcbd41937f9ae7434c714ab698604822d890759"
+ integrity sha512-G/AdOadiZhnJp0jXCaBQU449W2h716OW/EoXeYkCytxKL06X1WCXB4DZpp8TpZ8eyIJVS1cw4lrlkkSYU21cDw==
+
"@types/prettier@^2.1.5":
version "2.7.0"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.0.tgz#ea03e9f0376a4446f44797ca19d9c46c36e352dc"
FAIL: /.../build-and-lint-test.runfiles/com_github_digital_asset_daml/language-support/ts/codegen/tests/ts/yarn.lock could not satisfy /.../build-and-lint-test.runfiles/com_github_digital_asset_daml/language-support/ts/codegen/tests/ts/build-and-lint-test/package.json
FAIL: yarn.lock requires all of the above changes
FAIL: //language-support/ts/codegen/tests:build-and-lint-test ...
Applying this diff to yarn.lock causes the test to pass.
* apply yarn.lock update reported by diff
* add changelog
CHANGELOG_BEGIN
CHANGELOG_END
* don't hard-code diff location
- suggested by @garyverhaegen-da; thanks
* Move datatype DA.Action.State.State into a stable package
* Move datatype DA.Stack.SrcLoc into a stable package
* Move datatype DA.Random.Minstd into a stable package
* Skip doctest for DA.Action.State.Type
* Don't use magic numbers in CodeGenRunnerTests.scala
* Update comment in StablePackageTest.scala
* add ambiguous prefix check on package which is used to generate code.
* add test case
* Update test description
Co-authored-by: Raymond Roestenburg <98821776+ray-roestenburg-da@users.noreply.github.com>
* pre prefix
* per prefix
* modify test
* lower case
* rollback per prefix code gen
* rollback per prefix code gen
* apply prefixes on unique and main package only
* fix
* move
* rename
* test same main package with different prefixes
* added test case for 2 dar files with same main package but different prefixes
* added test case for dar files with data dependencies
* add a unique package
* fixed CI
* address comment
Co-authored-by: fayi-da <112705750+fayi-da@users.noreply.github.com>
Co-authored-by: Raymond Roestenburg <98821776+ray-roestenburg-da@users.noreply.github.com>
Partly because the current version is from February (of this year,
fortunately), and partly because I need a more recent one to bump node
to 18 and fix the GSG for that.
* Define DA.Bazel.Runfiles.locateResource as an alternative to locateRunfiles
* Use locateResource to get default dlint rules file
Fixes#15443
* Use locateResource to get scenario-service.jar
* Use locateResource to get ghc-pkg executable
* Use locateResource to get stable-packages directory
* Use locateResource to get ghcversion.h
* Use locateResource to get hpp executable
* Use locateResource to get builtin package dbs
* Drop unused function DA.Daml.Options.Types.getBaseDir
* Use locateResource to get d3{,plus}.min.js
* Use locateResource to get repl-service.jar
* data Resource now takes a runfilesPathPrefix instead of a runfilesPath
* Add hlint warning 'locateRunfiles/package_app'
* Let locateRunfiles crash when used outside of bazel target
* typo