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

inline collections_controller_resource_spec to existing tests #6139

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

no-reply
Copy link
Contributor

@no-reply no-reply commented Aug 8, 2023

dashboard/collections_controller_resource_spec is a slightly divergent copy-paste of the same tests in dashboard/collections_controller_spec. this creates a major maintenance burden, and some weird misdirection when navigating the codebase (how will i know to look for tests on the Controller here?).

the more immediate problem is that this whole test setup is flaky and the whole file can fail en masse.

as a first step(?) for a fix, we want to inline all the tests so they run identically and setup for both sets of specs is in one place. this is a straight inline, removing the duplicate tests. some attention was given to resolving drift between the specs.

@samvera/hyrax-code-reviewers

`dashboard/collections_controller_resource_spec` is a slightly divergent
copy-paste of the same tests in `dashboard/collections_controller_spec`. this
creates a major maintenance burden, and some weird misdirection when navigating
the codebase (how will i know to look for tests on the Controller here?).

the more immediate problem is that this whole test setup is flaky and the whole
file can fail en masse.

as a first step(?) for a fix, we want to inline all the tests so they run
identically and setup for both sets of specs is in one place. this is a straight
inline, removing the duplicate tests. some attention was given to resolving
drift between the specs.
@no-reply no-reply force-pushed the collection-controller-resource branch from 2bcd500 to 538db6e Compare August 8, 2023 17:57
@VivianChu VivianChu merged commit 2d857f8 into main Aug 8, 2023
8 checks passed
@VivianChu VivianChu deleted the collection-controller-resource branch August 8, 2023 19:06
@dlpierce dlpierce added the notes-tests Release Notes: Spec or CI changes label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-tests Release Notes: Spec or CI changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants