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

Make keys 2.dev-only #18573

Merged
merged 29 commits into from
Mar 5, 2024
Merged

Make keys 2.dev-only #18573

merged 29 commits into from
Mar 5, 2024

Conversation

paulbrauner-da
Copy link
Contributor

@paulbrauner-da paulbrauner-da commented Feb 23, 2024

Context: #18457

In LF 2.1, reject dars that define keys or use by-key operations upon decoding. Fix all the tests whose failure ensues by either:

  • splitting them into "without keys" and "with keys" tests and running the "with keys" tests against 2.dev
  • running the entire test against 2.dev with a TODO to split it later

The PR looks like there are many new lines, but that's because of the splitting of integration tests: the code is merely being moved around.

There's one part I'm not sure about: docs. I've documented that docs should drop keys in the TODO comment. I'm not sure if it's ok to add a TODO of if we try to keep the doc up-to-date as we modify the code.

@paulbrauner-da paulbrauner-da changed the title run tests with DAML_REJECT_KEYS Make keys 2.dev only in tests Feb 23, 2024
@remyhaemmerle-da remyhaemmerle-da self-assigned this Feb 23, 2024
@paulbrauner-da paulbrauner-da changed the title Make keys 2.dev only in tests Make keys 2.dev-only Mar 4, 2024
Copy link
Collaborator

@remyhaemmerle-da remyhaemmerle-da left a comment

Choose a reason for hiding this comment

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

Thanks

compiler/damlc/tests/daml-test-files/BasicTests.daml Outdated Show resolved Hide resolved
paulbrauner-da and others added 2 commits March 5, 2024 12:40
Co-authored-by: Remy <remy.haemmerle@daml.com>
Co-authored-by: Remy <remy.haemmerle@daml.com>
@paulbrauner-da paulbrauner-da enabled auto-merge (squash) March 5, 2024 11:41
@paulbrauner-da paulbrauner-da mentioned this pull request Mar 5, 2024
20 tasks
@paulbrauner-da paulbrauner-da merged commit 55d1d9c into main Mar 5, 2024
17 checks passed
@paulbrauner-da paulbrauner-da deleted the pb/keys-dev-only branch March 5, 2024 16:23
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