Commit Graph

96 Commits

Author SHA1 Message Date
Samir Talwar
12599e7f06
Disable configuration management until the ledger has a configuration. [KVL-1058] (#10478)
* participant-integration-api: Move test constants to a companion object.

TelemetrySpecBase doesn't need to expose those through inheritance.

* Avoid mocks in the configuration management service test.

* Add tests for `ConfigManagementService.GetTimeModel`.

* Add tests for `ConfigManagementService.SetTimeModel`.

* Disable configuration management until the ledger has a configuration.

CHANGELOG_BEGIN
- [API Server] The configuration management service previously returned
  the participant-specified default configuration if none was found on
  the ledger. This can be misleading, and so the ``GetTimeModel``
  endpoint now returns a gRPC ``NOT_FOUND`` error if no configuration
  has been found yet. Similarly, the ``SetTimeModel`` endpoint returns a
  gRPC ``UNAVAILABLE`` error.

  This should only happen if the participant gives up waiting for the
  ledger to provide a configuration, which is very unlikely in a
  production setting. In this case, the ledger will also not respond to
  command submissions.
CHANGELOG_END

* participant-integration-api: Extract some test variables for clarity.

In ApiConfigManagementServiceSpec.

* sandbox: Improve some variable and parameter names in tests for clarity.

* Improve the error message in case of a missing ledger configuration.

Co-authored-by: Robert Autenrieth <31539813+rautenrieth-da@users.noreply.github.com>

* ledger-api-common: Improve an error status constructor name.

Co-authored-by: fabiotudone-da <fabio.tudone@digitalasset.com>

Co-authored-by: Robert Autenrieth <31539813+rautenrieth-da@users.noreply.github.com>
Co-authored-by: fabiotudone-da <fabio.tudone@digitalasset.com>
2021-08-04 20:34:22 +00:00
Samir Talwar
b325e8a8b8
participant-state: Remove WriteService#rejectSubmission. (#10407)
It's not currently used. We will re-introduce it when we plan on
actually implementing it.

CHANGELOG_BEGIN
CHANGELOG_END
2021-07-26 13:03:05 +00:00
Samir Talwar
b9518ce2f4
participant-state-metrics: Add wrappers for v2. (#10404)
CHANGELOG_BEGIN
CHANGELOG_END
2021-07-26 11:06:02 +00:00
tudor-da
93d0ed6821
[Mutable cache] Resolve with full lookup on negative cache read-through lookups [DPP-501] (#10262)
* [Mutable cache] Resolve with full lookup on missed cache thread-throughs
* Do not store negative lookups
* Metrics for counting divulgence and full lookups
* Metrics for counting read-through not found

CHANGELOG_BEGIN
CHANGELOG_END

* Added comment detailing secondary lookups for divulgence

* Apply suggestions from code review

Co-authored-by: Simon Meier <meiersi-da@users.noreply.github.com>

Co-authored-by: Simon Meier <meiersi-da@users.noreply.github.com>
2021-07-20 16:15:04 +02:00
Marton Nagy
5fa49c3312
Disables flaky test suite of InstrumentedSource.bufferedSource (#10321)
CHANGELOG_BEGIN
CHANGELOG_END
2021-07-20 06:48:49 +00:00
Victor Peter Rouven Müller
80b65f6def
[DOCS] Add documentation for the JSON API metrics (#10312)
* [DOCS] Add documentation for the JSON API metrics

changelog_begin

- [JSON-API] You can now find a section `Metrics` in the http-json api documentation explaining how to enable metrics and which are available

changelog_end

* Fix rst build warnings

* Update docs/source/json-api/metrics.rst

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Adapt metrics doc to state that it IS an exhaustive list and remove wrong copy pasta text & add info about prometheus

* Update the legal values for the metrics reporter cli option

* shorten the description, the change prior was unnecessary ._.

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2021-07-19 17:32:23 +02:00
tudor-da
3fd3abfb26
Instrument buffer after contract state events stream (#10209)
CHANGELOG_BEGIN
CHANGELOG_END
2021-07-12 19:37:32 +02:00
tudor-da
d5d6cfacff
[Mutable state cache] contractStateEvents bounded DB fetch size [DPP-464] (#10092)
* [Mutable state cache] TransactionsReader.getContractStateEvents bounded fetch page size

CHANGELOG_BEGIN
CHANGELOG_END

* Improved TransactionsReader.splitRange
* Removed explicit minChunkSize
* Added property check test

* Metrics for getContractStateEvents and getTransactionLogUpdates chunk fetch size

* Addressed review comments

* Adress Kamil's review comment

* Miklos' suggestion

Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>

Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>
2021-06-30 09:25:07 +00:00
mziolekda
621cfa4a91
Resolve contract keys conflicts in disclosed contracts (#9948) (#10034)
* Resolve contract keys conflicts in disclosed contracts (#9948)

* build queries for nullifications of past key

* format code

CHANGELOG_BEGIN
In case a contract key is already present in a past contract in the contract table nullify it. This gets rid of contract keys of previously disclosed contracts. We never discover that disclosed contracts get archived, so we get conflicts on such past keys
CHANGELOG_END

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* correct oracle implemantation (new)

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2021-06-28 17:04:18 +02:00
Marton Nagy
05056ddd8c
Cut a flaky expectation some more slack (#10106)
CHANGELOG_BEGIN
CHANGELOG_END
2021-06-24 11:35:41 +00:00
Victor Peter Rouven Müller
1f5aa4491c
[JSON-API] Add metrics for ledger command submission timing (#10076)
changelog_begin

- [JSON-API] Timing metrics which measure how long the processing of a command submission request takes on the ledger are now available

changelog_end
2021-06-22 15:59:23 +00:00
Victor Peter Rouven Müller
0391f3529f
[JSON-API] Add db metrics & response construction metrics (#10068)
changelog_begin

- [JSON-API] The database operations (regardless of in-memory or postgres) contain now metrics for fetching contracts by id or key (seperate metrics foreach)
- [JSON-API] The time for a repsonse payload construction of a request is now also tracked in a metric

changelog_end
2021-06-22 10:34:29 +02:00
Victor Peter Rouven Müller
e4585295c6
[JSON-API] Add moar timing metrics (#10045)
* [JSON-API] Add more timing metrics

changelog_begin

- [JSON-API] Timing metrics are now available for party management, package management, command submission and query endpoints.
- [JSON-API] Also added a timing metric for parsing and decoding of incoming json payloads

changelog_end

* Add comments to new metrics

* Split metrics up more & remove obsolete metric

* Split up timers for query endpoints
2021-06-21 14:37:36 +00:00
Victor Peter Rouven Müller
1852830833
[JSON-API] Concurrent query etc. metrics (#10031)
* [JSON-API] Concurrent query etc. metrics

changelog_begin

- [JSON-API] The metrics which describe the amount of these concurrent events is now available:
	- running http request
	- command submissions
	- package allocations
	- party allocations

changelog_end

* Rename running metrics to throughput ones & add comments on the metrics

* Adjust names of other existing metrics too, to have for the json api a more consistent metrics naming
2021-06-16 17:08:06 +00:00
Brian Healey
993591e53b
truncate party name for 64 chars for multi-valued submitters to avoid… (#10000)
* truncate party name for 64 chars for multi-valued submitters to avoid excessively long metrics name

CHANGELOG_BEGIN
[metrics] Limit size of multi party metrics to ease consumption
CHANGELOG_END

* Use just first party for dynamic metrics when there are multiple parties involved
2021-06-16 08:52:27 -04:00
tudor-da
e49c7c8db7
[In-memory fan-out] BufferedTransactionsReader implementation [DPP-413] [DPP-414] (#9882)
* [In-memory fan-out] BufferedTransactionsReader implementation
* getTransactions
* getTransactionTrees

CHANGELOG_BEGIN
CHANGELOG_END

* Address review comments
2021-06-15 16:29:53 +02:00
Victor Peter Rouven Müller
4037b1cd9e
Add metrics to the http json service (#9923)
* Introduce metrics in the http-json service

changelog_begin

[HTTP/JSON API]
- metrics reporting can now be chosen via the command line option --metrics-reporter (currently hidden), valid options are console, csv://, graphite:// and prometheus://
- metrics reporting interval can also now be chosen via a command line option --metrics-reporting-interval (currently hidden)

changelog_end

* Move MetricsReporter and it's dependencies into //ledger/metrics

* Restore non-ugly formatting for that one section in Endpoints.scala

* Update ledger/sandbox-common/src/test/lib/scala/platform/sandbox/cli/CommonCliSpecBase.scala

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Hide metrics option for http-json

* Propagate context exception for the parseUri function in MetricsReporter.scala

* Move cliHint value above parseUri function to have a better structure (it's used once before it's defined and once after it's defined, which is weird to me)

* Use better value name than optMr & optFd in cliopts Metrics.scala

* Remove import order changes & whitespace changes

* Revert usage of Nanoseconds for conversion from scala duration to java duration to usage of Seconds

* Shorten hideIfRequested function

* Fix another rearranged import

* Fix another whitespace removal

* Readd metrics cli option to sandbox after refactoring

* Add missing return type annotation for invalidRead in MetricsReporter

* Readd newline in https OptionParser.scala

* Remove unecessary import

* Update ledger/sandbox-common/src/main/scala/platform/sandbox/cli/CommonCliBase.scala

Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>

* Align setter & config name for metricsReportingInterval setting too in CommonCliBase.scala

* Rename http_json_api in Metrics.scala of metrics project to HttpJsonApi

* Reformat CommonCliBase.scala of sandbox-common project

* Fix CommonCliSpecBase test of sandbox

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
Co-authored-by: Miklos <57664299+miklos-da@users.noreply.github.com>
2021-06-08 15:54:01 +00:00
tudor-da
69ef6243cb
Fix flaky InstrumentedSourceSpec test (#9921)
* Lower expectations in `signal mostly full buffer if slow consumer`

CHANGELOG_BEGIN
CHANGELOG_END
2021-06-08 12:27:03 +00:00
mziolekda
f36f556b73
Metrics for streamed elements (#9873)
* CHANGELOG_BEGIN
Add metrics counting the elements in transaction, transaction-tree, completion and acs streams
CHANGELOG_END

* format scala

* address review comments
2021-06-02 11:39:09 +00:00
tudor-da
6e17e2de75
[In memory fan-out] Transaction log updates stream implementation (#9792)
* [In memory fan-out] Transaction log updates stream implementation

CHANGELOG_BEGIN
CHANGELOG_END

* Addressed review comments
2021-05-28 12:23:33 +00:00
tudor-da
63bc0d1a96
EventsBuffer implementation for in-memory fan-out for Ledger API serving (#9775)
CHANGELOG_BEGIN
CHANGELOG_END
2021-05-28 08:23:34 +02:00
Marton Nagy
e50885caa8
Dpp 388 todo cleanup parallel indexer (#9690)
* Removes TODO related to BatchingParallelIngestionPipe type: the result of the ingestion is not needed at the moment
* Removes TODO related to groupedWithin: at this point the introduced latency seems not significant
* Refactor AsyncSupport
* Removing some TODOs related to postponed work-items
* moving mutable initialisation code does not make sense without refactoring/segregating the initialisation part of the LedgerDao. That effort is postponed as per group decision.
* Injecting the dispatcher makes little sense at this point, further features might require it.
* Fixes type derivation in ParallelIndexerFactory
* Moves instrumentedBufferedSource to metrics (+ unit tests)
* Removes TODO related to logging: primarily to pass down the initializing LoggingContext is fine. (further logging discussion is in progress related to ingestion at the time of writing)
* Refactor type cast towards synthetic zero-element generation
* Expose configuration for the instrumented input, lowers default.
* Remove TODO related wiring of indexer HealthChecks: there is already an issue for this: https://github.com/digital-asset/daml/issues/2733
* Remove TODO related to lowering connectionTimeout for Hikari database-connection pool: it is already the minimum, no smaller connection timeout is available for selection.

changelog_begin
changelog_end
2021-05-18 02:34:02 +02:00
Hubert Slojewski
927242be40
KVL-914 Add and rework unit tests for tracing (#9686)
* Add and rework unit tests for tracing
CHANGELOG_BEGIN
CHANGELOG_END

* Add assertion

* Minor cleanup

* Add missing header

* Remove an empty line
2021-05-14 16:36:29 +02:00
Hubert Slojewski
c282a09ffb
KVL-914 Expose metrics-test-lib for the oem integration kit (#9662)
* Expose metrics-test-lib for the oem integration kit
CHANGELOG_BEGIN
CHANGELOG_END

* Change the instrumentation name for tests
2021-05-12 16:13:23 +02:00
Hubert Slojewski
968b5d8d39
KVL-921 Expose opentelemetry Context from Telemetry and TelemetryContext (#9573)
* Expose opentelemetry Context from Telemetry and TelemetryContext
CHANGELOG_BEGIN
CHANGELOG_END

* Add tests and docs
2021-05-06 16:28:45 +02:00
Hubert Slojewski
2e93de79a4
Fix recording exceptions in Spans, add unit tests [KVL-874] (#9544)
* Fix recording exceptions in Spans, add unit tests
CHANGELOG_BEGIN
CHANGELOG_END
2021-05-04 17:06:57 +02:00
Hubert Slojewski
bef8af2bb6
Propagate trace context for configuration submission (#9545)
CHANGELOG_BEGIN
CHANGELOG_END
2021-05-04 09:38:56 +02:00
Hubert Slojewski
0e5c4d4782
KVL-919 Propagate trace context for package upload (#9543)
CHANGELOG_BEGIN
CHANGELOG_END
2021-04-30 16:51:25 +02:00
Marton Nagy
b25c904fc8
Introduce combined storeTransaction method in LedgerDao for sandbox-classic (#9540)
Motivation of this PR: with the help of this combined method, wiring of the
append-only schema ingestion becomes possible.

* Add proper implementation for dao
* Adapts sandbox-classic usage

changelog_begin
changelog_end
2021-04-30 09:09:53 +00:00
Marton Nagy
ec86d97653
First draw of an interface separating ingestion and storage (#9517)
The intent of this change is to make the first step in this direction
in order to support dpp-336 work of sanbdox-classic integration by
injecting DAO functionality via this interface.
Level of quality is still pre-production, hence TODO comments.
Planned next step: move StorageBackend interface, and implementation
to platform/store, to it's final place.

* Introduce StorageBackend interface
* Decouple event-seq-id assignment logic from storage specific batching
* Pull out of batching step from input mapping, execution too
* Switch to stateless DAO functions
* Switch to DBDispatcher instead of custom JDBC Connection pool
* Introduce/adapt metrics
* Naturally extend configuration
* Move RunningBatch layer to ParallelIndexerFactory
* Remove dead code

changelog_begin
changelog_end
2021-04-29 12:54:25 +00:00
Hubert Slojewski
d761853832
KVL-874 Add unit tests for Telemetry (#9500)
* Add unit tests for Telemetry
CHANGELOG_BEGIN
CHANGELOG_END

* Make Tracers injectable, improve the TelemetryContextSpec, add a metrics-test-lib package
2021-04-27 23:59:39 +02:00
Hubert Slojewski
9706d9fe2a
KVL-874 Change the TelemetryContext to use SpanAttributes instead of raw AttributeKeys and remove an unused object (#9474)
* Change the TelemetryContext to use SpanAttributes instead of raw AttributeKeys
and remove an unused object along with its dependencies

CHANGELOG_BEGIN
CHANGELOG_END

* Change the Tracer name and the instrumentation name from participant to com.daml.telemetry
2021-04-26 15:31:46 +02:00
Hubert Slojewski
f4316bddf3
KVL-874 Add telemetry classes from the oem integration kit and use it for command submissions (#9436)
* Add telemetry classes from the oem integration kit and use it for command submissions

* Change submitTransaction to submitTransactionWithTelemetry and add a deprecation

* Fix tests

* Revert "Change submitTransaction to submitTransactionWithTelemetry and add a deprecation"

CHANGELOG_BEGIN

- [Integration Kit] TelemetryContext has been introduced to the WriteService.submitTransaction method to support distributed tracing

CHANGELOG_END
2021-04-23 13:00:39 +02:00
Hubert Slojewski
cb5f1f650b
KVL-874 Move telemetry-related classes to a separate package (#9467)
* Move telemetry-related classes to a separate package

CHANGELOG_BEGIN
CHANGELOG_END

* Add missing headers
2021-04-21 15:06:17 +02:00
tudor-da
75fa86aaf8
Additional metrics for mutable contract state cache (#9444)
* Time lag between contract state events and general dispatcher
* Emit current event sequential id from the indexer.
* Time update registering metric

CHANGELOG_BEGIN
CHANGELOG_END
2021-04-20 15:11:37 +00:00
tudor-da
8c3a8c0428
Integrate mutable state cache layer into ReadOnlySqlLedger (#9421)
* Integrate mutable state cache into ReadOnlySqlLedger
* Create tiered ReadOnlySqlLedger for accomodating both legacy and new caching stores
* Integrate event stream lifecycle responsibility into MutableCacheBackedContractStore
* Add missing SQL fragment to ContractsReader fetch query

CHANGELOG_BEGIN
CHANGELOG_END

* Addressed review comments
2021-04-19 09:29:05 +00:00
tudor-da
8f885f457a
MutableCacheBackedContractStore implementation (#9378)
* MutableCacheBackedContractStore implementation
* Implemented ContractStore methods
* Implemented event stream consumption via consumeFrom
* Tests for asserting correctness

CHANGELOG_BEGIN
CHANGELOG_END

* Addressed review comments
2021-04-13 14:19:30 +00:00
Kamil Bożek
104ad067ef
Streaming contract state events (on the append-only schema) [DPP-304] (#9365)
* ContractStateEventsReader draft based on the POC

* Code formatting

* Moved the contract state event reader as a method to the TransactionsReader.
(required to ease parallel stories development)

* Basic unit tests for reading contract state events

* Removed the dependence on not yet present  column.

* Workaround for the lack of 'event_sequential_id' column in the 'parameters' table.
The workaround is intended to be replaced with a proper solution when the append-only schema comes in

* Fixed the unit test for contract state events

* Re-enabled all ledger dao suites

* Included 'JdbcLedgerDaoContractEventsStreamSpec' in the H2 db suites

* Intermediary DTO for contract state events

* Added a comment explaining introduction of the RawContractStateEvent

* Simplified contract state event reading query

* Easier transition for the append-only schema

* Minor refactor

* Minor change

* Ingest contract key for consuming exercise nodes

* CHANGELOG_BEGIN
- [Integration Kit] new streaming query for contract state events
- [Integration Kit] indexing contract keys for consuming exercise events
CHANGELOG_END

* Minor change

* Fixed formatting

* Ingesting key values for consuming exercised events - H2 database

* Addressed review comments

* Moving changes from the 'dao' to the 'appendonlydao' package - ContractStateEventsReader

* Moving changes from the 'dao' to the 'appendonlydao' package - indexing create_contract_key for exercise nodes

* Reduced code duplication - minor

* Reverted changes to the JdbcLedgerDaoSuite
Tests for the ContractStateEventsReader will come in the future

* Restored original naming for the indexed create key

* Improved comments + throwing UnsupportedOperationException

* Added ledger_effective_time to the ContractStateEvent.Created

* Update a metric name

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>

* Simplified GlobalKey imports

* Added a comment on events stream parallelism level

* Inline event_kind types in the SQL query for contract state events

* A constant for the event sequential id edge case

* Removed unused imports

Co-authored-by: mziolekda <marcin.ziolek@digitalasset.com>
2021-04-12 18:14:40 +02:00
tudor-da
89b5dbb26e
LedgerDao and ContractsReader interface updates (#9349)
* LedgerDao and ContractsReader interface updates for mutable state cache implementation
* Factored the LfValueSerialization cache out of the ContractStore
* Implemented state lookup methods (at valid_at)

This PR does not contain tests for the new lookup methods.
The tests have been extracted in a separate branch and will be merged
when the DAO integration testing suite will be adapted
for the append-only schema.

CHANGELOG_BEGIN
CHANGELOG_END

* Addressed review comments
2021-04-12 10:18:37 +00:00
Marton Nagy
5b115717de
Introduce parallel indexer (#9304)
* Introduce parallel indexer

* Adds parallel indexer in PoC quality
* Adds relevant metrics, and wiring to the parallel indexer code
* Minor fixes to tracing in TransactionsReader

changelog_begin
changelog_end

* Tag all todos

... with 'append-only', so that they are easier to find.

* Refactor metrics

* Remove AverageCounter

Co-authored-by: Robert Autenrieth <robert.autenrieth@digitalasset.com>
2021-04-06 20:07:22 +02:00
Matthias Schmalz
1c254a9a68
Enhanced docker-compose Graphite/Grafana (#9067)
CHANGELOG_BEGIN
Enhanced docker-compose project for deploying Graphite/Grafana:
- Fixed incorrect aggregation of ".count" metrics by DropWizard.
- Changed Graphite retention schedule to 10s granularity during 7 days, 1m granularity during 30 days, 10m granularity during 1800 days.
- Preserve Grafana configuration during restarts.
- Added script to manually purge all data/configuration.
- Mount Graphite configuration directories on host.
- Enhanced documentation.
- Tidied up directory structure.
CHANGELOG_END
2021-03-11 17:34:43 +01:00
Luc Bourlier
09c46cf666
Upgrades opentelemetry to 0.16.0 (#8862)
CHANGELOG_BEGIN

- [Dependencies] Upgrade io.opentelemetry:opentelemetry-api to 0.16.0

- [Dependencies] New dependency: io.opentelemetry:opentelemetry-context:0.16.0

CHANGELOG_END
2021-02-23 18:21:36 +01:00
Gerolf Seitz
19bf4031f5
Instrument Ledger API and DbDispatcher threadpools (#8789)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-09 10:05:49 +00:00
Robert Autenrieth
f13c96bdde
Retrofit types in verbose mode [DPP-154] (#8656)
* Factor out package loding deduplication

* Remove unused LfValueTranslation

* Fill in missing type information

changelog_begin
changelog_end
2021-02-02 11:45:00 +01:00
mzagorski-da
77f42792e0
[DPP-142] Explicitly deflate/inflate data outside of the index (#8646)
* [DPP-142] Explicitly deflate/inflate data outside of the index
* [DPP-142] Explicitly deflate/inflate data outside of the index - review fixes - exposing prepare update parallelism as param

changelog_begin
[Integration Kit] Compression and decompression of stored DAML-LF values
 is now executed outside of the index database, allowing to make more
  efficient use of the participant resources when indexing.
changelog_end
2021-02-01 18:18:22 +01:00
tudor-da
1351b08234
[Participant] Pipelined transaction indexing (#8571)
* Pipelined transaction indexing

CHANGELOG_BEGIN
[Integration Kit] The participant indexer (for PostgreSQL)
can now execute DAML transaction insertions in three pipelined stages.
CHANGELOG_END

* Make participant-integration-api test suite `large` for BAZEL
* Fixed constant timeout for MacOS builds

* Moved ledger end guard to TransactionReader
* Removed TransactionServiceResponseValidator

* Removed MetadataUpdate intermediary level from Update

* Added back store_ledger_entry timer

* Updated comment for idempotent insertions.
2021-01-27 16:36:55 +01:00
Moritz Kiefer
84a9488077
Port more of //ledger/... to Scala 2.13 (#8488)
* Port more of //ledger/... to Scala 2.13

changelog_begin
changelog_end

* Remove unusued dependency

changelog_begin
changelog_end

* Rename bf to factory to reflect the fact that it’s now a Factory

changelog_begin
changelog_end

* Use regex match instead of sliding string equalityt

changelog_begin
changelog_end

* regex matches are bad

changelog_begin
changelog_end
2021-01-13 16:30:43 +01:00
Moritz Kiefer
22ce940954
Upgrade scalafmt and enable trailing commas (#8437)
This PR updates scalafmt and enables trailingCommas =
multiple. Unfortunately, scalafmt broke the version field which means
we cannot fully preserve the rest of the config. I’ve made some
attempts to stay reasonably close to the original config but couldn’t
find an exact equivalent in a lot of cases. I don’t feel strongly
about any of the settings so happy to change them to something else.

As announced, this will be merged on Saturday to avoid too many conflicts.

changelog_begin
changelog_end
2021-01-09 11:37:37 +01:00
Moritz Kiefer
424faa923a
Port damlc dependencies to Scala 2.13 (#8423)
* Port damlc dependencies to Scala 2.13

I got a bit fed up by the fact that going directory by directory
didn’t really work since there are two many interdependencies in
tests (e.g., client tests depend on sandbox, sandbox tests depend on
clients, engine tests depend on DARs which depend on damlc, …).

So before attempting to continue with the per-directory process, this
is a bruteforce approach to break a lot of those cycles by porting all
dependencies of damlc which includes client bindings (for DAML Script)
and Sandbox Classic (also for DAML Script).

If this is too annoying to review let me know and I’ll try to split it
up into a few chunks.

changelog_begin
changelog_end

* Update daml-lf/data/src/main/2.13/com/daml/lf/data/LawlessTraversals.scala

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* fixup lawlesstraversal

changelog_begin
changelog_end

* less iterator more view

changelog_begin
changelog_end

* document safety of unsafeWrapArray

changelog_begin
changelog_end

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2021-01-08 07:22:38 +01:00
Gary Verhaegen
a925f0174c
update copyright notices for 2021 (#8257)
* update copyright notices for 2021

To be merged on 2021-01-01.

CHANGELOG_BEGIN
CHANGELOG_END

* patch-bazel-windows & da-ghc-lib
2021-01-01 19:49:51 +01:00