Skip to content

Conversation

jclarkeSTFC
Copy link
Contributor

In this commit, ${GMOCK_TEST_FILES} went missing when the tests are added, which means ImplicitFunctionFactoryTest, ImplicitFunctionParameterParserFactoryTest, and MatrixWorkspaceTest haven't been run for 3 years.

One of the tests in MatrixWorkspaceTest spotted a (niche) bug, which is also fixed in this PR. If there are no times in your sample log after 1991, then instead of returning the last time, it was indexing the memory outside the range of the time vector.

To test:

The tests mentioned above should run.


Reviewer

Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.

Code Review

  • Is the code of an acceptable quality?
  • Does the code conform to the coding standards?
  • Are the unit tests small and test the class in isolation?
  • If there is GUI work does it follow the GUI standards?
  • If there are changes in the release notes then do they describe the changes appropriately?
  • Do the release notes conform to the release notes guide?

Functional Tests

  • Do changes function as described? Add comments below that describe the tests performed?
  • Do the changes handle unexpected situations, e.g. bad input?
  • Has the relevant (user and developer) documentation been added/updated?

Does everything look good? Mark the review as Approve. A member of @mantidproject/gatekeepers will take care of it.

Gatekeeper

If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.

In PR 32393, the `GMOCK_TEST_FILES` accidentally went missing from
`Framework/API/test/CMakeLists.txt`, this adds it back in, and edits
`MatrixWorkspaceTest` to make it run again.
@jclarkeSTFC jclarkeSTFC added Bug Issues and pull requests that are regressions or would be considered a bug by users (e.g. crashing) ISIS: Core Issue and pull requests at ISIS that relate to Core features and functions labels Aug 19, 2024
@jclarkeSTFC jclarkeSTFC added this to the Release 6.11 milestone Aug 19, 2024
@jclarkeSTFC jclarkeSTFC marked this pull request as ready for review August 20, 2024 12:41
@cailafinn cailafinn self-assigned this Aug 20, 2024
Copy link
Contributor

@cailafinn cailafinn left a comment

Choose a reason for hiding this comment

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

Functionally working well, test is now running properly locally and on CI. Nice find on the other bugfix, just a request to update the comment to match the slightly changed functionality.

jclarkeSTFC and others added 3 commits August 21, 2024 09:22
This code was supposed to return the last time if none of the times
are after 1991, but the index was one greater than it should be if
no suitable times were found.

Co-authored-by: Jonathan Haigh <jonathan.haigh@stfc.ac.uk>
@jclarkeSTFC jclarkeSTFC force-pushed the run_missing_tests_matrixWorkspacetest branch from e77349d to 909f00a Compare August 21, 2024 08:23
Copy link
Contributor

@cailafinn cailafinn left a comment

Choose a reason for hiding this comment

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

Code changes look good, working well as test now running. Nice work :shipit:

@SilkeSchomann SilkeSchomann self-assigned this Aug 21, 2024
@SilkeSchomann SilkeSchomann merged commit 0c3f8ce into mantidproject:main Aug 21, 2024
10 checks passed
@jclarkeSTFC jclarkeSTFC deleted the run_missing_tests_matrixWorkspacetest branch August 21, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues and pull requests that are regressions or would be considered a bug by users (e.g. crashing) ISIS: Core Issue and pull requests at ISIS that relate to Core features and functions
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants