Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade validation warnings to errors flag #19259

Merged
merged 11 commits into from
Jul 10, 2024

Conversation

dylant-da
Copy link
Contributor

@dylant-da dylant-da commented May 23, 2024

Turns interface warnings into errors, provides flag to downgrade them.

Before we do this for expressions, we need to fix expression errors to be less eager.

In the long term I'd like a similar system to that for GHC, where we can downgrade most errors to warnings and upgrade most warnings to errors

@dylant-da dylant-da force-pushed the upgrade-validation-warnings-to-errors-flag branch from 3923696 to 77fd53a Compare May 24, 2024 17:51
@dylant-da dylant-da force-pushed the upgrade-validation-warnings-to-errors-flag branch from 54d5842 to 4d02b07 Compare May 28, 2024 15:50
@dylant-da dylant-da marked this pull request as ready for review July 8, 2024 08:42
Copy link
Contributor

@samuel-williams-da samuel-williams-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure if "bad" is the right word, but i can't of anything better that isn't massive

dylant-da added a commit that referenced this pull request Jul 10, 2024
dylant-da added a commit that referenced this pull request Jul 10, 2024
@dylant-da dylant-da force-pushed the upgrade-validation-warnings-to-errors-flag branch from d3864b7 to 1ec643d Compare July 10, 2024 13:34
Copy link
Contributor

@samuel-williams-da samuel-williams-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed in call with Dylan

dylant-da added a commit that referenced this pull request Jul 10, 2024
* Expand upgrade validation testing (#19123)

* Remove duplication from tests

* lint

* lint

* Simplify tests

* lint

* add more tests for dependency behaviour

* track new test files

* lint

* add test for failure being only emitted in the module that originates it

* fix stdout capture for rules_daml

* lint

* lint

* Move CannotUpgradeView into own section

* Fix more upgrades gen

* Fix build issues with test-common upgrades files

* Backport changes from #19259

* Add back agreement warning test

* Lint

* Fix reference from 2.dev to 1.dev

* Fix upgrade test files

* Revert stdout from daml_compile in daml.bzl

* Fix reference in IntegrationTests

* Fix trigger tests to ignore interface/template upgrade errors

* Only run upgrade checks when building with a supporting LF version

* Fix MissingModule test for participant upgrade check tests
@dylant-da dylant-da enabled auto-merge (squash) July 10, 2024 14:38
@dylant-da dylant-da merged commit 069f1c0 into main Jul 10, 2024
14 checks passed
@dylant-da dylant-da deleted the upgrade-validation-warnings-to-errors-flag branch July 10, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants