@gerolf-da is taking care of [testing](https://github.com/digital-asset/daml/blob/main/release/RELEASE.md) today's release, so they get pushed back to the end of the line.
Please do not merge this before the release is fully tested.
CHANGELOG_BEGIN
CHANGELOG_END
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
For the used-to-be-rare-but-not-so-much-anymore case where the job fails
after having pushed its logs (without this the push fails as we can't
overwrite artifacts).
This was spurred by the fact that the "report_end" task sometimes fails
on m1 with the "install Bash lib" step just never finishing (and the
whole job then times out after 6h).
Hopefully by running fewer things we get fewer chances of these kinds of
weird issues.
Note that it's unclear if anything actually crashes on the m1 machines
or if this is a loss of connection between Azure Pipelines and the
machine. From what I've seen as soon as that job times out the machine
is able to successfully pick up other jobs. Speaking of, I've also
reduced the 6h timeouts to a more reasonable 3h.
We routinely have upwards of 3GB of logs. They are very rarely
downloaded, most people don't even know they're there. Uploading 3GB
takes time. This should make it faster, hopefully.
* rotate release duty after 2023-07-05
@akrmn is taking care of [testing](https://github.com/digital-asset/daml/blob/main/release/RELEASE.md) today's release, so they get pushed back to the end of the line.
Please do not merge this before the release is fully tested.
CHANGELOG_BEGIN
CHANGELOG_END
* Samuel is actually the one doing the release this week
---------
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
* Version the script runner
* Fix import
* Add v2 files
* Add v1/v2 switching logic
* Add -- @ SCRIPT-V2 flag to integration tests
* Fix daml-v2 docs gen, refactor withDamlScriptDep
* Fix package name for daml-script2
* Fix polymorphic script warning for daml-script2
* Address review comments
* Scala, not haskell
* Add warnings to template files
* Rename daml-v2 to daml3, daml-script-v2 to daml3-script
* Fix polymorphic warning again
* Switch try catch to a command
* Use free properly, make all continues identity
* Split up DamlScript, implement Questions logic
* Fix most of the issues
* Drop internal callstack frames
* Minor fixes
* Prevent Catch being treated as an old-style typeclass
* Fix catch parsing
* Implement package vetting and unvetting
* Add no such template error to scenario service proto
* Notes for updateCompiledPackages in IdeLedgerClient
* Improve script src copying
* Add package vetting test, and framework for extra packages in integration tests
* Fix daml script dar rule mistake
* Apply suggestions from code review
Co-authored-by: Remy <remy.haemmerle@daml.com>
* Convert PureCompiledPackages to case class
* Generalise Lookup error over scenario proto
* Address review
---------
Co-authored-by: Remy <remy.haemmerle@daml.com>
@nickchapman-da is taking care of [testing](https://github.com/digital-asset/daml/blob/main/release/RELEASE.md) today's release, so they get pushed back to the end of the line.
Please do not merge this before the release is fully tested.
CHANGELOG_BEGIN
CHANGELOG_END
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
* Extract available snapshot versions from Github
* Refactor slightly, add comments
* Implement caching
* Make getLatest commands query the minimum number of times from Github
* lint
* filter out prereleases, fix naming
* Fix outdated reference `extractVersionsFromSnapshots` to extractReleases
* Retrieve all versions so that getLatest can prune old versions' patches
* Hide --snapshots, --all, and --force-reload flags from daml version
* Get isPrerelease check correct way around
* Thread UseCache to `daml install` and other commands
* Refactor getEnvLatestStableSdkVersion to defer sdk version extraction
* store envLatestStableSdkVersion thunk in struct so tests can override it
* Read environment var early in getLatestStableSdkVersion
I implemented this with `overrideWithEnvVarMaybe`, but it required some
rather opaque abuse of `fmap pure`, `sequence`, and `join`
* Replace hidden with internal so flags don't show up in help
* added new end point to refresh the cache
* formatting
* returning old logic
* added logic to update the cache with a specific offset provided in the body
* formatting
* addressed comments
* formatting
* formatting
* formatting
* Return unit instead of List for processing refresh
* last changes on logic
* formatting
* simplify conversion
* comments addressed