Skip to content

Conversation

khieta
Copy link
Contributor

@khieta khieta commented Mar 8, 2024

Description of changes

Some refactoring in preparation to move the integration tests to their own repository. This PR has the edits I wanted to make in #632, but closed to avoid potentially breaking users. As suggested by @andrewmwells-amazon, I left the current testing code in cedar-policy unchanged (marking it as "deprecated") and made a new cedar-testing crate to use moving forward.

The cedar-testing crate will be treated like our other internal crates (e.g., cedar-policy-core) in the sense that we may make changes without respecting semver.

Issue #, if available

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

  • A backwards-compatible change requiring a minor version bump to cedar-policy (e.g., addition of a new API).

I confirm that this PR (choose one, and delete the other options):

  • Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).

I confirm that cedar-spec (choose one, and delete the other options):

  • Requires updates, and I have made / will make these updates myself. (Please include in your description a timeline or link to the relevant PR in cedar-spec, and how you have tested that your updates are correct.)

Disclaimer

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@khieta khieta added the 3.2 Features for 3.2 label Mar 8, 2024
khieta and others added 16 commits March 8, 2024 11:37
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Andrew Wells <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Yuan Lyu <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Shaobo He <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Shaobo He <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: John Kastner <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Craig Disselkoen <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Kesha Hietala <[email protected]>
@khieta khieta force-pushed the khieta/use-new-integration-tests branch from 9b0bc5a to a50e783 Compare March 8, 2024 16:37
Signed-off-by: Kesha Hietala <[email protected]>
@khieta
Copy link
Contributor Author

khieta commented Mar 8, 2024

PR to fix CedarDRT build failure is in cedar-spec#250.

The SemVer failure is expected since this PR requires a major version bump.


/// Simple wrapper around u128 to remind ourselves that timing info is in microseconds.
#[derive(Debug, Deserialize)]
pub struct Micros(pub u128);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to just directly store the Duration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This same type is used by the Lean FFI, so it makes it easier to just store the u128.

@khieta khieta merged commit 19127c4 into main Mar 8, 2024
@khieta khieta deleted the khieta/use-new-integration-tests branch March 8, 2024 19:45
khieta added a commit that referenced this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2 Features for 3.2
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

7 participants