We waste 2 minutes on most CI runs with the conformance test for no
good reason. Uploading the package & sending a command should be
sufficient as an integration test.
changelog_begin
changelog_end
* Bump bazel memory limit to 3gb
We keep getting oom’s on Windows from Bazel itself afaict. I suspect
our build has just gotten too big. Having to increase the memory is a
bit worrying but it also doesn’t seem reasonable to expect the memory
size to stay indepenent of the build size.
changelog_begin
changelog_end
* copypasta
changelog_begin
changelog_end
This fixes an issue where we try to upload a single JSON blob that is
bigger than the limit of 500MB. We could also raise the limit, I guess,
but that seems more error-prone.
CHANGELOG_BEGIN
CHANGELOG_END
* Make Oracle tests exclusive
This attempts to solve connection timeouts we often see in tests.
changelog_begin
changelog_end
* Revert "Make Oracle tests exclusive"
This reverts commit 7804c433b3476542fc156cad9d4da4755740b123.
* Run all Oracle tests sequentially
* ifaces: update ghc-parser
This updates the ghc-parser, including the `ifaceTypeRep` method
generation for interfaces.
CHANGELOG_BEGIN
CHANGELOG_END
* pin stack snapshot on unix
* add tests
* update ghc-lib hash
* pin stackage dependencies on unix
* pinned stackage windows
Reading explicitly from ledger.begin causes the test to fail on a pruned
participant. The test framework automatically selects a ledger offset
observed at the start of the test anyway, so there's no need to
explicitly put ledger.begin as the starting offset for the checkpoints.
CHANGELOG_BEGIN
CHANGELOG_END
This PR has been created by a script, which is not very smart
and does not have all the context. Please do double-check that
the version prefix is correct before merging.
@akshayshirahatti-da is in charge of this release.
Commit log:
```
e474b2d15a [JSON-API] Websockets fix for matchedQueries (#11361)
4a34b68500 KV: port V2 errors to self-service errors framework [KVL-1143] (#11326)
811a6d3ed6 Fixed AuthorizationInterceptorSpec again (#11418)
c8006b866a ScenarioRunner: enrich incomplete transactions (#11384)
d9c7031fc3 ACS testing - payload support [DPP-661] (#11308)
d87d3d490d deal with deadlocks while fetching contracts in json-api Oracle (#11391)
8212c0b2a5 Make submission ID optional [KVL-1107] (#11011)
3587eb84a2 Use Timestamp instead of Instant (#11356)
ea5f09e524 sandbox: Deprecate the `--eager-package-loading` flag. (#11404)
9f882f2161 remove search index on json fields that harm insert and pruning performance (#11041)
70b90f47c1 optimize max event_sequential_id query for oracle (#11297)
b1fed31ca4 Fix missing script results (#11395)
03db0aa9f3 Auto run/check security evidence generation in ./fmt.sh (#11407)
c928f0e560 [Short] Typo (#11400)
ba6c2be1b5 Add missing TransactionId to com.daml.error.ErrorResource (#11396)
a2a15716b4 Generate security evidence by documenting security testcases (#11306)
8d17882951 Allocate parties sequentially in script export tests (#11389)
1309c2f819 DPP-587 Use Timestamp instead of Instant (#11183)
82f987390e Rotate release rotation (#11394)
b14077a607 Fix AuthorizationInterceptorSpec flake (#11387)
7090f2df9a update NOTICES file (#11367)
ad42dfa915 Update gRPC to the latest (1.41.0) and Protobuf (#11380)
54c400a341 Update wording in Deploying to a generic Daml ledger (#11327)
4461ed1561 Fix log output (#11374)
613aac3e47 Add support for non-star-kinded type synonyms in data-dependencies (#11293)
f89ecc6b95 interfaces: add an experimental `toTypeRep` builtin. (#11378)
5654d5cb48 fix es ingest for missing files (#11375)
03cfd1237c Configurable assertions in Ledger API test tool by feature descriptors (#11328)
96b7b5812f [DPP-648][Self-service error codes] Adopt ApiPartyManagementService (#11338)
9e94ae0f46 LF: move repl exception-auth test from dev to stable (#11369)
5365d68a38 LF: Remove PartialTransaction out from ScenarioRunner/IdeLedgerClient (#11368)
79037c8855 [DPP-646][Self-service error codes] Adopt ApiPackageManagementService (#11314)
0ee59f57c9 Command submission in the ledger-api-bench-tool. (#11296)
8d5cab5f16 LF: Simplify seeds generation in scenario runnner (#11353)
9e5b78804e Speedup daml repl integration tests (#11335)
3bc0db3316 fix contract_tpid_fkey-related race condition (#11330)
ab8a863734 [docs] Add Daml Driver for VMBC to the commercial integrations section (#11360)
c95db72e6c Fix Bazel cache download retry (#11238)
e8d0ccbdb8 [DPP-611][Self-service error codes] Adapt ApiCommandService (#11325)
a89079b4a5 [DPP-647][Self-service error codes] Adopt ApiParticipantPruningService (#11324)
cc8ec28481 [Self-service error codes] Adapt GrpcHealthService (#11354)
c60c94b13f [DPP-645][Self-service error codes] Adapt ApiConfigManagementService (#11312)
e6da1f7b52 Add step in ghc-lib guide for getting submodules to work (#11351)
f3057ea03b Increase timeout for non-repudation tests on Postgres (#11340)
176f470b25 interface: adding interfaces to the TS codegen (#11280)
355352f2d1 DPP-650 Remove the mutating schema (#11211)
443b64dffc [DPP-621][Self-service error codes] Adopt error codes in ApiVersionService (#11302)
ed9dbed100 interfaces: Add fixed choice collision check in typechecker (Haskell) (#11337)
c37ecd1a42 [Short] Pass correct loggingContext to withValidatedPackageId (#11307)
0d305cf212 [Short] Move field before logging statement (ApiTimeService) (#11313)
73c94b5b38 Increase timeout for non-repudation test (#11281)
88c607b781 [Self-service error codes] Adapt ApiTransactionService [DPP-613] (#11094)
07ad3e0d9a Suport multi-party readAs in triggers (#11299)
76eb1657d2 Interface fixed choices: ghc parser (#11275)
da27a1e812 [DPP-619][Self-service error codes] Adopt error codes in ApiVersionService (#11303)
5f5af30ce0 [DPP-628][Self-service error codes] Adapt error codes in ApiTimeService (#11295)
f9e67adafc [Self-service error codes] Adapt error responses in ledger-api-auth [DPP-617] (#11223)
728296575b Fix component status for triggers (#11311)
17776f3496 Factor out npm install step of create-daml-app tests (#11294)
3a8b685346 [Short] Fix docs for Dispatcher#startingAt (#11304)
f315a9003b release 1.18.0-snapshot.20211019.8113.0.8ff347d8 (#11300)
8a3abce47b [DPP-618][Self-service error codes] Adapt error codes in ApiPackageService (#11284)
50ea92f7b3 Use ApiTypes.Party instead of String in the trigger runner (#11298)
2267429ae1 [DPP-656] Assert on self-service error code details in ErrorFactoriesSpec (#11289)
c06faf2764 LF: remove imperative environment from Speedy compiler (#11285)
d3dad75d00 [DPP-592] Generate docs for self-service error codes. (#11129)
```
Changelog:
```
[JSON-API] fixes a bug related to the matchedQueries value returned for websocket multiqueries,
this only happens for patterns where the multiqueries contain a mixture of queries with and without
offsets.
- [Integration Kit] - ledger-api-bench-tool can generate test contracts with configurable payload size.
- [Integration Kit] - Added multi-template support for command submission in the ledger-api-bench-tool
- [Sandbox] The ``--eager-package-loading`` flag has been deprecated. It
hasn't actually done anything for many releases; packages are always
loaded eagerly. This does not affect Daml on SQL, which does support
lazy package loading.
- [Daml Studio] Fix a bug where script results in Daml Studio
sometimes do not show up.
- [Integration Kit] - The ledger-api-bench-tool is now capable of generating test contracts for testing purposes.
- [JSON API] Fixed a rare error that manifested as
‘violates foreign key constraint "contract_tpid_fkey"
Detail: Key (tpid)=(...) is not present in table’
when attempting to run queries and goes away on JSON API restart.
See `issue #11330 <https://github.com/digital-asset/daml/pull/11330>`__.
- [Participant] All participants now use the new append-only schema. Existing databases will
automatically upgrade to the new schema the first time a participant/ledger is started.
- [Daml Triggers] Triggers now support readAs parties. They can be
specified via `--ledger-readas a,b,c`. As part of this change
``testRule`` gained an extra argument to specify the `readAs`
parties. If you previously used
```
testRule trigger party acsBuilder commandsInFlight s
```
you now need to use
```
testRule trigger party [] acsBuilder commandsInFlight s
```
```
CHANGELOG_BEGIN
CHANGELOG_END
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
* Changes to ensure matchedQueries are returned correctly when queries contain a mix of offsets and no offsets.
CHANGELOG_BEGIN
[JSON-API] fixes a bug related to the matchedQueries value returned for websocket multiqueries,
this only happens for patterns where the multiqueries contain a mixture of queries with and without
offsets.
CHANGELOG_END
* changes based on code review comments
* KV: port V2 errors to self-service errors framework
CHANGELOG_BEGIN
CHANGELOG_END
* Fix ConversionsSpec compiling
* Use a valid ID for ValidationFailure
* Fix error details in Conversions
* Relax and simplify checks in KeyValueConsumptionSpec
* Fix formatting
* Fix definite answer in deduplication v2
* Try and make Scala 2.12 happy
* Fix typos in comments
* Use NOT_FOUND for unknown parties and provide them as resources
* Race (group) -> SubmissionRaces
* Don't deprecate resource exhausted (ABORTED) error
* Rename KVCompletionErrors group into KVErrors (ResourceExhausted can be synchronous)
* Remove unneeded braces
Co-authored-by: Hubert Slojewski <hubert.slojewski@digitalasset.com>
* Move toJsonString to where it's used
* Deprecate InvalidLedgerTime
* Embed deprecation comments into annotation
* Change deprecation messages so that they make more sense in the docs
* Move deprecated errors to a dedicated group as proposed by @tudor-da
Co-authored-by: Hubert Slojewski <hubert.slojewski@digitalasset.com>
* Generating random payload of configurable size in ledger-api-bench-tool command submission
CHANGELOG_BEGIN
- [Integration Kit] - ledger-api-bench-tool can generate test contracts with configurable payload size.
CHANGELOG_END
* Fix for Scala 2.12
* Multi-template support for command submission in the ledger-api-bench-tool [DPP-659] (#11365)
* Added multi-template support for command submission in the ledger-api-bench-tool
CHANGELOG_BEGIN
- [Integration Kit] - Added multi-template support for command submission in the ledger-api-bench-tool
CHANGELOG_END
* Simplified distribution calculation
* Improved throttling - set max 100 in-flight commands
* clean up some imports
* test case trying to find deadlock situation
* add deadlocks to causes of ContractsFetch retry for Oracle
* Revert "test case trying to find deadlock situation"
This reverts commit 9b19046b18.
* no changelog
CHANGELOG_BEGIN
CHANGELOG_END
It never did anything in Sandbox Next. Packages are always loaded
eagerly in KV ledgers.
CHANGELOG_BEGIN
- [Sandbox] The ``--eager-package-loading`` flag has been deprecated. It
hasn't actually done anything for many releases; packages are always
loaded eagerly. This does not affect Daml on SQL, which does support
lazy package loading.
CHANGELOG_END
* remove search index on json fields that harms insert performance
* Drop indexes on json array fields in participant_events_xxx tables
CHANGELOG_BEGIN
CHANGELOG_END
* Revert "remove search index on json fields that harms insert performance"
This reverts commit 78969f58
* Tweak max event_sequential_id query for oracle to ensure consistent performance on larger tables
CHANGELOG_BEGIN
CHANGELOG_END
* respond to review feedback
CHANGELOG_BEGIN
CHANGELOG_END
* Generate security evidence by documenting security testcases.
CHANGELOG_BEGIN
CHANGELOG_END
* move generated file to root of repo, so links work
* formatError function instead of Show instance
* dont use Show instances for generating Markdown
* magic comment: SECURITY_TEST --> TEST_EVIDENCE
* use megaparsec and Data.Text
* remove redundant T.pack
* use: Text.Megaparsec.Char.space
* Allocate parties sequentially in script export tests
We’ve seen a few timeouts so this seems at least worth a try.
changelog_begin
changelog_end
* Extend logging to ease debugging
changelog_begin
changelog_end
* Add DA.Internal.NatSyn as a stable package
This module exposes a type NatSyn, to be used for encoding
type synonyms of Nat-kinded types
* Add generalized roundtrip test helpers in LFConversion tests
roundtripTestsBy and roundtripTestsPartialBy are like their
non-By versions, except they take an explicit equality predicate
instead of relying on the Eq instance. This allows the source
and target types to differ.
* Define encoder/decoder for type synonyms
This works by saturating the RHS of the declaration with artificial
variable names and adding the corresponding parameters on the LHS
In the case of Nat type synonyms, the Proxy-like
DA.Internal.NatSyn.NatSyn type is used to wrap the value into
something of kind star.
* Use type synonym encoder/decoder when generating/consuming DALF
This closes#11226
changelog_begin
changelog_end
* Extend type synonyms over data-dependencies test
* Add test cases for multi-param type class synonyms
This adds an experimental `toTypeRep: forall t. t -> TypeRep` builtin.
It will only work on interface payloads and crash horribly otherwise.
CHANGELOG_BEGIN
CHANGELOG_END
If a job fails at build time, there are not test logs to process.
Currently this means the ingestion process is going to be stuck in an
endless loop of retrying that job and failing on the missing file.
This change should let us process jobs with no test files.
CHANGELOG_BEGIN
CHANGELOG_END