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

Refactor slow benchcomp regression tests #2412

Closed
wants to merge 1 commit into from

Conversation

karkhaz
Copy link
Contributor

@karkhaz karkhaz commented Apr 27, 2023

This commit moves the regression tests that run Kani into a separate suite that runs after the other regression tests, so that users get quick feedback about any of the fast tests that fail.

Testing:

  • How is this change tested?

  • Is this a refactor change?

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

This commit moves the regression tests that run Kani into a separate
suite that runs after the other regression tests, so that users get
quick feedback about any of the fast tests that fail.
@karkhaz karkhaz requested a review from a team as a code owner April 27, 2023 17:57
@karkhaz karkhaz enabled auto-merge (squash) April 27, 2023 19:09
Copy link
Contributor

@celinval celinval left a comment

Choose a reason for hiding this comment

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

Question, where is the order of tests run being defined? Is that why you added a "Z" to the name of the second suite?

@@ -607,3 +527,91 @@ def test_env(self):
result["benchmarks"]["suite_1"]["variants"][
"env_unset"]["metrics"]["foos"], 0,
msg=yaml.dump(result, default_flow_style=False))


class ZPerfRegressionTests():
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add a comment to what this is testing? BTW, is the "Z" a typo or some sort of naming convention?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, is there a reason why this is not deriving unittest.TestCase?


class ZPerfRegressionTests():
def setUp(self):
self.kani_dir = pathlib.Path(__file__).parent.parent.parent.parent
Copy link
Contributor

Choose a reason for hiding this comment

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

please add a comment on the current structure. I.e., why does this have 4 parents.

@jaisnan jaisnan assigned jaisnan and unassigned karkhaz Jun 26, 2024
@feliperodri feliperodri closed this Oct 2, 2024
auto-merge was automatically disabled October 2, 2024 19:46

Pull request was closed

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.

4 participants