When we build a release, it is always a "past" commit - typically, one
that has already been tested twice: once when the corresponding PR was
run, and then again as a "main"-branch commit.
Release branches don't run, but their protection rules enforce linear
merges.
Either way, we know we're building a _good_ commit, and, assuming our
builds and tests are hermetic, testing that commit again when we make a
release is a pure waste of time and CPU resources.
The other case, where we make an ad-hoc release from a branch that has
not been merged, has a similar issue: we do not necessarily want to run
the full test suite, because part of the reason we need that commit may
be that it doesn't succeed as is.
Based on that observation, I wondered what might be the minimal set of
things we actually need to build when making a release. This PR is an
experiment in trying to find that out.
@dylant-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.
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
* Add flag
* Add flag for bazel macro daml_compile
* Add flag for bazel macro daml_test
* LF Conversion: fail if interfaces or interface instances are defined without --enable-interfaces=yes
* Add --enable-interfaces=yes where needed
* Add support for env vars in some config files
* Fix interpolation as per design doc
* Allow env var errors to pass through multibuild
Refactor env var logic to provide hasReplaced flag
* Update daml-project-config cabal
* Added daml assistant warning
* Added scala ProjectConfig env var support + tests
* Added haskell ProjectConfig tests
* Formatting
* Refactor haskell interpolation. Remove dot replacement
* Refactor assistant warning logic
* Remove unused annotation from scala test
* Add field for disabling interpolation
* Revert stackage_snapshot change
* Remove unnecessary pragma
* Add interpolation field to scala side
* Add tests for disabling interpolation
This PR moves the whole "update canton" logic to a script anyone can run
locally, and changes it to be able to get any canton commit we want, or
possibly any dirty local workdir.
* Revert "Disable "hot reload" test since it breaks on Carl's changes"
This reverts commit 4d1efdfed7.
* Disable upgrade validation for hot reload test only
* Fix doctest for TextMap.
* Optimise fromListWith for list-like structures and fix tests.
* Implement fromListWithL and fromListWithR, restore behaviour fromListWith with fromListWithR, deprecate fromListWith.
* Explain combining function in fromListWithL docs
* Regenerate compiler/damlc/tests/platform-independence.dar-hash
---------
Co-authored-by: Ang Hao Yang <yan9za1@gmail.com>