Tags: axman6/daml
Tags
Error out on SResultScenarioCommit in DAML script service (digital-as… …set#7089) This was leftover from my first attempt at implementing the script service by piggybagging on top of the scenario primitives. The current implementation instead relies on the codepaths used on an actual ledger where we get SResultFinalValue at the end so we can kill all of this. changelog_begin changelog_end
Updating template ID references (digital-asset#6988) the format changed a while ago, we just never updated this doc changelog_begin changelog_end
Ledger writer supporting pre-execution and normal flow (digital-asset… …#6904) * Added ledger writer that chooses between instances based on estimate interpretation cost. CHANGELOG_BEGIN CHANGELOG_END * Code tidying. * Delegate to pre-executing writer in case thershold is set to 0. * Added ability to change metrics. * Added metrics. * Code tidying. * Update ledger/participant-state/kvutils/src/main/scala/com/daml/ledger/participant/state/kvutils/api/InterpretationCostBasedLedgerWriterChooser.scala Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com> Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
Ledger writer supporting pre-execution and normal flow (digital-asset… …#6904) * Added ledger writer that chooses between instances based on estimate interpretation cost. CHANGELOG_BEGIN CHANGELOG_END * Code tidying. * Delegate to pre-executing writer in case thershold is set to 0. * Added ability to change metrics. * Added metrics. * Code tidying. * Update ledger/participant-state/kvutils/src/main/scala/com/daml/ledger/participant/state/kvutils/api/InterpretationCostBasedLedgerWriterChooser.scala Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com> Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
simplify docs cron (digital-asset#6817) simplify docs cron This commit changes the "live state" to be that all versions are there on S3, most of them hidden the way snapshots currently are, and only displays in the drop-down the list of "supported" versions, i.e. stable and >= 1.0.0. The docs cron will now: - Get list of versions from GitHub (as it does now) - Get list of versions from S3 (as it does now: versions.json + snapshots.json, though it assumes we'll have a follow-up PR to change the latter to hidden.json) - Compare; if the sets of versions are the same, stop there. (Note: this "set of versions" here includes the notion of which versions are shown, not just which ones exist. See the Versions data type in the code.) - If there is a new hidden version, just build that, push it, change nothing else. No need to download any of the existing versions or mess around with anything else (except updating `hidden.json`, otherwise we're going to be doing this way too often.) - If there is a new visible version: - check if we have it locally (i.e. from the previous step: it's a version we just added) - figure out the old and new default versions, and then apply the diff to the top-level directory. Basically download the two folders, list files that exist in the old one and not in the new one, delete those from S3, then push the new one to the top-level on S3. - update versions.json & hidden.json (and for now snapshots.json) This means that: - we never mess with the existing versions; we don't need to download them, we don't need to change them, we don't clean them up. Old links keep working forever. - The running time for the docs cron is roughly constant, in that it should very rarely have to either build or upload (or download) more than 2 versions per run, and if those instances happen they'd be accidents (we made 3 actual releases in an hour), not build-up over time.
Fix decoding of recursive types in daml-types (digital-asset#6834) The examples and the comment are hopefully obvious enough. Builtin types can also produce terminating recursion so we need to make them lazy. changelog_begin - [@daml/daml-types library] Fix an issue where some recursive types resulted in a stackoverflow. changelog_end
Bump test_sha in perf tests (digital-asset#6825) CHANGELOG_BEGIN CHANGELOG_END
Add `platform-version` field to `daml.yaml` (digital-asset#6736) * Add `platform-version` field to `daml.yaml` This PR adds the `platform-version` field to `daml.yaml`. Based on the approach agreed upon in digital-asset#6558, the logic for this all sits in `daml-helper` and there are no changes to the assistant. The details of how the logic work are in a comment so I’m not going to repeat them here but the commands that are affected are: - `daml sandbox` - `daml sandbox-classic` - `daml json-api` - `daml start` (but only for sandbox and the JSON API, not for Navigator or anything else) For tests, I’ve added a test to the compat workspace that installs two SDKs simultaneously and tries out various combinations and verifies that we get the correct version. Open to other ideas for testing this but that seemed like the most sensible option that actually tests what we run. changelog_begin - [DAML Assistant] You can now specify the version of Sandbox and the JSON API independently of your SDK version by setting ``platform-version`` in your ``daml.yaml``. This is useful if you are deploying to a ledger that is running components from a different SDK version. See https://docs.daml.com/tools/assistant.html#project-config-file-daml-yaml for details. changelog_end * Run platform-version tests changelog_begin changelog_end * Fix tag globbing changelog_begin changelog_end * fmt changelog_begin changelog_end * . changelog_begin changelog_end * Try to fix env vars changelog_begin changelog_end * Remove hardcoded references to 1.2.0 changelog_begin changelog_end * Rephrase doc comment changelog_begin changelog_end * get things to compile changelog_begin changelog_end * maybe fix things for realz changelog_begin changelog_end * Remove debugging output changelog_begin changelog_end * Get angry at windows changelog_begin changelog_end * why is windows changelog_begin changelog_end * . changelog_begin changelog_end
Fixing event_offset to event_sequential_id conversion (digital-asset#… …6730) handling the conversion on an empty ledger, adding a bit more logging, skipping DB query on an empty range Backport of digital-asset#6712. CHANGELOG_BEGIN CHANGELOG_END Co-authored-by: Leonid Shlyapnikov <leonid.shlyapnikov@digitalasset.com>
Fixing event_offset to event_sequential_id conversion (digital-asset#… …6730) handling the conversion on an empty ledger, adding a bit more logging, skipping DB query on an empty range Backport of digital-asset#6712. CHANGELOG_BEGIN CHANGELOG_END Co-authored-by: Leonid Shlyapnikov <leonid.shlyapnikov@digitalasset.com>
PreviousNext